Wu Bingzheng wrote:
> I tried this:
> nmap <Space> <C-U><C-U>
> it works. However if I write like:
> nmap <Space> <C-D><C-D>
> nmap <S-Space> <C-U><C-U>
> vim will pagedown, both when I press Space and Shift+Space.
>
> It's really strange!
>
> Thanks,
> Wu
>
What happens if you type Ctrl-v (Ctrl-q if you're using mswin.vim) and
then Shift-Space in command-line mode (pressing : ) or insert mode?
On my Vim, it prints :
<S-Space>
This way I know I can use <S-Space> in mappings. It's possible that,
due to some setting on your Vim or otherwise on your PC, Vim is not
receiving the Shift modifier. If you DON'T get the output as I did,
try launching Vim using
vim -u NONE
and then try the command-line test as above again. If you STILL get
nothing, there might be something up with your terminal or regional
settings.
There could possibly be an issue with your Vim compile as well, although
I don't know what that could be.
Hope that helps
--
[ Albie Janse van Rensburg ~ http://morph.telspace.co.za ]
In God we trust; all else we walk through.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---