-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keystrokes for the example gifs #39
Comments
In example 2:
How is that? i_CTRL-E, inserts the character below the cursor... :( Ah, never mind. I found it :P → https://github.com/terryma/dotfiles/blob/master/.vimrc#L763 |
Wow that's obscure - do you think this is worth adding to the docs? |
How does that mapping even work, since you can't hit
|
@delvarworld Put this into your let g:multi_cursor_exit_from_insert_mode = 0 |
Trying to follow example 2 but it simply does not work...please avoid using custom mappings or at least explain them! |
Yeap, second example does not work. At least I did not managed to make it work for me. |
The following revised keystrokes work for me for the second example if you don't use the special mappings that Terry has:
|
@eapache For me that does not simply work. Do you have |
Yes I do, I'd forgotten I even had that in my vimrc. I'm wondering if it should be the default, it seems very useful and I can't think of a reason it could cause problems? |
Example 1
p
withfp
<C-n>
c
to change<Esc>
to quit back to regular VimExample 2
V
G
<C-n>
to add a cursor at the beginning of every line and move to normal modeI
to insert at the beginning of the line"
, move to end of line with<C-e>
, type another"
followed by,
<C-j>
(this is a custom mapping of mine in Insert mode)<BS>
, now all the words are on the same lineExample 3
dt"
to delete everything until the first quoteL
to go to end of line (my custom mapping, default$
)r,
to replace the]
with,
H
(custom, default^
), pressf,
to find the first commav
to select,
in visual mode, and mash on<C-n>
until the last occurrencec
followed by<CR>
to break the line into multiple lines<C-k>
(again my custom mapping)C-g<BS>
(custom mapping to move cursor in insert mode)C-e<BS>
Example 4
jV
to visually select the second lineGk
to select all but the last line:
followed by theMultipleCursorsFind
commando
to toggle the cursor for each visual selectionp
to paste the content of the+
register (I haveclipboard=unnamedplus
in my vimrc) to each virtual cursorThe text was updated successfully, but these errors were encountered: