aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 3e67341d..3f40f14c 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -139,9 +139,9 @@ set nojoinspaces
" to it; note that it wipes out your z mark, if you happen to use it
nnoremap J mzJ`z
-" If we have Vim 7.4, add j to the format options to get rid of comment
-" leaders when joining lines
-if v:version >= 704
+" If we can, add j to the format options to get rid of comment leaders when
+" joining lines
+if v:version > 703 || v:version == 703 && has("patch541")
set formatoptions+=j
endif