Discussion:
[PATCH] Fix xterm-keys.vim example: t_kP/t_kN defined wrong
Daniel Hahler
2014-12-20 05:00:09 UTC
Permalink
From: Daniel Hahler <***@thequod.de>

It should not be necessary to define them, since PageUp/PageDown is
alread, and it should be the same.

But the way it was defined actually broke PageUp/PageDown, because '\e'
or a real escape should have been used.
---
examples/xterm-keys.vim | 3 ---
1 file changed, 3 deletions(-)

diff --git a/examples/xterm-keys.vim b/examples/xterm-keys.vim
index af44968..5672c26 100644
--- a/examples/xterm-keys.vim
+++ b/examples/xterm-keys.vim
@@ -42,9 +42,6 @@ function! s:SetXtermCapabilities()
execute "set <F10>=\e[21;*~"
execute "set <F11>=\e[23;*~"
execute "set <F12>=\e[24;*~"
-
- execute "set t_kP=^[[5;*~"
- execute "set t_kN=^[[6;*~"
endfunction

if exists('$TMUX')
--
2.1.2.10.g99474b6.dirty
Nicholas Marriott
2014-12-20 09:29:22 UTC
Permalink
It is not the same for TERM=screen, the escape sequence changes with
xterm-keys.
Post by Daniel Hahler
It should not be necessary to define them, since PageUp/PageDown is
alread, and it should be the same.
But the way it was defined actually broke PageUp/PageDown, because '\e'
or a real escape should have been used.
---
examples/xterm-keys.vim | 3 ---
1 file changed, 3 deletions(-)
diff --git a/examples/xterm-keys.vim b/examples/xterm-keys.vim
index af44968..5672c26 100644
--- a/examples/xterm-keys.vim
+++ b/examples/xterm-keys.vim
@@ -42,9 +42,6 @@ function! s:SetXtermCapabilities()
execute "set <F10>=\e[21;*~"
execute "set <F11>=\e[23;*~"
execute "set <F12>=\e[24;*~"
-
- execute "set t_kP=^[[5;*~"
- execute "set t_kN=^[[6;*~"
endfunction
if exists('$TMUX')
--
2.1.2.10.g99474b6.dirty
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Daniel Hahler
2014-12-21 20:03:51 UTC
Permalink
fair enough, applied, thanks
Thanks.
t_kP is the same as PageUp, so no need for it, from Daniel Hahler.
Just for reference: previously it was defined wrong (and overwrote the
correct/previous setting), because no real escape was used for
t_kP/t_kN ("Ctrl-V Esc" in Vim), but the literal characters "^[".


Regards,
Daniel.

Loading...