Friday, June 5, 2009

Saturday, March 21, 2009

VIM notes Chapters :4,5,6

Location

CTRL G - Cursor location

gg - Top

G - Bottom

Search (I didnt master search completely, but still)

/searchtermhere

n - for next occurrence of searchterm

% - matching paranthesis

chap 5 (didnt read other parts - using commands,etc)

v - visual selection

Chap 6

o - open a new line below the cursor

O - above the cursor.

a - append char

A - append char at the end of the line.

So A = $a ($ for to go to end of line,  a to append :) )

R - Replace mode (have to hit escape to exit out of this mode )

r - replace char only

Most useful part Copy

y for yank

Tuesday, February 24, 2009

Port troubleshooting

While tryin to install nmap, got this error : attempting to fetch from http://foo FAILED.

Soln : do a selfupate

port selfupdate

One more option, clean previous installations/partial installations using this command

port clean --all nmap

Tuesday, February 17, 2009

Chapter 3. VIM notes

r replace : r followed by letter to replace the letter with the new letter. Helli world to Hello world by placing the cursor on i and typing re.

p  put : puts the character or the line that was placed in buffer earlier. It can be  a line or letter.

c change : e,w,$

Sunday, February 15, 2009

vimtutor Chapter 2 completed

successfully... :)

Summary

Operators:

d delete

Operands

w word including spaces

e   word excluding spaces

0  beginning of the line

$  end of the line

dd - delete line

u - undo

CTRL + R - redo

U - undo on the line

Movie : Vantage Point

[caption id="attachment_11" align="alignnone" width="450" caption="Mind map"]Mind map[/caption]

 

http://mind42.com/pub/mindmap?mid=c09f0083-2769-4f29-923a-21cadfd2928b

Friday, February 13, 2009

Started Vi finally.


Vimtutor is a great way to learn Vi, especially for beginners who want hands-on practice.
One of the most memorable tips is that the j key moves the cursor down, resembling a down arrow.
Navigating with h, j, k, l quickly becomes second nature, making movement in Vi efficient. Commands like
A for appending text,
x for deleting a character,
dw for deleting a word help streamline editing.
Mastering these basics sets a strong foundation for efficient text manipulation in Vi.