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

Fwd: Where to submit a patch/modification for consideration?

Expand Messages
  • Eric Arnold
    I seem to be having trouble with the subscription confirmation to vim-dev, so I ll post this here for now. ... From: Eric Arnold
    Message 1 of 1 , May 5 5:42 AM
    • 0 Attachment
      I seem to be having trouble with the subscription confirmation to
      vim-dev, so I'll post this here for now.

      ---------- Forwarded message ----------
      From: Eric Arnold <eric.p.arnold@...>
      Date: May 5, 2006 6:35 AM
      Subject: Where to submit a patch/modification for consideration?
      To: vim-dev@...

      I think vim-dev@... is probably a place to start...

      I've been hacking the statusline for a long time to do various things
      a keystroke at a time. I've finally got a compiling env, so I decided
      to take a stab a creating a key-event.

      The following test script should give an idea of what it's about:



      let g:counter = 0

      function! Tst()
      let g:counter += 1
      echomsg '(' . nr2char(v:getchar) . ')getchar #' . g:counter
      \ . ', ' . v:getchartype
      " Test discard:
      if nr2char(v:getchar) == '~'
      let v:getchar = char2nr("")
      endif
      " Test replace:
      if nr2char(v:getchar) == '!'
      let v:getchar = char2nr("#")
      endif
      endfunction


      aug Tst
      au!
      au GetChar <buffer> call Tst()
      aug END


      " Note: mixing 't' and 'm', etc. keys causes KeyStuffed and KeyTyped to get
      " confused.
      call feedkeys(':echo "macroing"', 't' )
      call feedkeys(':echo "feeding"', 't' )
      normal :echo "normaling"


      "let c = 0
      "while c != 27
      " let c = getchar()
      " echomsg 'got('.c.')=('.strtrans(nr2char(c)).')'
      "endwhile
    Your message has been successfully submitted and would be delivered to recipients shortly.