Dot macro against multiple lines!
The .
in vim is a powerful pseudo macro. It captures the last change and allows you to play that from your current cursor position.
Sometimes it's convenient to play the dot macro across multiple lines. To accomplish this feat is easy:
- enter visual mode and select your lines (shift-v)
- type
:norm .
<small><range> [colon][norm] [dot]
</small>
That's it.
Written by Jonathan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#