Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Of course web surfing helps at work. First search result for "vim highlight search" on Google is:

http://vim.wikia.com/wiki/Highlight_all_search_pattern_match...

Just to make sure we're highlighting everything we search for set:

:set hlsearch

Next, click on the link in the above page that says:

"Searching"

From the resulting page:

"In normal mode you can search forwards by pressing / then typing your search pattern. Press Esc to cancel or press Enter to perform the search."

So press /, e and finally enter. Done. Crap, I'm missing the upper case Es? Search for "vim search case insensitive", get:

http://joysofprogramming.com/case-sensitive-search-vim/

Oh, I need to do:

:set noic

Try it again, get all the letters highlighted, 3-5 minutes later I'm done.

Why was websurfing more productive in this case? Obviously because I can spend the remaining 15 minutes posting the trivial solution to HN. ;)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: