Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use Safari to find things more easily in text files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use Safari to find things more easily in text files
Authored by: Mark Wilden on May 06, '08 11:02:55AM
Vim does much the same thing. The only difference is that it doesn't gray out the rest of the text, but it can highlight search matches. To use this feature, enter :set hlsearch, then enter /your-search-phrase. To move to the next hit, type n. Also useful is :set incsearch to jump to the first hit as you type. ///ark

[ Reply to This | # ]
Use Safari to find things more easily in text files
Authored by: Anonymous on May 06, '08 03:45:59PM

You can assign a keyboard shortcut to toggle the hlsearch options:
map <F6> :se number!<CR>
map <F7> :set hlsearch!<CR>

in your ~/.vimrc file - then F6 will toggle line-numbers (Which is useful since copy/pasting breaks with line numbers on), and F7 to toggle highlight search



[ Reply to This | # ]
Obligatory
Authored by: jaaronp on May 07, '08 07:21:55AM

Emacs does this too using (by default) Ctrl-S and Ctrl-R



[ Reply to This | # ]