From c130a9c08d807ed23a80a5e865c9091953f88e7f Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sat, 6 Nov 2021 20:50:29 +0700 Subject: Update Vim indent and word completion --- vim/.vim/vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100755 => 100644 vim/.vim/vimrc (limited to 'vim/.vim/vimrc') diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc old mode 100755 new mode 100644 index acef708..2b28cca --- 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) | -- cgit 1.4.1