1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00
polybar/contrib/vim/ftplugin/cpp.vim
Michael Carlberg dfbed32287 git: Vim files
2016-10-29 16:41:29 +02:00

8 lines
315 B
VimL

" Swap between source/header
nnoremap <silent> <leader>af :call ft#cpphpp#Swap('edit')<cr>
nnoremap <silent> <leader>as :call ft#cpphpp#Swap('new')<cr>
nnoremap <silent> <leader>av :call ft#cpphpp#Swap('vnew')<cr>
" Code formatting using clang-format
set formatprg=/usr/bin/clang-format
nmap <f1> :ClangFormat<cr>