Skip to content

Commit

Permalink
[vim] set commentstring (#71838)
Browse files Browse the repository at this point in the history
I recently moved from using vim to lunarvim. I noticed that `gcc` (lol)
wasn't able to comment out lines, because commentstring is not set.

Thanks to Chase Colman for the suggestion in
LunarVim/LunarVim#4394.
  • Loading branch information
nickdesaulniers committed Nov 27, 2023
1 parent e7dd596 commit c0fe071
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/utils/vim/ftplugin/llvm.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ let b:did_ftplugin = 1
setlocal softtabstop=2 shiftwidth=2
setlocal expandtab
setlocal comments+=:;
setlocal commentstring=;\ %s

0 comments on commit c0fe071

Please sign in to comment.