aboutsummaryrefslogtreecommitdiff
path: root/files/vim
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2020-03-04 23:24:55 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2020-03-04 23:24:55 +0100
commit92c9a37efd8e86578f6c3da7893dbc3fa61164c8 (patch)
tree54807bb7b159e179ffa5906bb4ec2bc9f1456739 /files/vim
parent17de4f0a547e1694a2be308394fe52278282c93e (diff)
downloadconfigs-92c9a37efd8e86578f6c3da7893dbc3fa61164c8.tar.gz
configs-92c9a37efd8e86578f6c3da7893dbc3fa61164c8.zip
Organized filetypes settings in .vimrc.
Diffstat (limited to 'files/vim')
-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>