I want the result to be highlighted when I search for it in a file.So,I opened a file with vi(version 7.2) and then used command :set hlsearch to enable highlighting.But even then I don't get my search results highlighted.Any idea what else to check ?
Edit
Now I tried same thing with vim and it works fine there.Is hlsearch only for vim ?
compatibleset if you callvi? (i.e. what is the result of:set compatible?). – jofel Mar 21 '13 at 09:43nocompatible– g4ur4v Mar 21 '13 at 12:56vim– Bananguin Mar 21 '13 at 21:48