From 78e49891c175e1d02db1d6ac5d2e2d6eca90c4c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 24 Aug 2016 18:04:28 +0200 Subject: vimrc clean and move swap and undo files --- vimrc | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/vimrc b/vimrc index d78d153..6ec86d5 100644 --- a/vimrc +++ b/vimrc @@ -18,7 +18,7 @@ function InitBase() set number set hidden set undofile - set undodir=.vimundo + set undodir=~/.cache/vim-undo// set colorcolumn=82 set textwidth=82 highlight ColorColumn ctermbg=darkgray @@ -41,19 +41,12 @@ let g:netrw_banner=0 let g:netrw_liststyle=1 let g:netrw_list_hide='\(^\|\s\s\)\zs\.\S\+' -"let g:NERDTreeWinPos = "right" -"let g:NERDTreeWinSize = 30 - let g:table_mode_corner="|" colorscheme elflord -" Gitgutter colors change for dark theme match -" autocmd VimEnter * hi clear SignColumn -" autocmd VimEnter * hi GitGutterChangeDefault ctermfg=3 ctermbg=16 guifg=#bbbb00 guibg=Grey -" autocmd VimEnter * hi GitGutterChangeDefault ctermfg=3 ctermbg=16 guifg=#bbbb00 guibg=Grey -" autocmd VimEnter * hi GitGutterDeleteDefault ctermfg=1 ctermbg=16 guifg=#ff2222 guibg=Grey -" autocmd VimEnter * hi GitGutterAddDefault ctermfg=2 ctermbg=16 guifg=#009900 guibg=Grey +" Directory where *.swp files will be stored +set directory=$HOME/.cache/vim// map :call InitBase() map :setlocal spell! spelllang=en_us @@ -83,9 +76,6 @@ endfunction function InitC() call InitBase() - set expandtab - - "execute 'NERDTree' map gggqG2 map :w -- cgit v1.2.3