Live data from Hacker News

Become a Vim Master

howtogeek.com

1–5 of 5 posts

Re: Become a Vim Master

#2
Thanks for sharing this great article.

In my opinion, it would be nice to get more information of how to combine commands. There are a lot of ways to do that and i think when anybody (include myself) wants to get a Vim Master, you have to understand more of this.

Hope i could help you.

Re: Become a Vim Master

#3

Thanks for sharing this great article. In my opinion, it would be nice to get more information of how to combine commands. There are a lot of ways to do that and i think when anybody (include myself) wants to get a Vim Master, you have to understand more of this. Hope i could help you.

Look around for "vim grammar". There were a couple of posts recently about this subject: basically you should consider Vim's commands/motions/text-objects/count as the lexical parts of a language that you combine to form phrases.

This a simple example of combining commands in Vim, first in English, then in Vim-speak:

I want to turn this line into a paragraph, make it UPPERCASE and duplicate it 10 times.

yss

vitgU10p gU$yss

10p ...

Like for everything in Vim, there are many ways to do that. The optimal order is not always the most natural but it's often close and it's almost always faster than in other editors.

Re: Become a Vim Master

#4

Thanks for sharing this great article. In my opinion, it would be nice to get more information of how to combine commands. There are a lot of ways to do that and i think when anybody (include myself) wants to get a Vim Master, you have to understand more of this. Hope i could help you.

Look around for "vim grammar". There were a couple of posts recently about this subject: basically you should consider Vim's commands/motions/text-objects/count as the lexical parts of a language that you combine to form phrases. This a simple example of combining commands in Vim, first in English, then in Vim-speak: I want to turn this line into a paragraph, make it UPPERCASE and duplicate it 10 times. yss vitgU10p…

While looking around i found a book from PragmaticProgrammers for the vim. Compact and save my time.

Vim is more than just another editor and its fast.

What the heck does ss on the beginning? The rest of this command is clear.

Re: Become a Vim Master

#5

Earlier quoted context omitted.

Look around for "vim grammar". There were a couple of posts recently about this subject: basically you should consider Vim's commands/motions/text-objects/count as the lexical parts of a language that you combine to form phrases. This a simple example of combining commands in Vim, first in English, then in Vim-speak: I want to turn this line into a paragraph, make it UPPERCASE and duplicate it 10 times. yss vitgU10p…

While looking around i found a book from PragmaticProgrammers for the vim. Compact and save my time. Vim is more than just another editor and its fast. What the heck does ss on the beginning? The rest of this command is clear.

yss comes from Surround.vim. It's the command used to wrap the current line with "whatever" comes after:

    yss

yss"

and so on…

Surround is a killer plugin.