diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-10-01 14:27:46 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-10-01 14:27:46 +1300 |
commit | cb1cef57c2947f6e476bb902d690a71ebe035fb8 (patch) | |
tree | 93e0a9094f37d55f3c929578f829574096555988 /vim | |
parent | Add config header for st(1) (diff) | |
download | dotfiles-cb1cef57c2947f6e476bb902d690a71ebe035fb8.tar.gz dotfiles-cb1cef57c2947f6e476bb902d690a71ebe035fb8.zip |
Add j to formatoptions if possible
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -150,6 +150,12 @@ 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 + set formatoptions+=j +endif + " " Quick way to toggle flags in 'formatoptions' that I often want to change; " specifically: |