aboutsummaryrefslogtreecommitdiff
path: root/plugin/insert.vim
Commit message (Collapse)AuthorAge
* insert.vim: add more text objectsJosh Rahm2022-09-16
| | | | | | | | Z] - move to the end of the next text object Z[ - move to the start of the next text object Zd - delete in the recorded text object Zc - change in the recorded text object Zn - repeat Z]
* insert.vim: add more commansd to insert.vimJosh Rahm2022-09-16
| | | | | | | | | | | ZO - insert a new line before the text object/motion and enter insert mode. Zo - insert a new line after the text object/motion and enter insert mode. Z[ - Go to the beginning of a text object. (Can be used as a text object itself) Z] - Go to the end of a text object. (Can be used as a text object itself.)
* insert.vim: add Zi and Za commands to insert before/after a text object/motionJosh Rahm2022-09-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* insert.vim: add cI and cgI commands.Josh Rahm2022-09-12
c[g]I - starts insert after the v:count1'th WORD. If the g is not supplied, whitespace is skipped and insert starts right before th e (v:count1+1)'th WORD.