不是paste p对应的是put放上去 把什么放上去呢? 把d到寄存器的东西放上去 动手👊 我们试一试 我们输入一行oeasy然后对他进行 dd 这个时候oeasy这一行就进入了寄存器""了 然后p 一下,就会出现一个oeasy 9 p 就会出现9行oeasy 真的可以!!!🤪 但是这里面有两个 p 一个叫做 p 说是after cursor 另一个叫...
i-> 在光标前插入 (insert before cursor) I-> 在第一个非空白字符前插入 (insert before first non-blank) o-> 光标下面插入一个新行 (open line below) O-> 光标上面插入一个新行 (open line above) x-> 删除光标下(或者之后)的东西 (delete under and after cursor) 例如x就是删除当前光标下,3x...
A nice way use case forxis to swap a couple of characters when you make a typo. You remove (and cut) a character withxand immediately paste it after the cursor withp. Try it! 04.插入操作(insert) i,a,I,A四种插入: i插入到光标所在字母 a插入到光标后 I插入到行首 A插入到行尾 o,O...
i -> 在光标前插入 (insert before cursor) I -> 在第一个非空白字符前插入 (insert before first non-blank) o -> 光标下面插入一个新行 (open line below) O -> 光标上面插入一个新行 (open line above) x -> 删除光标下(或者之后)的东西 (delete under and after cursor) 例如x就是删除当前光...
5. put(paste) : command mode use p or P to put changed, deleted or copied data for line oriented data p puts the data below the current line P puts the data above the current line for character oriented data p puts the data after the cursor ...
If you want to put the text before your cursor, use the 'P' key. 💡 You can paste the same text multiple times by typing a number before pressing 'P'. Say you typed '4p', the same text will be pasted 4 times. Cut, copy and paste in Visual mode of Vim Vim's Visual mode ...
Applying same text modification in several lines Cool or not? Leave only the numbered lines. Com(m)a Trouble Words in parens Swap values inside brackets A HAPPY NEW YEAR 2014 ! Increment each number Vice versa Resort and deup a CSV list Delete to the end of the current line Simple text...
Using Vim's built-in commands, we can toggle two lines by pressingddp. For example, with the cursor on the first line of this block of text, the line order could be fixed by pressingddp: 2) Violets are blue, 1) Roses are red, 3) Sugar is sweet 4) And so are you. ...
1. Move the cursor around the screenuntilyou are comfortable. 2. Hold down the down key (j)untilit repeats. Now you know how to move to the next lesson. 3. Using the down key, move to lesson1.2. NOTE: If you are ever unsure about something you typed, press <ESC> to place ...
Turn off modelines set modelines=0 " Automatically wrap text that extends beyond the screen length. set wrap " Vim's auto indentation feature does not work properly with text copied from outisde of Vim. Press the <F2> key to toggle paste mode on/off. nnoremap <F2> :set invpaste paste...