Browse Source

add autocommand to read '.h' files as cpp in vimrc

master
dummy 5 years ago
parent
commit
096740dfba
  1. 3
      vim/.vimrc

3
vim/.vimrc

@ -184,6 +184,9 @@ augroup vimrc
" glsl filetype plugin " glsl filetype plugin
autocmd! BufNewFile,BufRead *.vs,*.fs set ft=glsl autocmd! BufNewFile,BufRead *.vs,*.fs set ft=glsl
" read .h files as cpp
autocmd! BufNewFIle,BufRead *.h set ft=cpp
" set foldmethod to indent for python files " set foldmethod to indent for python files
autocmd FileType python setlocal foldmethod=indent autocmd FileType python setlocal foldmethod=indent

Loading…
Cancel
Save