Use vim to search by hex code
Search (e.g. using /) for \%x1b. You can also type control characters, including escape, into the command line by preceding them with Ctrl–V. So type /, Ctrl-V, Esc, Enter.
Search (e.g. using /) for \%x1b. You can also type control characters, including escape, into the command line by preceding them with Ctrl–V. So type /, Ctrl-V, Esc, Enter.
Prefixing any search qualifier with a – excludes all results that are matched by that qualifier. For example, you might be interested in finding all “cats” repositories with more than 10 stars that are not written in JavaScript: cats stars:>10 -language:javascript You might also want to find all issues mentioning @defunkt that are not in … Read more
If you have the cursor over the variable in question, you can press * and it will search for the next occurrence or # will search for the previous one. This is equivalent to typing: /\<n\> (\< matches on the start of a word and \> matches on the end of word). The only difference … Read more
Turn off the ‘wrapscan’ option. set nowrapscan
Tim Berners-Lee (the architect of the WWW) wrote a great article about this subject about 10 years ago. Your example is a bad URL — but not just because it has both an id and a “slug” (the abbreviated, hyphenated form of the page title). Putting the page title into your URL is problematic in … Read more
@Alex nails it. Another option I use quite often is C-s C-w to search for the word after the current mark. Hitting C-w repeatedly increases the search with additional words (e.g., C-s C-w C-w C-w searches for the 3 words after the current mark). Similarly, C-s M-s C-e searches for the rest of the line … Read more
I’ve decided to use ack and perl to solve this problem outside of Vim so I could use the more powerful Perl regular expressions instead of the GNU subset. You could map this to a key stroke in your .vimrc. ack -l ‘pattern’ | xargs perl -pi -E ‘s/pattern/replacement/g’ Explanation ack ack is an awesome … Read more
Or :bufdo vimgrepadd threading % | copen The quickfix window may not look good for you but it’s a hell of a lot more functional than ST2’s “results panel” if only because you can keep it open and visible while jumping to locations and interact with it if it’s not there.
You can focus on the Project Tree and simply type the file name which you want to looking for. Press Up/Down to select if more than one file match your search. Or use keyboard shortcut to open the search file form: Windows/Linux: Alt+Shift+O Mac OS: Control+Shift+O
I would map: nnoremap * *“ Works exactly like you want, except that it adds a jump in the jump list. To prevent that you need: nnoremap * :keepjumps normal! mi*`i<CR>