Tuesday, January 22, 2008
If you have a word already typed in your file you are editing in vim, then you can use "autocomplete" feature of vim editor for the future typings of the same word.
Type first few of the words initial characters(minimum 1), and keep hitting "ctrl-p" till you get the word you are interested.
In the above snap, I typed f_ and then pressed "ctrl-p", f_Compare,f_Exists,f_round are matching "f_". As I am interested in f_Compare, I had to hit "ctrl-p" twice after this to get the same(f_Compare is highlighted), then I pressed enter. Done!!
© Jadu Saikia www.UNIXCL.com