diff --git a/.vimrc b/.vimrc index aa021a0..3389b89 100644 --- a/.vimrc +++ b/.vimrc @@ -1,6 +1,8 @@ " vim config " Ryan Cavicchioni +silent !mkdir -p ~/.vim/{backup,swp}/ + set nocompatible filetype off @@ -33,22 +35,14 @@ set spell set ruler set laststatus=2 set colorcolumn=80 +set diffopt+=iwhite +set backupdir=~/.vim/backup/ +set directory=~/.vim/swp/ nnoremap s :set spell! nnoremap n :set number! nnoremap rn :set relativenumber! -if has("win32") - silent execute "!mkdir " . $HOME . "\\vimfiles\\backup" - silent execute "!mkdir " . $HOME . "\\vimfiles\\swp" - set backupdir=~/vimfiles/backup/ - set directory=~/vimfiles/swp/ -else - silent !mkdir -p ~/.vim/{backup,swp}/ - set backupdir=~/.vim/backup/ - set directory=~/.vim/swp/ -endif - au BufNewFile,BufRead *.txt set ft=text au FileType text set tw=72 spell spelllang=en_us nonumber