Use K for YouCompleteMe GetDoc in C/C++ files

This commit is contained in:
2016-09-11 14:42:01 +01:00
parent d3ee7b2c73
commit 4adb4d22fe
3 changed files with 6 additions and 3 deletions

View File

@@ -6,3 +6,5 @@ setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
setlocal commentstring=//%s
" Stop automatic new lines which typing long single liners
setlocal textwidth=0
" Map K to get YouCompleteMe documentation
nnoremap K :YcmCompleter GetDoc<CR>

2
after/ftplugin/cpp.vim Normal file
View File

@@ -0,0 +1,2 @@
" Map K to get YouCompleteMe documentation
nnoremap K :YcmCompleter GetDoc<CR>