[vim] adds search config and some consolidation

This commit is contained in:
Josh Sherman 2017-10-23 11:13:12 -05:00
parent 097a57b769
commit f413a9e616
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

View file

@ -1,21 +1,15 @@
syntax on
set number
set relativenumber
set autoindent
set expandtab
set smartindent
set shiftwidth=2
set softtabstop=2
set tabstop=2
set ai et si sts=2 sw=2 ts=2
set hls ic is
set nu rnu
set directory=~/.local/share/vim/swap,/tmp
set undodir=~/.local/share/vim/undo,/tmp
set undofile
autocmd BufNewFile,BufRead *.es6 set ft=javascript
autocmd FileType php setlocal sw=4 sts=4 ts=4
autocmd FileType gitcommit,markdown,text setlocal nosi spell tw=80 wm=2
autocmd BufNewFile,BufRead *.es6 setl ft=javascript
autocmd FileType php setl sts=4 sw=4 ts=4
autocmd FileType gitcommit,markdown,text setl nosi spell tw=80 wm=2
autocmd BufWritePre * :%s/\s\+$//e