diff --git a/.gitmodules b/.gitmodules index f5041a2..a6c300a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,3 +16,6 @@ [submodule "bundle/vimtex"] path = bundle/vimtex url = https://github.com/lervag/vimtex +[submodule "bundle/vim-cpp-modern"] + path = bundle/vim-cpp-modern + url = https://github.com/bfrg/vim-cpp-modern.git diff --git a/bundle/vim-cpp-modern b/bundle/vim-cpp-modern new file mode 160000 index 0000000..96c1e35 --- /dev/null +++ b/bundle/vim-cpp-modern @@ -0,0 +1 @@ +Subproject commit 96c1e35b092be403fbe87583613827e277e9dfff diff --git a/filetype.vim b/filetype.vim new file mode 100644 index 0000000..f60ab98 --- /dev/null +++ b/filetype.vim @@ -0,0 +1,9 @@ +" extra file types detection +if exists("did_load_filetypes") + finish +endif +augroup filetypedetect + au! BufRead,BufNewFile *.jl setfiletype julia + au! BufRead,BufNewFile *.tcc setfiletype cpp +augroup END + diff --git a/ftplugin/c.vim b/ftplugin/c.vim index 5daab3f..b4546ef 100644 --- a/ftplugin/c.vim +++ b/ftplugin/c.vim @@ -1,2 +1,7 @@ set colorcolumn=81 set cino=N-s + +let g:cpp_attributes_highlight = 1 +let g:cpp_member_highlight = 1 +let g:cpp_simple_highlight = 1 + diff --git a/ftplugin/cpp.vim b/ftplugin/cpp.vim index 5daab3f..b4546ef 100644 --- a/ftplugin/cpp.vim +++ b/ftplugin/cpp.vim @@ -1,2 +1,7 @@ set colorcolumn=81 set cino=N-s + +let g:cpp_attributes_highlight = 1 +let g:cpp_member_highlight = 1 +let g:cpp_simple_highlight = 1 + diff --git a/vimrc b/vimrc index 1e80f24..e870364 100644 --- a/vimrc +++ b/vimrc @@ -52,8 +52,6 @@ nmap :noh nmap gg=G nmap :NERDTreeToggle -"tags - "headers let g:header_auto_add_header=0 let g:header_field_author='Steins7'