[{"data":1,"prerenderedAt":113},["ShallowReactive",2],{"post:highlight-search-matches-in-vim":3},{"id":4,"title":5,"body":6,"date":100,"description":101,"draft":102,"extension":103,"meta":104,"navigation":105,"path":106,"seo":107,"stem":108,"tags":109,"__hash__":112},"posts\u002Fposts\u002Fhighlight-search-matches-in-vim.md","TIL: Highlight Search Pattern Matches in Vim",{"type":7,"value":8,"toc":96},"minimark",[9,22,37,40,70,87],[10,11,12,13,17,18,21],"p",{},"So, my machine at work is less Vim-ified than my lean, mean, Ubuntu machine at home. When I tried searching for a variable (like ",[14,15,16],"code",{},"\u002F$applications","), I couldn't immediately see the matched strings, meaning I have to skip to each match with ",[14,19,20],{},"n",".",[10,23,24,25,28,29,36],{},"I knew there was a way to do this, but couldn't remember how. A quick Google search brought me to ",[14,26,27],{},"vim.wikia.com","'s super-useful ",[30,31,35],"a",{"href":32,"rel":33},"http:\u002F\u002Fvim.wikia.com\u002Fwiki\u002FHighlight_all_search_pattern_matches",[34],"nofollow","\"Highlight all search pattern matches\""," article.",[10,38,39],{},"In summary:",[41,42,43,54,61,67],"ol",{},[44,45,46,47,50,51],"li",{},"Open your ",[14,48,49],{},".vimrc"," located in your home folder. ",[14,52,53],{},"vim ~\u002F.vimrc",[44,55,56,57,60],{},"Add ",[14,58,59],{},"set h1search"," anywhere in the file.",[44,62,63,64],{},"Save and close the file. ",[14,65,66],{},":wq",[44,68,69],{},"Open vim, and wallah! It works!",[10,71,72],{},[73,74,75,76,79,80,83,84,21],"strong",{},"Pro tip: If you like pausing Vim with ",[14,77,78],{},"^Z"," so you can Vim while you Vim, then you'll have to reload your configuration to see the change. Run ",[14,81,82],{},":so ~\u002F.vimrc"," in Vim to reload config. This is roughly equivalent to Bash's ",[14,85,86],{},"source ~\u002F.bashrc",[10,88,89,90,95],{},"See it in my ",[30,91,94],{"href":92,"rel":93},"https:\u002F\u002Fgithub.com\u002Fmborn319\u002Fdotfiles\u002F",[34],"dotfiles"," repo.",{"title":97,"searchDepth":98,"depth":98,"links":99},"",2,[],"2018-04-20T17:30:49-04:00","So, my machine at work is less Vim-ified than my lean, mean, Ubuntu machine at home. When I tried searching for a variable (like \u002F$applications), I couldn't immediately see the matched strings, meaning I have to skip to each match with n.",false,"md",{},true,"\u002Fposts\u002Fhighlight-search-matches-in-vim",{"title":5,"description":101},"posts\u002Fhighlight-search-matches-in-vim",[110,111],"vim","til","jB26OSCa5XkR1E6fpsrV9pffLYnDxcU7ANu3Z9oQMyQ",1790471528288]