I already read this =) And I prefer to map shortcuts per mode. But
It's too redundant to write 3 lines instead of 1 in ~/.vimrc.

On 10 нояб, 14:32, StarWing <[EMAIL PROTECTED]> wrote:
>     commands:                                 modes: ~
>                                           Insert  Command-line  Lang-Arg ~
> :map!  :noremap!  :unmap!  :mapclear!       yes        yes         -
> :imap  :inoremap  :iunmap  :imapclear       yes         -          -
> :cmap  :cnoremap  :cunmap  :cmapclear        -         yes         -
> :lmap  :lnoremap  :lunmap  :lmapclear       yes*       yes*       yes*
>
> The original Vi did not have separate mappings for
> Normal/Visual/Operator-pending mode and for Insert/Command-line mode.
> Therefore the ":map" and ":map!" commands enter and display mappings
> for
> several modes.  In Vim you can use the ":nmap", ":vmap", ":omap",
> ":cmap" and
> ":imap" commands to enter mappings for each mode separately.
>
> just a :map and a imap, but i prefer to use three maps.
>
> On 11月10日, 下午7时15分, Pento <[EMAIL PROTECTED]> wrote:
>
> > Hello, everybody!
>
> > Now  for map shortcut for example for :ls in 3 modes I need to add 3
> > lines to my ~/.vimrc:
>
> > " F5 - show buffers
> > nmap <F5> :ls<cr>:b
> > imap <F5> <esc>:ls<cr>:b
> > vmap <F5> <esc>:ls<cr>:b
>
> > How can I do this in one line?
>
> > "map! <F5> <esc>:ls<cr>:b" is not works in normal mode :(
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to