diff options
author | johannst <stoelp@eit.uni-kl.de> | 2016-07-17 22:06:11 +0200 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2016-07-17 22:06:11 +0200 |
commit | 223ea8f5199aef6b7c6b771c4448282288f18d9b (patch) | |
tree | d3306ece2f782c84a29ab5c838ff8a37c3314331 /.vim/vimrc_files/keymaps.vim | |
parent | dc01638ea52980c64642bdd992dcc05bc3a4aab1 (diff) | |
download | dotfiles-223ea8f5199aef6b7c6b771c4448282288f18d9b.tar.gz dotfiles-223ea8f5199aef6b7c6b771c4448282288f18d9b.zip |
Added vim omnicppcompleten suppoert
Diffstat (limited to '.vim/vimrc_files/keymaps.vim')
-rw-r--r-- | .vim/vimrc_files/keymaps.vim | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.vim/vimrc_files/keymaps.vim b/.vim/vimrc_files/keymaps.vim index fe78484..b440aed 100644 --- a/.vim/vimrc_files/keymaps.vim +++ b/.vim/vimrc_files/keymaps.vim @@ -86,14 +86,20 @@ nnoremap <c-n> :call ToggleRelativeNumber()<CR> " add a marker fold snippet (for C/C++) nnoremap <C-f> o//{{{ <Esc>o//}}}<Esc><Up>A imap <C-f> <ESC><C-f> -"only works with v-block (not v-line) +" only works with v-block (not v-line) vnoremap <C-f> VV'<O//{{{ <Esc>'>o//}}}<Esc>'<<ESC><Up>A +" substitute selection +vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left> + +" +-----------------+ +" | Plugin specific | +" +-----------------+ " Open BufferExplorer nnoremap <C-b> :call BufExplorer()<CR> " Toggle Tagbar nnoremap <leader>t :TagbarToggle<CR> -" substitute selection -vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left> +" build tags of your own project with Ctrl-F12 +map <C-F12> :!ctags -R --sort=yes --c++-kinds=+pl --fields=+iaS --extra=+q --language-force=C++ .<CR> |