Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tyru/columnskip.vim
Move vertically with skipping whitespaces
https://github.com/tyru/columnskip.vim
Last synced: about 1 month ago
JSON representation
Move vertically with skipping whitespaces
- Host: GitHub
- URL: https://github.com/tyru/columnskip.vim
- Owner: tyru
- Created: 2020-04-14T10:55:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-21T12:16:24.000Z (about 3 years ago)
- Last Synced: 2024-08-01T17:41:26.262Z (3 months ago)
- Language: Vim script
- Size: 4.88 KB
- Stars: 54
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# columnskip.vim
This plugin provides vertical movement mappings which skips whitespaces.
## non-blank mappings
Go to the next/previous line of same indent as current column.
![nonblank screencapture](https://user-images.githubusercontent.com/48169/79217671-30f26500-7e8a-11ea-82f1-88ba09006dde.gif)
```vim
" Example
nmap sj (columnskip:nonblank:next)
omap sj (columnskip:nonblank:next)
xmap sj (columnskip:nonblank:next)
nmap sk (columnskip:nonblank:prev)
omap sk (columnskip:nonblank:prev)
xmap sk (columnskip:nonblank:prev)
```## first non-blank mappings
Go to the next/previous line whose first character is non-blank.
![first non-blank screencapture](https://user-images.githubusercontent.com/48169/80284461-916e8580-8759-11ea-957c-d0000885f37e.gif)
```vim
" Example
nmap s] (columnskip:first-nonblank:next)
omap s] (columnskip:first-nonblank:next)
xmap s] (columnskip:first-nonblank:next)
nmap s[ (columnskip:first-nonblank:prev)
omap s[ (columnskip:first-nonblank:prev)
xmap s[ (columnskip:first-nonblank:prev)
```