On Thursday, March 22, 2012 6:34:34 PM UTC+9, Constantin Stefanov wrote: > Hello. > > Is there way to map pressing <Esc> twice to something and not affecting > keys giving Esc sequences? > > I tried > nnoremap <silent><Esc><Esc> :nohl<CR> > > but if I press for example up arrow after first Esc, it gives strange > reuslts (its frist Esc is consumed, and other chars interpreted as if > there were no Esc before them). > > Set timeoutlen and ttimeoutelen helps, but not completely. > > Is ther a way to trigger map only if it is two <Esc>s and no keys after > them to avoid such effects? > > -- > Constantin Stefanov
add space between <silent> and <esc> nnoremap <silent> <Esc><Esc> :nohl<CR> -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
