smartmove.vim : Some useful keymappings for movement
| script karma
Downloaded by 542
Comments, bugs, improvements
script versions (upload new version)
|1. Jump to next tag on screen in a help file.
When the cursor is at or after the last tag on the screen continue the search
at the top of the screen.
mapped to: <tab>, <s-tab> in normal mode
disable with: let g:loaded_smartmove_nexthelptag=-1
The mapping is created on BufEnter when buftype=help or the buffer is readonly
2. Use H and L instead of ctrl-f and ctrl-b
When the cursor is at the top of the screen and H is pressed the screen is
scrolled up. When count is given or the cursor is not at the top of the screen,
the default function of H is executed (Home). Similar for L.
mapped to: H, L in normal and visual mode
disable with: let g:loaded_smartmove_smartscreen=-1
3. Make Home/End keys smarter
Home key toggles between ^/0 on normal lines. On wrapped lines it will move the
cursor to the beginning of the current screen line and if it is already there
it will move one line up. Similar functionality is provided for the End key.
To enable :call smartmove#MapHomeEnd()
|Unpack into vim runtime directory (eg. ~/.vim)|
Click on the package to download.
ip used for rating: 220.127.116.11