From: Samir Benmendil Date: Mon, 1 Jun 2020 15:27:10 +0000 (+0100) Subject: vim: update switch#Switch to new API X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/1eea25c716ba1beafa9454b6b7fa8536407c6a08?ds=inline vim: update switch#Switch to new API It now takes a dict. --- diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index b54cffd..a3846a8 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -43,7 +43,7 @@ let g:switch_const_definitions = \ 'const \([[:alnum:]_:<>]\{-}\) &': '\1 ' \ } ] -nnoremap c :call switch#Switch(g:switch_const_definitions, {}) +nnoremap c :call switch#Switch({'definitions': g:switch_const_definitions}) nnoremap gd :YcmCompleter GoTo nnoremap d :vs:YcmCompleter GoTo