Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,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 whomever 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 Tue, May 6 2008 at 11:02AM PDT
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: mr_dbr on Tue, May 6 2008 at 3:45PM PDT
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 Wed, May 7 2008 at 7:21AM PDT
Emacs does this too using (by default) Ctrl-S and Ctrl-R

[ Reply to This | # ]