Well
you asked for it. Last week I did the first vim tip of the week and it
looks like you all want more. I got another goodie today that you might
enjoy. How many of you know what SHIFT-K does in command mode? No,
don’t go look it up. Do you know right now? If not keep reading. If so,
I’m impressed.
Instead of just telling you what it does I want you to give it a try
for yourself (no better way to learn than to do, right?). Follow the
below instructions and see if you can figure out what it does. First
person to figure it out and comment with the answer wins!
Ready, Set, Go!
Open up a new file with vim:
vim file1
switch to insert mode (i,I,a,A,o,O, etc).
type a few linux commands into a new line (any command you want):
vim awk man aptitude
switch back to command mode (esc)
put your cursor on any of the commands and press SHIFT-K.
Pretty slick, particularly when trying to decipher shell scripts if
you’re unfamiliar with the commands, or reading documentation that
refers to related apps!
…so, what does it do? Enjoy.. and be back next week for another tip! Thanks Dax for pointing this out to me.
Powered by ScribeFire.
No comments:
Post a Comment