diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-12 23:19:12 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-12 23:19:12 +1200 |
commit | d1c87018e705e976b1e500ab32fcfe1a03445577 (patch) | |
tree | a03924be559cf74c1481750d977cf69fb3934cff | |
parent | First version (diff) | |
parent | Bump VERSION (diff) | |
download | vim-scroll-next-d1c87018e705e976b1e500ab32fcfe1a03445577.tar.gz vim-scroll-next-d1c87018e705e976b1e500ab32fcfe1a03445577.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 | 4 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | doc/scroll_next.txt | 10 | ||||
-rw-r--r-- | plugin/scroll_next.vim | 4 |
4 files changed, 10 insertions, 10 deletions
@@ -5,13 +5,13 @@ This plugin provides a mapping target that scrolls through the current buffer with `PageDown` while the final line of the buffer is not visible in the window, and `:next` to move to the next file in the argument list when it is. It's therefore a lazy way to read several buffers in sequence while just -tapping one key. The author likes to use it for reading several buffers on +tapping one key. The author likes to use it for reading several buffers on limited keyboards, such as a mobile phone terminal client. 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.0 +0.2.0 diff --git a/doc/scroll_next.txt b/doc/scroll_next.txt index 0aabaf9..c53bbfb 100644 --- a/doc/scroll_next.txt +++ b/doc/scroll_next.txt @@ -6,20 +6,20 @@ This plugin provides a mapping target that scrolls through the current buffer with |PageDown| while the final line of the buffer is not visible in the window, and |:next| to move to the next file in the argument list when it is. It's therefore a lazy way to read several buffers in sequence while just -tapping one key. The author likes to use it for reading several buffers on +tapping one key. The author likes to use it for reading several buffers on limited keyboards, such as a mobile phone terminal client. REQUIREMENTS *scroll_next-requirements* -This plugin only loads if 'compatible' is not set. It works on |version6| and -newer. If you have |version7| then you don't have to hit the last line of the +This plugin only loads if 'compatible' is not set. It works on |version6| and +newer. If you have |version7| then you don't have to hit the last line of the buffer; it just has to be visible in the window. MAPPINGS *scroll_next-mappings* *<Plug>(ScrollNext)* -The single normal mode mapping target is `<Plug>(ScrollNext)`. There is no -default key mapping; you should define one yourself in your |vimrc|. For +The single normal mode mapping target is `<Plug>(ScrollNext)`. There is no +default key mapping; you should define one yourself in your |vimrc|. For example: > nmap <Space> <Plug>(ScrollNext) diff --git a/plugin/scroll_next.vim b/plugin/scroll_next.vim index 0cb23dc..8f09b24 100644 --- a/plugin/scroll_next.vim +++ b/plugin/scroll_next.vim @@ -5,13 +5,13 @@ " Author: Tom Ryder <tom@sanctum.geek.nz> " License: Same as Vim itself " -if exists('g:loaded_scroll_next') || &compatible +if exists('loaded_scroll_next') || &compatible finish endif if v:version < 600 finish endif -let g:loaded_scroll_next = 1 +let loaded_scroll_next = 1 " Check visibility of last line (Vim >=7.0) or cursor presence on last line " and flick to :next if appropriate, or just page forward with PageDown |