On Monday, July 16, 2012 5:12:18 PM UTC-7, Gary Johnson wrote: > On 2012-07-16, Graham Lawrence wrote: > > As a keystroke sequence > > hEa"<Esc>Bi"<Esc>j > > seems to enquote the current word anywhere in the line. > > In particular, it does so if the cursor is in column 1 at the start of > > the first word. > > > > But as a key mapping, e.g. > > :map <F5> hEa"<Esc>Bi"<Esc>j > > it fails if the cursor is in column 1 > > > > Why the difference? > > The answer is buried rather deep in the documentation, in the third > paragraph below > > :help map_return > > Note that when an error is encountered (that causes an error > message or beep) the rest of the mapping is not executed. This > is Vi-compatible. > > Regards, > Gary
I had disregarded that because there is neither beep nor message, nothing happens at all when the cursor is in column 1. I also thought that my .vimrc timeout setting of set notimeout ttimeout ttimeoutlen=200 accounted for the different behaviors, but issuing :set timeout timeoutlen=200 ttimeout ttimeoutlen=200 in the buffer before using the mapping makes no difference. -- 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
