Skip to content

tyru/columnskip.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

" Example
nmap sj <Plug>(columnskip:nonblank:next)
omap sj <Plug>(columnskip:nonblank:next)
xmap sj <Plug>(columnskip:nonblank:next)
nmap sk <Plug>(columnskip:nonblank:prev)
omap sk <Plug>(columnskip:nonblank:prev)
xmap sk <Plug>(columnskip:nonblank:prev)

first non-blank mappings

Go to the next/previous line whose first character is non-blank.

first non-blank screencapture

" Example
nmap s] <Plug>(columnskip:first-nonblank:next)
omap s] <Plug>(columnskip:first-nonblank:next)
xmap s] <Plug>(columnskip:first-nonblank:next)
nmap s[ <Plug>(columnskip:first-nonblank:prev)
omap s[ <Plug>(columnskip:first-nonblank:prev)
xmap s[ <Plug>(columnskip:first-nonblank:prev)

About

Move vertically with skipping whitespaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published