Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Vim, Vi and Vim tips< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: July 31 2005,15:00 QUOTE

There is a huge repository of Vim tips and tricks at vim.org...so many that you need some serious free time to read through them.
Here are a few of my favorites so far:

:r <filename> -- Insert a file below the cursor
:r !<command> -- Insert the output of a command below the cursor
% -- Match the bracket under (or nearest one after) the cursor
* -- find all instances of the word under the cursor
# -- same as * in reverse
shift+click -- in gvim, same as * (right-click for reverse)
guu/gUU -- lowercase/uppercase line
gf -- open filename listed under cursor
ga -- display ascii, hex, and octal code of the character under cursor
ctrl+a/ctrl+x -- increment/decrement number under cursor
ctrl+n (while typing) -- word completion, cycles through words in current or included file(s)
:set verbose <option>? -- tells you where <option> was last set


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
benson Offline





Group: Members
Posts: 8
Joined: Mar. 2005
Posted: Aug. 07 2005,23:58 QUOTE

how can i use color codes in vim? i mean putting an ESC character followed by this sign; [ then color code number.
Back to top
Profile PM YIM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Aug. 08 2005,13:50 QUOTE

To embed an escape character, use <CTRL>v and then hit the escape key.  Then use the code you want.

<CRTL>v <ESCAPE>[1m   for bold
<CRTL>v <ESCAPE>[0m   for normal
Back to top
Profile PM 
2 replies since July 31 2005,15:00 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Vim

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code