Reputation:
When i write /
or :
vim opens command mode - i can write command like:
vimgrep /abc/
If i click shift+p it fill the previous command.
In this case if i want to change only letter a
to b
I should use arrow key until i get to the letter and then rename it
abc -> bbc.
Is there any faster way - arrow keys are far away and slower to write.
Can I use normal mode when I im in the command pallete(bottom place where i write the commands).
Thank you
Upvotes: 0
Views: 313
Reputation: 172590
Yes, Vim's command-line has limited editing capabilities; for complex edits there, you'd have to use cursor keys. Fortunately, there's a command-line window, which allows edits just like in any other buffer.
You'll find the complete explanation at :help command-line-window
. Here's just a quick guide:
q:
/ q/
instead of :
/ /
.<C-f>
.Upvotes: 1
Reputation: 196566
Shift+P
(or simply P
should insert P
. Did you mean <C-p>
?:help cmdline-editing
.Upvotes: 1