git: Vim files

This commit is contained in:
Michael Carlberg
2016-10-29 16:41:29 +02:00
parent 26e38ad5a1
commit dfbed32287
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,8 @@
" 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>