]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ftplugin/cpp.vim
zsh: add outdated package count to motd
[dotfiles.git] / vim / ftplugin / cpp.vim
index b54cffd5bdb0f8aa8c110b15196b6acf29f95f0d..78756f47c96629f3d99fd63556fe9e8ba6203f8c 100644 (file)
@@ -43,12 +43,14 @@ let g:switch_const_definitions =
     \   'const \([[:alnum:]_:<>]\{-}\) &': '\1 '
     \ } ]
 
-nnoremap <buffer> <leader>c :call switch#Switch(g:switch_const_definitions, {})<cr>
+nnoremap <buffer> <leader>c :call switch#Switch({'definitions': g:switch_const_definitions})<cr>
 
 nnoremap <buffer> gd :YcmCompleter GoTo<CR>
 nnoremap <buffer> <C-W>d :vs<CR>:YcmCompleter GoTo<CR>
 nnoremap <buffer> gD :YcmCompleter GoToReferences<CR>
 
+nnoremap <buffer> <leader>fi :YcmCompleter FixIt<CR>
+
 " format with =
 call operator#user#define_ex_command('ycmcompleter-format', 'YcmCompleter Format')
 map <buffer> = <Plug>(operator-ycmcompleter-format)