Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tyru/columnskip.vim

Move vertically with skipping whitespaces
https://github.com/tyru/columnskip.vim

Last synced: about 2 months ago
JSON representation

Move vertically with skipping whitespaces

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)
```