]> git.rmz.io Git - dotfiles.git/commitdiff
vim/c: don't put spaces around inline comments
authorSamir Benmendil <me@rmz.io>
Fri, 8 May 2020 14:49:09 +0000 (15:49 +0100)
committerSamir Benmendil <me@rmz.io>
Fri, 8 May 2020 14:49:09 +0000 (15:49 +0100)
vim/ftplugin/c.vim

index 2917e5f55d6e93272ec58190afa1309f3ede1bc4..4131fa2e04417de2315be9cf59d1636aa0a41004 100644 (file)
@@ -13,5 +13,6 @@ nnoremap <buffer> gd :YcmCompleter GoTo<CR>
 nnoremap <buffer> <C-W>d :vs<CR>:YcmCompleter GoTo<CR>
 nnoremap <buffer> gD :YcmCompleter GoToReferences<CR>
 
-setlocal cinoptions=     " reset cinoptions
+let b:tcomment_options = {'whitespace': 'no'}
+
 setlocal cinoptions+=l1  " align with case label