aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-10 09:55:31 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-10 09:55:31 +1200
commita8e2ed01eb1b5deafb44f1c51b8ab8f78911a259 (patch)
tree838cbc338579519e6260f815698d892b26e81ee1
parentMerge branch 'hotfix/v0.2.1' (diff)
parentBump VERSION (diff)
downloadvim-insert-timeout-a8e2ed01eb1b5deafb44f1c51b8ab8f78911a259.tar.gz
vim-insert-timeout-a8e2ed01eb1b5deafb44f1c51b8ab8f78911a259.zip
Merge branch 'release/v0.3.0'v0.3.0
* release/v0.3.0: Remove unneeded variable scoping Switch to two-spacing
-rw-r--r--README.md4
-rw-r--r--VERSION2
-rw-r--r--doc/insert_timeout.txt8
-rw-r--r--plugin/insert_timeout.vim6
4 files changed, 10 insertions, 10 deletions
diff --git a/README.md b/README.md
index d2e5702..fa42f68 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@ insert\_suspend\_hlsearch.vim
=============================
This plugin leaves insert mode automatically if there is no activity for a
-certain number of seconds, with an `'updatetime'` hook. This is just a plugin
+certain number of seconds, with an `'updatetime'` hook. This is just a plugin
packaging of Vim tip #1540:
<http://vim.wikia.com/wiki/To_switch_back_to_normal_mode_automatically_after_inaction>
@@ -12,7 +12,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/
diff --git a/VERSION b/VERSION
index 0c62199..0d91a54 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.2.1
+0.3.0
diff --git a/doc/insert_timeout.txt b/doc/insert_timeout.txt
index 1922805..7701d5f 100644
--- a/doc/insert_timeout.txt
+++ b/doc/insert_timeout.txt
@@ -3,19 +3,19 @@
DESCRIPTION *insert_timeout*
This plugin leaves insert mode automatically if there is no activity for a
-certain number of seconds, with an 'updatetime' hook. This is just a plugin
+certain number of seconds, with an 'updatetime' hook. This is just a plugin
packaging of Vim tip #1540.
REQUIREMENTS *insert_timeout-requirements*
-This plugin is only available if 'compatible' is not set. It also requires the
-|+autocmd| feature.
+This plugin is only available if 'compatible' is not set. It also requires
+the |+autocmd| feature.
OPTIONS *insert_timeout-options*
*g:insert_timeout_duration*
Set `g:insert_timeout_duration` to the number of milliseconds after which
-insert mode should time out. The default value is 10000 (10 seconds).
+insert mode should time out. The default value is 10000 (10 seconds).
AUTHOR *insert_timeout-author*
diff --git a/plugin/insert_timeout.vim b/plugin/insert_timeout.vim
index 36f63b6..3705df0 100644
--- a/plugin/insert_timeout.vim
+++ b/plugin/insert_timeout.vim
@@ -1,18 +1,18 @@
"
" insert_timeout.vim: Leave insert mode automatically if there is no activity
-" for a certain number of seconds, with an 'updatetime' hook. This is just a
+" for a certain number of seconds, with an 'updatetime' hook. This is just a
" plugin packaging of Vim tip #1540.
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('g:loaded_insert_timeout') || &compatible
+if exists('loaded_insert_timeout') || &compatible
finish
endif
if !has('autocmd') || v:version < 700
finish
endif
-let g:loaded_insert_timeout = 1
+let loaded_insert_timeout = 1
" Initialise 'updatetime' caching variable
let s:updatetime_save = &updatetime