Loading ...
Sorry, an error occurred while loading the content.

11157Re: mac-like arrow key navigation?

Expand Messages
  • Tony Mechelynck
    Dec 28, 2009
    • 0 Attachment
      On Nov 27, 11:31 pm, dc <dc.pik...@...> wrote:
      > hi -
      > enjoying macvim, and its great for block editing.
      > but does anyone have a mapping file for normal mac-like motion in
      > insert mode?
      > eg
      > opt-left = move a word to left
      > shift-opt-left = select a word to left
      > cmd-opt-left = go to beginning of line
      > opt-delete = delete a word
      > etc.
      > flipping to command-mode for each word motion is kinda tediious
      > i tried like:
      >  imap <M-Left> <Esc>bi
      > without luck.
      > btw these start/end of line emacs style keys are indispensable, it
      > would just be great if they worked on the vi command mode as well as
      > in the editor. hitting :e and editing a path, theres no easy way to
      > just edit the command
      >  imap <C-a> <Esc>0i
      >  imap <C-e> <Esc>$a

      Even if you have no <Home> or <Ctrl> key on your keyboard, I believe
      you can still use these keys in the {rhe} of mappings, like this:

      noremap! <M-Left>

      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 6 messages in this topic