I won't be using Windows again.

This commit is contained in:
Ryan Cavicchioni 2018-03-07 15:45:20 -06:00
parent 74c6420024
commit 411d5f5312

16
.vimrc
View File

@ -1,6 +1,8 @@
" vim config " vim config
" Ryan Cavicchioni " Ryan Cavicchioni
silent !mkdir -p ~/.vim/{backup,swp}/
set nocompatible set nocompatible
filetype off filetype off
@ -33,22 +35,14 @@ set spell
set ruler set ruler
set laststatus=2 set laststatus=2
set colorcolumn=80 set colorcolumn=80
set diffopt+=iwhite
set backupdir=~/.vim/backup/
set directory=~/.vim/swp/
nnoremap <leader>s :set spell!<CR> nnoremap <leader>s :set spell!<CR>
nnoremap <leader>n :set number!<CR> nnoremap <leader>n :set number!<CR>
nnoremap <leader>rn :set relativenumber!<CR> nnoremap <leader>rn :set relativenumber!<CR>
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 BufNewFile,BufRead *.txt set ft=text
au FileType text set tw=72 spell spelllang=en_us nonumber au FileType text set tw=72 spell spelllang=en_us nonumber