Showing posts with label VIM. Show all posts
Showing posts with label VIM. Show all posts

The Vim commands cheat sheet - 1.1 By Nana Långstedt


The Vim commands cheat sheet - 1.1

By Nana Långstedt
A cheat sheet of some useful and most often used Vim commands. This Vim cheat sheet isn't trying to include all the Vim commands in the known universe, but should list the most essential ones.
:e filename - Open a new file. You can use the Tab key for automatic file name completion, just like at the shell command prompt.
:w filename - Save changes to a file. If you don't specify a file name, Vim saves as the file name you were editing. For saving the file under a different name, specify the file name.

Vim Cookbook by Steve Oualline


Vim Cookbook

by Steve Oualline
This is the Vim cookbook page. It contains short recipes for doing many simple and not so simple things in Vim. You should already know the basics of Vim, however each command is explained in detail.
Each set of instructions is a complete package. Feel free to pick and choose what you need.
Character twiddling
If you type fast your fingers can easily get ahead of your mind. Frequently people transpose characters. For example the word "the" comes out "teh".
To swap two characters, for example "e" with "h", put the cursor on the cursor on the "e" and type xp.
The "x" command deletes a character (the "e") and the "p" pastes it after the cursor (which is now placed over the "h".)

VIM Quick Reference Card By Laurent Grégoire


VIM Quick Reference Card

By Laurent Grégoire
Everything you need to know to master VIM, a free vi clone running under various platforms. The VIM Quick Reference Card is released under the GNU GPL (General Public Licence).
This card contains the most used commands, sorted by category, on the following topics:
  • Basic and advanced movement;
  • Inserting and replacing text;
  • Ex commands;
  • Copying and transforming;
  • Visual mode, screen commands;
  • Tags, mapping and abreviations;
  • And much more...!
Handy on your desk as a quick guide, you will always learn one more funky vim command to improve once again your C++ hourly coding rate, or impress your notepad user colleagues! The card is divided on three columns and its printout is designed to be folded twice to produce an easy-to-handle quick reference card (hence the name.)