diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-10 09:51:40 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-10 09:51:40 +1200 |
commit | 39e9abea82f6485cc429f05a03f63c9cabf086c6 (patch) | |
tree | 4b5a0e911bcfbdb549e3a88c8ff2bc001e113e7c | |
parent | Merge branch 'release/v0.6.0' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-insert-suspend-hlsearch-39e9abea82f6485cc429f05a03f63c9cabf086c6.tar.gz vim-insert-suspend-hlsearch-39e9abea82f6485cc429f05a03f63c9cabf086c6.zip |
Merge branch 'release/v0.7.0'v0.7.0
* release/v0.7.0:
Remove unneeded variable scoping
Switch to two-spacing
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | doc/insert_suspend_hlsearch.txt | 4 | ||||
-rw-r--r-- | plugin/insert_suspend_hlsearch.vim | 6 |
4 files changed, 7 insertions, 7 deletions
@@ -10,7 +10,7 @@ Requires Vim 7.0 or later. License ------- -Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself. +Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself. See `:help license`. [1]: https://sanctum.geek.nz/ @@ -1 +1 @@ -0.6.0 +0.7.0 diff --git a/doc/insert_suspend_hlsearch.txt b/doc/insert_suspend_hlsearch.txt index e263194..56bee0e 100644 --- a/doc/insert_suspend_hlsearch.txt +++ b/doc/insert_suspend_hlsearch.txt @@ -8,8 +8,8 @@ distracting effect the highlighting can cause while writing. REQUIREMENTS *insert_suspend_hlsearch-requirements* -This plugin is only available if 'compatible' is not set. It also requires the -|+autocmd| and |+extra_search| features. +This plugin is only available if 'compatible' is not set. It also requires +the |+autocmd| and |+extra_search| features. AUTHOR *insert_suspend_hlsearch-author* diff --git a/plugin/insert_suspend_hlsearch.vim b/plugin/insert_suspend_hlsearch.vim index 5d199f7..635ed8e 100644 --- a/plugin/insert_suspend_hlsearch.vim +++ b/plugin/insert_suspend_hlsearch.vim @@ -6,19 +6,19 @@ " Author: Tom Ryder <tom@sanctum.geek.nz> " License: Same as Vim itself " -if exists('g:loaded_insert_suspend_hlsearch') || &compatible +if exists('loaded_insert_suspend_hlsearch') || &compatible finish endif if !has('autocmd') || !has('extra_search') || v:version < 700 finish endif -let g:loaded_insert_suspend_hlsearch = 1 +let loaded_insert_suspend_hlsearch = 1 " Initialise option saving variable let s:hlsearch_save = &hlsearch " Save the current value of the 'hlsearch' option in a script variable, and -" disable it if enabled. Note that :nohlsearch does not work for this; see +" disable it if enabled. Note that :nohlsearch does not work for this; see " :help autocmd-searchpat. function! s:Suspend() abort let s:hlsearch_save = &hlsearch |