I'm trying to remap <leader>t
to search for a specific string [ ]
to save time running /\[ \]
every time I search for it.
Things I've tried :nnoremap <leader>t /\[ \]<CR>
but it doesn't work. Any help would be appreciated.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this community
<leader>t
? What is the output of the Vim commandverbose map <leader>t
?:nnoremap <leader>t /\\[ \\]<CR>
might work