aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/copy_linebreak.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-12 23:58:43 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-12 23:58:43 +1300
commit03919f1c03f89e17c90e398a7eaceabb21f1268c (patch)
tree96aa801066da03d5fe3f1ac3e700bb7d2fd9b581 /vim/plugin/copy_linebreak.vim
parentUse :set not :setlocal for 'hlsearch'/'incsearch' (diff)
downloaddotfiles-03919f1c03f89e17c90e398a7eaceabb21f1268c.tar.gz
dotfiles-03919f1c03f89e17c90e398a7eaceabb21f1268c.zip
Separate g:loaded/&cp tests from feat tests
Keeping the tests at the beginning of plugins on one line without continuations is needed to work around &cpo-=C.
Diffstat (limited to 'vim/plugin/copy_linebreak.vim')
-rw-r--r--vim/plugin/copy_linebreak.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/vim/plugin/copy_linebreak.vim b/vim/plugin/copy_linebreak.vim
index 158282bf..9d241d5a 100644
--- a/vim/plugin/copy_linebreak.vim
+++ b/vim/plugin/copy_linebreak.vim
@@ -6,7 +6,10 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('g:loaded_copy_linebreak') || &compatible || !has('linebreak')
+if exists('g:loaded_copy_linebreak') || &compatible
+ finish
+endif
+if !has('linebreak')
finish
endif
let g:loaded_copy_linebreak = 1