Przeglądaj źródła

vimrc: indent puppet, terraform; ctrl+o ctrlp

raylu 8 lat temu
rodzic
commit
cfb03d4006
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      vimrc

+ 3 - 0
vimrc

@@ -65,6 +65,7 @@ let g:syntastic_enable_signs = 0
 nmap <F11> :SyntasticCheck<cr>
 nmap <F12> :SyntasticReset<cr>
 
+let g:ctrlp_map = '<c-o>'
 let g:ctrlp_match_func = {'match': 'pymatcher#PyMatch'}
 
 filetype plugin indent on
@@ -77,6 +78,7 @@ highlight diffAdded ctermfg=green cterm=bold
 au BufNewFile,BufRead *.frag,*.vert,*.fp,*.vp,*.glsl setf glsl
 au BufNewFile,BufRead *.jinja2 set ft=htmldjango
 au BufNewFile,BufRead *.ccss set ft=clevercss
+au BufNewFile,BufRead *.pp set ft=puppet foldmethod=indent
 
 autocmd FileType c,cpp,perl,php,java,glsl set cindent foldmethod=syntax
 autocmd FileType python set autoindent foldmethod=indent
@@ -86,6 +88,7 @@ autocmd FileType go set foldmethod=syntax foldlevel=0 foldnestmax=1
 autocmd FileType javascript,less,html set foldnestmax=3 formatoptions-=o
 autocmd FileType javascript,less set foldmethod=indent
 autocmd FileType tex,latex set wrap showbreak=+ spell makeprg=pdflatex\ -interaction=nonstopmode\ %
+autocmd FileType tf set foldmethod=indent foldlevel=0
 autocmd FileType html,htmldjango,sml set autoindent
 autocmd FileType man set nomod nolist readonly
 autocmd FileType man map q :q<CR>