Beginner's Vim: Line completition
You know that when you are typing (insert mode) in Vim you can access word completition with CTRL-n (or CTRL-p), right?
This searches your buffer for words that match the pattern you have already typed in.
Well, line completition is the bigger brother of word completition.
CTRL-x CTRL-l
The above will search you buffer (all buffer, yes) for whole lines that match the pattern!
Try it, it is pretty awesome :)
Written by Tanja Pislar
Related protips
1 Response
Another good one:
CTRL-x CTRL-o
or if you're in a rails app and are using vim-rails
CTRL-x CTRL-u
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#