Quantcast
Channel: Vimタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 5608

Yank registered

$
0
0

:reg " and :reg 0

When you use x, you are cutting to the default register.

# To see what in the default register
:reg "

# To see what in the register 0
:reg 0 # yank register

Using reg 0 to paste

# diw(delete inner word) will register in the default register.
# In order to put the yanked word, use `"0P`.
"0P

True delete in vim

# Just to delete, use "_. 
# e.g. to delete a word
"_diw

Meet the yank register

Replace a word with yanked text


Viewing all articles
Browse latest Browse all 5608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>