Jump to content

Vim tips: Vim mappings and abbreviations


deathseeker25
 Share

Recommended Posts

deathseeker25

Vim ships with a lot of useful functions that make life easier when you're editing text, but Vim is also an extremely extensible editor. If you find yourself typing the same long commands or strings of text over and over again, it's time you learned how to set mappings and abbreviations in Vim, to save valuable keystrokes for your code or prose.

Just as you can set shortcuts in KDE, you can map keystrokes to actions in Vim. A mapping can be as simple as creating an abbreviation that converts your initials to your full name, or something more complicated, like running a function when you press F10. Let's take a look at mappings, and how they can make you much more productive when working in Vim.

http://www.linux.com/article.pl?sid=06/06/08/1431210

Algo que eu encontrei ao ler as notícias do e-mail e que acho útil para todos os que trabalham com o Vim (por acaso não é o meu caso). Achei por bem partilhar o tutorial, neste caso em inglês. Acho que seria bom que houvesse documentação deste género em português, isto é, uma comunidade dedicada exclusivamente a notícias relacionadas com o mundo do Free Software e Software Open Source. 😄

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.