Created
January 25, 2020 11:39
-
-
Save nbardiuk/05fbff4d32c4b18d7e3fe41166af2c43 to your computer and use it in GitHub Desktop.
sexp element pair
This file contains 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
" emulate text object for pair of elements | |
" i.e. key/value binding/expr test/expr | |
" | |
" pair forward | |
xmap <buffer> ip <Plug>(sexp_inner_element)<Plug>(sexp_move_to_next_element_tail) | |
omap <buffer> ip :<C-U>normal vip<CR> | |
" pair backward | |
xmap <buffer> iP <Plug>(sexp_inner_element)o<Plug>(sexp_move_to_prev_element_head) | |
omap <buffer> iP :<C-U>normal viP<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment