diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-13 10:55:20 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-13 10:55:20 +1200 |
commit | 2560a05fe5b46c857670605e9889b2e7fadfc6f1 (patch) | |
tree | d9909a1690167528bf5fe0e598c0cf51d2328187 /vim | |
parent | Check for +unix before binding date commands (diff) | |
download | dotfiles-2560a05fe5b46c857670605e9889b2e7fadfc6f1.tar.gz dotfiles-2560a05fe5b46c857670605e9889b2e7fadfc6f1.zip |
Use proper version test for 'fo' j
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -185,8 +185,10 @@ nnoremap <silent> ZA :<C-U>wall!<CR> set nrformats-=octal " Try to set the 'j' flag for 'formatoptions', to automatically delete comment -" leaders when joining lines -silent! set formatoptions+=j +" leaders when joining lines, if supported +if v:version >= 704 || v:version == 703 && has('patch541') + set formatoptions+=j +endif " \f shows the current formatoptions at a glance nnoremap <silent> <Leader>f :<C-U>setlocal formatoptions?<CR> |