Este é um blog onde anoto dicas técnicas de informática e computação. This is a blog where I write down technical tips on computing. Be aware that some resources used in this blog may use cookies to collect information used by Ads and Google Analytics. I do not monetize from this website, neither require or use personal information.
Friday, June 19, 2020
Vim Show lines relative to the cursor position
:set relativenumber
It is useful when you want to delete a block of lines, quickly without entering in visual mode and selecting
For example,
To delete lines Setima Linha (0) until Nona Linha (2) , just type:
d 2 j
To delete lines from Setima Linha (0) until Segunda Linha (5), just type:
d 5 k
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment