[llvm] c0fe071 - [vim] set commentstring (#71838)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 14:46:12 PST 2023


Author: Nick Desaulniers
Date: 2023-11-27T14:46:09-08:00
New Revision: c0fe0719df457b0992606b0f2a235719a5bbfd54

URL: https://github.com/llvm/llvm-project/commit/c0fe0719df457b0992606b0f2a235719a5bbfd54
DIFF: https://github.com/llvm/llvm-project/commit/c0fe0719df457b0992606b0f2a235719a5bbfd54.diff

LOG: [vim] set commentstring (#71838)

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
https://github.com/LunarVim/LunarVim/issues/4394.

Added: 
    

Modified: 
    llvm/utils/vim/ftplugin/llvm.vim

Removed: 
    


################################################################################
diff  --git a/llvm/utils/vim/ftplugin/llvm.vim b/llvm/utils/vim/ftplugin/llvm.vim
index bdf49c92ff22bc9..55315159c18bce8 100644
--- a/llvm/utils/vim/ftplugin/llvm.vim
+++ b/llvm/utils/vim/ftplugin/llvm.vim
@@ -10,3 +10,4 @@ let b:did_ftplugin = 1
 setlocal softtabstop=2 shiftwidth=2
 setlocal expandtab
 setlocal comments+=:;
+setlocal commentstring=;\ %s


        


More information about the llvm-commits mailing list