-
Couldn't load subscription status.
- Fork 244
Closed
Description
Example 1
- jump to
pwithfp - select the word under cursor with
<C-n> - do that two more times for the other two occurrences in the function
- press
cto change - type the replacement
- press
<Esc>to quit back to regular Vim
Example 2
- select the line with
V - go to the end of the file with
G - press
<C-n>to add a cursor at the beginning of every line and move to normal mode - press
Ito insert at the beginning of the line - type
", move to end of line with<C-e>, type another"followed by, - move every cursor down one line with
<C-j>(this is a custom mapping of mine in Insert mode) - hit
<BS>, now all the words are on the same line - the rest is just normal Vim
Example 3
- press
dt"to delete everything until the first quote - press
Lto go to end of line (my custom mapping, default$) - pree
r,to replace the]with, - go back to the beginning of the line with
H(custom, default^), pressf,to find the first comma - press
vto select,in visual mode, and mash on<C-n>until the last occurrence - press
cfollowed by<CR>to break the line into multiple lines - move every cursor up one line with
<C-k>(again my custom mapping) - delete the left quote with
C-g<BS>(custom mapping to move cursor in insert mode) - go to end of line and delete right quote with
C-e<BS>
Example 4
- press
jVto visually select the second line - press
Gkto select all but the last line - type
:followed by theMultipleCursorsFindcommand - press
oto toggle the cursor for each visual selection - press
pto paste the content of the+register (I haveclipboard=unnamedplusin my vimrc) to each virtual cursor
Metadata
Metadata
Assignees
Labels
No labels