Does your terminal (emulator) give different key sequences for space
and shift space? AFAICS xterm can not distinguish between tab and
shift tab.
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩152 白居易 賦得古原草送別
離離原上草 一歲一枯榮 野火燒不盡 春風吹又生
遠芳侵古道 晴翠接荒城 又送王孫去 萋萋滿別情
Are you using vim or gvim?
In gvim running on a Red Hat Linux system, I can enter insert mode,
type Ctrl-K, then hold the Shift key while hitting the space bar and
see this
<S-Space>
I can then execute this mapping,
:namp <S-Space> <C-B>
and it works just fine.
In vim running in an xterm, however, the Ctrl-K Shift-Space sequence
shows nothing. Further, while in insert mode, typing Ctrl-V
followed by a space with the Shift key held down just inserts a
space. This demonstrates that xterm doesn't produce a special
character sequence for the Shift-Space combination, so there's no
way to use that key combination for a map or anything else.
HTH,
Gary
>
> On Nov 11, 9:36 pm, bill lam <cbill....@gmail.com> wrote:
> > Does your terminal (emulator) give different key sequences for space
> > and shift space? AFAICS xterm can not distinguish between tab and
> > shift tab.
>
> It's been in xterm a while:
>
> http://invisible-island.net/xterm/xterm.log.html#xterm_47
I use ubuntu and xterm -version gave XTerm(235). But shift tab does
not work in vim and mutt, Does it require other setting to make it
work?
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩269 李白 下江陵
朝辭白帝彩雲間 千里江陵一日還 兩岸猿聲啼不住 輕舟已過萬重山
I can confirmed that bash and wyrd running on xterm can distinguish
between tab and shift tab.
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩191 杜甫 詠懷古跡五首之二
搖落深知宋玉悲 風流儒雅亦吾師 悵望千秋一灑淚 蕭條異代不同時
江山故宅空文藻 雲雨荒臺豈夢思 最是楚宮俱泯滅 舟人指點到今疑
>
> On Nov 16, 1:02 am, bill lam <cbill....@gmail.com> wrote:
> > On Fri, 14 Nov 2008, dickey wrote:
> > > it shouldn't require other settings (since it's built-in)
> > > But a few of the things that can go wrong:
> ...
> > I can confirmed that bash and wyrd running on xterm can distinguish
> > between tab and shift tab.
>
> Then the problem with vim and mutt is (at least) not in xterm's
> resource-settings.
> I'd check the terminal description first, looking at the output from
> infocmp.
> It should have a string for kcbt, e.g., kcbt=\E[Z,
Thank you for help. It turned out I export $TERMCAP in .bashrc for
vi (old vi) that did not include in backtab entry. Now all work well.
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩224 王維 鹿柴
空山不見人 但聞人語響 返景入深林 復照青苔上