Use neovim if installed
This commit is contained in:
parent
b550d51d16
commit
c189ae8ae3
3 changed files with 25 additions and 0 deletions
3
aliases
3
aliases
|
@ -21,6 +21,9 @@ if which sl > /dev/null 2>&1; then
|
|||
alias l='sl'
|
||||
alias lll='sl'
|
||||
fi
|
||||
if which nvim > /dev/null 2>&1; then
|
||||
alias vim='nvim'
|
||||
fi
|
||||
case $(uname -s) in
|
||||
Arch)
|
||||
alias redwm='cd ~/aur/dwm-git; updpkgsums; makepkg -fi --noconfirm; killall dwm'
|
||||
|
|
4
config/nvim/init.vim
Normal file
4
config/nvim/init.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
" http://vimcasts.org/episodes/meet-neovim/
|
||||
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
||||
let &packpath=&runtimepath
|
||||
source ~/.vimrc
|
18
vimrc
18
vimrc
|
@ -16,8 +16,10 @@ if has("unix") || has("mac")
|
|||
"[Run Plug-ins]"
|
||||
set runtimepath+=$HOME/.vim/bundle/Vundle.vim
|
||||
call vundle#begin()
|
||||
|
||||
Plugin 'gmarik/Vundle.vim'
|
||||
map <F3> :VundleUpdate<CR>
|
||||
|
||||
Plugin 'dag/vim-fish'
|
||||
if isdirectory(expand("$HOME/.vim/bundle/YouCompleteMe"))
|
||||
"[Workaround for YCM non-portability]"
|
||||
|
@ -33,6 +35,7 @@ if has("unix") || has("mac")
|
|||
else
|
||||
Plugin 'AutoComplPop'
|
||||
endif
|
||||
|
||||
Plugin 'w0rp/ale'
|
||||
let g:ale_linters = {
|
||||
\ 'cpp': ['g++'],
|
||||
|
@ -41,16 +44,27 @@ if has("unix") || has("mac")
|
|||
let g:ale_c_gcc_options='-std=c99 -pedantic'
|
||||
let g:ale_sign_error = '●'
|
||||
let g:ale_sign_warning = '●'
|
||||
|
||||
Plugin 'itchyny/lightline.vim'
|
||||
let g:lightline = {'colorscheme': 'base16_default_dark'}
|
||||
|
||||
if executable('ctags')
|
||||
Plugin 'ludovicchabant/vim-gutentags'
|
||||
endif
|
||||
|
||||
Plugin 'beyondmarc/opengl.vim'
|
||||
Plugin 'arrufat/vala.vim'
|
||||
let g:vala_syntax_folding_enabled = 0
|
||||
|
||||
Plugin 'tikhomirov/vim-glsl'
|
||||
Plugin 'jamessan/vim-gnupg'
|
||||
Plugin 'machakann/vim-highlightedyank'
|
||||
let g:highlightedyank_highlight_duration = 200
|
||||
"[Needed only with old vim versions]"
|
||||
if !exists('##TextYankPost')
|
||||
map y <Plug>(highlightedyank)
|
||||
endif
|
||||
|
||||
"[Autodetect indent style of a file]"
|
||||
Plugin 'tcbbd/detectindent'
|
||||
let g:detectindent_preferred_indent=4
|
||||
|
@ -141,6 +155,10 @@ set ignorecase
|
|||
set wrapscan
|
||||
"[When on, the ":substitute" flag 'g' is default on]"
|
||||
set nogdefault
|
||||
"[Enable realtime feedback for substitution]"
|
||||
if has("nvim")
|
||||
set inccommand=nosplit
|
||||
endif
|
||||
|
||||
|
||||
"[Kitty doesn't support background color erase]"
|
||||
|
|
Loading…
Reference in a new issue