Posts

Showing posts from December, 2005

Vim options

One week back while Pramode Sir was teaching us Java he told us to use abbreviations in Vim for those things like “System.out.println” and so……. As I was unaware of those beautiful features provided by vim I started to explore those and found many cool options of vim. Some of them are listed below. Some word searching methods:- Using star ‘*’ key:- In the normal mode using the * key would search for the word under which the cursor currently resides. This is similar to searching the word using ‘\’ in escape mode… I hope you all know how that works. Using hash ‘#’ key:- The * key searches the word from the current cursor position to the end of the text while # key searches from current position to the top of the text. :set incsearch This option helps you to move the cursor to the matched string. Pressing Enter key completes the search and Escape to cancel the search. :set hlsearch When this option is set then ...