diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-13 11:45:59 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-13 11:45:59 +1200 |
commit | 5a5f96b4b6e3d3d9d2dffcca18f4e8c32afdf9cc (patch) | |
tree | 6f3f70fff6330b4807fa97cedc34c45192bbf2eb /vim/vimrc | |
parent | vr func for moving to VCS root (diff) | |
download | dotfiles-5a5f96b4b6e3d3d9d2dffcca18f4e8c32afdf9cc.tar.gz dotfiles-5a5f96b4b6e3d3d9d2dffcca18f4e8c32afdf9cc.zip |
More thorough check for 'j' in 'formatoptions'
Found in @tpope's vim-sensible
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |