jpeters

Group: Members
Posts: 804
Joined: April 2006 |
 |
Posted: Dec. 10 2007,08:11 |
 |
Using Vim has saved me endless hours recently (writing a testing program with lots of repetitous entering of data into arrays). One of the features that really came in handy was block visual mode (in 7.1) <control-v>. For example, highlight a column in specified rows (e.g., "45 <down arrow>", and change them (e.g., "r somekey").
Recording repetitious keystrokes was also a blessing. Start recording with "q somekey" and end with "q". Repeat with "n @ somekey", where 'n' is number of repetitions and 'somekey' is the buffer you initially chose. Other very helpful features:
1. Search and replace (example: :467,695 s/old/replace/ ) 2. Set markers: (example: "mc") and return to marked line (example 'c ) 3. Being able to specify repetition of any operation by putting a number in front (e.g. , "3yy" "45p" pastes 3 lines 45 times) 4. The ability to abandon the mouse completely. A mouse is great for a two minute task, but using the keyboard is much quicker. Vim has key assignments for everything.
|