On Fri, May 11, 2012 at 2:58 PM, Christian Brabandt <cblists@256bit.org> wrote:
>> However I am having trouble with the Insert version. I am trying this code:
>> :inoremap <F2> <Esc>:set nu! paste!<cr>
>>
>> However, when I press F2 in Insert mode I get the text <F2> inserted
>> into the document!
>
> Well, by definition in paste mode, mappings aren't executed (:h 'paste')
>
That makes perfect sense! Thanks.
>> Also, I will have trouble with reentering Insert mode, because if I
>> use "i" or "a" then I will have troubles at the end or beginning of
>> text lines. Is there a workaround for that?
>
> :h i_CTRL-\_CTRL-O
>
Thanks, that is exactly what I need.
Have a terrific weekend. Thank you for the advice!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
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
Friday, May 11, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment