Last active
December 18, 2015 05:49
-
-
Save TaurusOlson/5735757 to your computer and use it in GitHub Desktop.
Selection of blocks (handy for Lisp/Clojure or html)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nnoremap q) va) " expand | |
vnoremap q) a) " expand in visual mode (keep expanding) | |
vnoremap q( <ESC>%f(va) " collapse | |
nnoremap q] va] | |
vnoremap q] a] | |
vnoremap q[ <ESC>%f[va] | |
nnoremap q} va} | |
vnoremap q} a} | |
vnoremap q{ <ESC>%f{va} | |
nnoremap q> va> | |
vnoremap q> a> | |
vnoremap q< <ESC>%f<va> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These mappings allow to select nested blocks with successive keystrokes like expand-region.el.