Hi,

ludo wrote:
> 
> I'd like to map ":cprev" to <Shift-F4>
> I use (in normal mode)
>     :map <S-F4> :cprev <CR>
> 
> But when I press the <Shift-F4> key, Vim displays the message 'Already 
> an oldest change'
> Maybe, <Shift-F4> is a "reserved" combinaison key for Vim ?
> 
> if I try
>     :map <F4> :cprev <CR>
> that works
> 
> what is wrong ?

you probably have a buffer-local mapping like

  :map <buffer> <S-F4> u

defined somewhere. You can check this with

  :map <S-F4>

This should show something like

  <S-F4>        @u
  <S-F4>         :cprev <CR>

The mapping with the ampersand is the buffer-local one and this takes
precedence over the second one.

If you want to know where the first mapping was defined execute

  :verbose map <S-F4>

and you get something like

   <S-F4>       @u
        Last set from c:\map_u.vim
   <S-F4>        :cprev<CR>

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to