about summary refs log tree commit diff
path: root/vim/.vim/vimrc
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-11-06 20:50:29 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-11-06 20:50:29 +0700
commitc130a9c08d807ed23a80a5e865c9091953f88e7f (patch)
tree8a2d533121d708e1defecd4165329d1a6792cb55 /vim/.vim/vimrc
parenteee8ffa30773602391cc5264d721e30410e4f2c9 (diff)
downloaddotfiles-c130a9c08d807ed23a80a5e865c9091953f88e7f.tar.gz
Update Vim indent and word completion
Diffstat (limited to 'vim/.vim/vimrc')
-rw-r--r--[-rwxr-xr-x]vim/.vim/vimrc6
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) |