mirror of
https://github.com/Hizenberg469/Vim-tutorials.git
synced 2026-04-19 22:02:24 +03:00
cut-copy-paste started
This commit is contained in:
31
vim-commands
31
vim-commands
@@ -158,5 +158,34 @@ Line mode:
|
||||
Copy = yank
|
||||
paste = put
|
||||
|
||||
> for yanking(copying) use 'y' or 'Y' command.
|
||||
> for yanking(copying) use 'y' command.
|
||||
> Just like 'd' command behavior with 'p' command is same.
|
||||
|
||||
* Undo command:
|
||||
|
||||
> To undo the action of previous command, use 'u' command to
|
||||
undo the action.
|
||||
> To redo the same command undone by undo 'u' command use 'CTRL+r'
|
||||
command.
|
||||
|
||||
* Type of registers:
|
||||
|
||||
> Named registers : "a to "z
|
||||
> Number register : "0 to "9
|
||||
> unnamed register : ""
|
||||
|
||||
> unnamed register contains the data with acquired from one of the
|
||||
commmands d, x, c, y and s.
|
||||
c -> , s -> substitute.
|
||||
|
||||
> "0 : Most recently yanked data
|
||||
> "1 : The data which is deleted recently.
|
||||
> "2 : The data which was deleted second last time.
|
||||
> "3 : and so on till "9....
|
||||
|
||||
> use :reg to see the content of each register.
|
||||
> use :reg <arg>
|
||||
wherer arg -> register name to show the content
|
||||
arg can be string containing all the
|
||||
registers named concatenated into a
|
||||
single string.
|
||||
|
||||
Reference in New Issue
Block a user