diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-09 17:41:38 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-09 17:41:38 +1200 |
commit | 040ee022c80ba3d5745e27dacd898156310e77c8 (patch) | |
tree | b6108634a1976bc63458520706126798717026a3 | |
parent | Merge branch 'hotfix/v0.1.1' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-foldlevelstart-stdin-040ee022c80ba3d5745e27dacd898156310e77c8.tar.gz vim-foldlevelstart-stdin-040ee022c80ba3d5745e27dacd898156310e77c8.zip |
Merge branch 'release/v0.2.0'v0.2.0
* release/v0.2.0:
Remove unneeded variable scoping
Switch to two-spacing
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | doc/foldlevelstart_stdin.txt | 2 | ||||
-rw-r--r-- | plugin/foldlevelstart_stdin.vim | 4 |
4 files changed, 5 insertions, 5 deletions
@@ -7,7 +7,7 @@ standard input, which Vim doesn't do by default. 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.1.1 +0.2.0 diff --git a/doc/foldlevelstart_stdin.txt b/doc/foldlevelstart_stdin.txt index 9ac8ab2..33a48f6 100644 --- a/doc/foldlevelstart_stdin.txt +++ b/doc/foldlevelstart_stdin.txt @@ -7,7 +7,7 @@ standard input, which Vim doesn't do by default. REQUIREMENTS *foldlevelstart_stdin-requirements* -This plugin only loads if 'compatible' is not set. It requires the |+autocmd| +This plugin only loads if 'compatible' is not set. It requires the |+autocmd| and |+folding| features, with the |StdinReadPre| event introduced in |version7|. diff --git a/plugin/foldlevelstart_stdin.vim b/plugin/foldlevelstart_stdin.vim index f8e4d50..37caddc 100644 --- a/plugin/foldlevelstart_stdin.vim +++ b/plugin/foldlevelstart_stdin.vim @@ -5,13 +5,13 @@ " Author: Tom Ryder <tom@sanctum.geek.nz> " License: Same as Vim itself " -if exists('g:loaded_foldlevelstart_stdin') || &compatible +if exists('loaded_foldlevelstart_stdin') || &compatible finish endif if !has('autocmd') || !has('folding') || !exists('##StdinReadPre') finish endif -let g:loaded_foldlevelstart_stdin = 1 +let loaded_foldlevelstart_stdin = 1 " Check if 'foldlevelstart' is non-negative, and set 'foldlevel' to its value " if it is |