From 411d5f531272d5535105a66bbe4469dc59384c3a Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Wed, 7 Mar 2018 15:45:20 -0600 Subject: [PATCH] I won't be using Windows again. --- .vimrc | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) 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