aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/vim/.vimrc8
1 files changed, 7 insertions, 1 deletions
diff --git a/files/vim/.vimrc b/files/vim/.vimrc
index 18f52e6..f7c3b76 100644
--- a/files/vim/.vimrc
+++ b/files/vim/.vimrc
@@ -24,7 +24,6 @@ call plug#end()
" Basic settings
set nocompatible
-filetype indent plugin on
set encoding=utf-8
set number relativenumber
set tabstop=4
@@ -45,6 +44,13 @@ highlight ColorColumn ctermbg=darkblue ctermfg=black
"highlight ColorColumn ctermbg=red ctermfg=blue
"exec 'set colorcolumn='.join(range(2,80,3), ',')
+" Filetypes
+filetype indent plugin on
+au BufRead,BufNewFile *.pu set filetype=plantuml
+au BufRead,BufNewFile *.puml set filetype=plantuml
+au BufRead,BufNewFile *.g set filetype=antlr3
+au BufRead,BufNewFile *.g4 set filetype=antlr4
+
" hlnext: Highlighting searches
nnoremap <silent> n n:call HLNext(0.1)<CR>
nnoremap <silent> N N:call HLNext(0.1)<CR>