diff --git a/vim-commands b/vim-commands index cdcea87..d43b7a2 100644 --- a/vim-commands +++ b/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 + wherer arg -> register name to show the content + arg can be string containing all the + registers named concatenated into a + single string.