简体   繁体   中英

using map to create shortcut in gvim doesn't work

I've added the following line to my .gvimrc file:

map <F3> /[1-9] 

I want F3 key to search for any sequence in the form of (1 Error, 3 Errors....).

For some reason it doesn't work.

you need a Enter at the end of your mapping:

nnoremap <F3> /[1-9] <cr>

This will search for a single digit (1-9) and with a space followed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM