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

63148Re: Caps Lock

Expand Messages
  • Dominic Evans
    Nov 1, 2005
      On 01/11/05, Keith W. Roberts <keithr@...> wrote:
      > ----Original Message----
      > From: Dominic Evans [mailto:oldmanuk@...]
      > Sent: Tuesday, November 01, 2005 2:43 AM
      > To: r.cussons@...
      > Cc: vim@...
      > Subject: Re: Caps Lock
      >
      > > I don't think there is a way to do that. However you could avoid CAPS
      > > LOCK all together...
      > >
      > > I don't know if there is already a mark for where insert mode was
      > > started (instead of the manual mp here).
      >
      > '[,'] is the range for the most recent insertion (or yank, whichever is
      > later). These maps will let you upcase the prior (or current) insertion:
      >
      > nnoremap <F12> `[gU`]
      > inoremap <F12> <ESC>`[gU`]
      >

      Ah `[ and `].

      However, the latter one seems to be non-inclusive and miss off the
      last typed character. The following worked:

      `[gU'.

      Cheers,
      Dom
    • Show all 7 messages in this topic