vim config
This commit is contained in:
parent
ef2a309588
commit
fa9f0c66d6
20
.config/vim/vimrc
Normal file
20
.config/vim/vimrc
Normal file
@ -0,0 +1,20 @@
|
||||
set runtimepath^=$XDG_CONFIG_HOME/vim
|
||||
set runtimepath+=$XDG_DATA_HOME/vim
|
||||
set runtimepath+=$XDG_CONFIG_HOME/vim/after
|
||||
|
||||
set packpath^=$XDG_DATA_HOME/vim,$XDG_CONFIG_HOME/vim
|
||||
set packpath+=$XDG_CONFIG_HOME/vim/after,$XDG_DATA_HOME/vim/after
|
||||
|
||||
let g:netrw_home = $XDG_DATA_HOME."/vim"
|
||||
call mkdir($XDG_DATA_HOME."/vim/spell", 'p')
|
||||
set viewdir=$XDG_DATA_HOME/vim/view | call mkdir(&viewdir, 'p')
|
||||
|
||||
set backupdir=$XDG_CACHE_HOME/vim/backup | call mkdir(&backupdir, 'p')
|
||||
set directory=$XDG_CACHE_HOME/vim/swap | call mkdir(&directory, 'p')
|
||||
set undodir=$XDG_CACHE_HOME/vim/undo | call mkdir(&undodir, 'p')
|
||||
|
||||
if !has('nvim') | set viminfofile=$XDG_CACHE_HOME/vim/viminfo | endif
|
||||
|
||||
syntax on
|
||||
set mouse-=a
|
||||
nnoremap <C-n> :NERDTreeFind<CR>
|
Loading…
Reference in New Issue
Block a user