17 lines
652 B
VimL
17 lines
652 B
VimL
" Surround visual block in #if 0 block
|
|
vmap 0 V'<[ ki#if 0<Esc>'>o#endif<Esc>
|
|
" Set 'comments' to format dashed lists in comments.
|
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
|
|
" Set 'commentstring' to single line comment style.
|
|
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>
|
|
" "ys{motion}t" turns "word" -> "TODO(word):"
|
|
let b:surround_{char2nr("t")} = "TODO(\r):"
|
|
" Map K to get YouCompleteMe documentation
|
|
nnoremap K :YcmCompleter GetDoc<CR>
|
|
" DoxygenToolkit
|
|
nnoremap <leader>d :Dox<CR>
|