diff options
Diffstat (limited to 'vim/.vim/vimrc')
-rw-r--r--[-rwxr-xr-x] | vim/.vim/vimrc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc index acef708..2b28cca 100755..100644 --- a/vim/.vim/vimrc +++ b/vim/.vim/vimrc @@ -10,7 +10,7 @@ if has("patch-7.4.710") set list listchars+=space:ยท,tab:\ \ endif set tabstop=8 expandtab shiftwidth=4 softtabstop=-1 smarttab -set ignorecase infercase dictionary=/usr/share/dict/words +set ignorecase infercase dictionary=~/.vim/words.txt set keymap=vietnamese-telex imdisable iminsert=0 imsearch=-1 set omnifunc=syntaxcomplete#Complete set diffopt+=algorithm:patience @@ -19,15 +19,17 @@ augroup vimrc autocmd! autocmd BufNewFile,BufRead *.vert,*.geom,*.frag setlocal filetype=glsl autocmd BufNewFile,BufRead *.info setlocal filetype=json + autocmd BufNewFile,BufRead *.tsv setlocal filetype=tsv autocmd BufNewFile,BufRead *.PAS setlocal filetype=pascal autocmd BufNewFile,BufRead *.ms setlocal filetype=groff autocmd BufNewFile,BufRead *.m setlocal filetype=octave autocmd BufNewFile,BufRead *.h setlocal filetype=c - autocmd FileType asm,c,h,gitconfig,gitsendemail,go,glsl,sshconfig,php + autocmd FileType asm,c,cpp,h,diff,gitconfig,gitsendemail,go,glsl,mail,sshconfig,php,tsv \ setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8 tabstop=8 autocmd FileType vim,sh,scheme,lua,tex,cmake,cpp,plantuml,html,octave,pascal \ setlocal shiftwidth=2 autocmd FileType rst setlocal shiftwidth=3 + autocmd FileType markdown,rst,tex setlocal spell autocmd BufWinEnter * \ if &filetype ==# 'python' || &filetype ==# 'cython' \ | let w:m1=matchadd('ColorColumn', '\%<80v.\%>73v', -1) | |