13
3
When using vimgrep with lv expr path/**
, I like to have a shortcut for navigating the results. So I mapped the F3 key like the following:
nnoremap <F3> :lnext<CR>
Now I would like to do something like the following
nnoremap <SHIFT-F3> :lprevious<CR>
But this does not have the desired effect. How do I map a F-key with SHIFT?
Update:
The solution is a bit difficult. In terminals you cannot just map Shift+F3. In fact an additional line like the following is necessary:
set <S-F3>=^[O1;2R
nnoremap <S-F3> :lprevious<CR>
But you cannot copy&paste this, see the link below in the right answer.
That link was very helpful, I did not even expected a problem like this. Although it is not the answer I wished to read, it is the right answer in my opinion. And following the advise with fast key codes, I could map the key combination as desired. – Trendfischer – 2012-11-22T08:21:25.487