aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-11 21:07:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-11 21:09:11 +1200
commit151d71c773f1749d5c81c43e65d14f4a08504d6c (patch)
tree5080fca106adf36112865b2f33e50dabbb59b3d5
parentRemove return value from EstablishDir() (diff)
downloaddotfiles-151d71c773f1749d5c81c43e65d14f4a08504d6c.tar.gz
dotfiles-151d71c773f1749d5c81c43e65d14f4a08504d6c.zip
Correct and improve comment-stripping command
-rw-r--r--vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 3887c11b..ae1b37d3 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -13,7 +13,7 @@
" something like this to strip out all the blank lines and lines with only
" comments:
"
-" :v/^\s*[^"]/d
+" :g/\m^$\|^\s*"/d
"
" This file should be saved as "vimrc" in the user runtime directory. On
" Unix-like operating systems, this is ~/.vim; on Windows, it's ~/vimfiles.