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

Re: remap for :ts-hit-return

Expand Messages
  • Bram Moolenaar
    ... Then it also works in Insert and command-line editing mode. -- hundred-and-one symptoms of being an internet addict: 173. You keep tracking down the email
    Message 1 of 2 , Apr 28, 2000
    • 0 Attachment
      Johannes Zellner wrote:

      > I'm not able to remap <kEnter> to <CR> for the
      > :ts or related commands.
      >
      > I tried:
      > :noremap <kEnter> <cr>
      > :noremap <esc>OM <cr>
      > :set t_KA=<cr>
      >
      > and still, if I use
      > :ts fred
      > hitting <kEnter> does not work.
      >
      > Or, to summarize: I just want <kEnter> to act as <CR> *always*.

      Does it work in Normal mode? Then do this:

      :noremap <kEnter> <cr>
      :noremap! <kEnter> <cr>

      Then it also works in Insert and command-line editing mode.

      --
      hundred-and-one symptoms of being an internet addict:
      173. You keep tracking down the email addresses of all your friends
      (even childhood friends).

      /-/-- Bram Moolenaar --- Bram@... --- http://www.moolenaar.net --\-\
      \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/
    Your message has been successfully submitted and would be delivered to recipients shortly.