63148Re: Caps Lock
- Nov 1, 2005On 01/11/05, Keith W. Roberts <keithr@...> wrote:
> ----Original Message----Ah `[ and `].
> 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`]
However, the latter one seems to be non-inclusive and miss off the
last typed character. The following worked:
- << Previous post in topic Next post in topic >>