> Someone just posted a question to superuser
What is 'superuser'?
> in which they mentioned discovering that Shift-Enter is the same as
> Ctrl-F.
So why bother?
> I experimented a little and discovered that that's true, but only in
> gvim, not vim, and it's not documented anywhere that I could find,
> searching for "shift.enter", "s.enter", or "s.cr".
> It's not a mapping, as ":map <S-CR>" doesn't show anything and it
> works when gvim is started as "gvim -N -u NONE".
>
> My keyboard, using either GNOME Terminal or xterm with vim, doesn't
> seem to generate anything special for Shift-Enter, just ^M. I guess
> that's why it doesn't work with vim.
>
> I experimented on a Linux system, but I see that it behaves the same
> in gvim on Windows.
>
> Is there some reason that this isn't documented, or am I just not able
> to find it?
Interestingly, (@ChrisJones at least)..
| $ xmodmap -e "keysym Return = Return Next"
... enables Shift-Enter in Vim '^gvim'.
Go figure...
CJ
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment