aboutsummaryrefslogtreecommitdiff
path: root/plugin/fall.vim
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-09-15 11:41:52 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-09-15 12:05:58 -0600
commit1ce32ad32e0006fbc7fe3e5e82f400ee0f7d52fa (patch)
tree28a810944a9557668fc0b29e6b6aab111840b918 /plugin/fall.vim
parenta3caef03c883cd9711ac60996227e13e1199e4db (diff)
downloadfieldmarshal.vim-1ce32ad32e0006fbc7fe3e5e82f400ee0f7d52fa.tar.gz
fieldmarshal.vim-1ce32ad32e0006fbc7fe3e5e82f400ee0f7d52fa.tar.bz2
fieldmarshal.vim-1ce32ad32e0006fbc7fe3e5e82f400ee0f7d52fa.zip
insert.vim: add Zi and Za commands to insert before/after a text object/motion
So typing Ziib will move the cursor to the next body and enter INSERT mode. Zaib will move the cursor to the END of the next body and enter INSERT mode Ziiw will enter insert mode before the current word Zaiw will enter insert mode after the current word. Ziip will enter insert mode befor the current paragraph thus, Zi^ is semantically equivalent to I and Za$ is semantically equivalent to A. Zib will move the cursor back a word and enter insert mode. All of these commands are repeatable with the dot (.) operator. much of this same thing can be accomplished with the change operator (c) and use of ^R^P", but that's quite obtuse, especially when working on large text objects. Right now, without Rahm's patched Neovim using user-defined text objects will cause these commands to not play well with the dot (.) operator. This is because do accomplish this, this plugin uses an operator within an operator which is not well supported in Vim.
Diffstat (limited to 'plugin/fall.vim')
0 files changed, 0 insertions, 0 deletions