From 9ffe75c2118c17b0f19839c8db06d1ece66125a6146441c5ac1c9309a8392e29 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Tue, 27 Apr 2010 13:02:42 +0000 Subject: [PATCH] Accepting request 38927 from editors Copy from editors/vim based on submit request 38927 from user WernerFink OBS-URL: https://build.opensuse.org/request/show/38927 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vim?expand=0&rev=44 --- suse.vimrc | 36 ++++++++++++++++++++++++++++++++++++ vim.changes | 5 +++++ vim.spec | 4 ++-- 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/suse.vimrc b/suse.vimrc index 89e0796..8ad242d 100644 --- a/suse.vimrc +++ b/suse.vimrc @@ -44,10 +44,13 @@ set backspace=indent,eol,start " Try to get the correct main terminal type if &term =~ "xterm" let myterm = "xterm" +elseif &term =~ "screen" + let myterm = "screen" else let myterm = &term endif let myterm = substitute(myterm, "cons[0-9][0-9].*$", "linux", "") +let myterm = substitute(myterm, "cons[0-9][0-9].*$", "linux", "") let myterm = substitute(myterm, "vt1[0-9][0-9].*$", "vt100", "") let myterm = substitute(myterm, "vt2[0-9][0-9].*$", "vt220", "") let myterm = substitute(myterm, "\\([^-]*\\)[_-].*$", "\\1", "") @@ -191,6 +194,39 @@ if myterm == "linux" map [G i endif +if myterm == "screen" + map! [1;2D + map! [1;2C + map! [1;2A + map! [1;2B + map! [1;2H + map! [1;2F + map! [2;2~ + map! [3;2~ + map! [5;2~ + map! [6;2~ + map! [1;5D + map! [1;5C + map! [1;5A + map! [1;5B + map! [1;5H + map! [1;5F + map! [2;5~ + map! [3;5~ + map! [5;5~ + map! [6;5~ + map! [1;3D + map! [1;3C + map! [1;3A + map! [1;3B + map! [1;3H + map! [1;3F + map! [2;3~ + map! [3;3~ + map! [5;3~ + map! [6;3~ +endif + " This escape sequence is the well known ANSI sequence for " Remove Character Under The Cursor (RCUTC[tm]) map! [3~ diff --git a/vim.changes b/vim.changes index 6bae357..c70143b 100644 --- a/vim.changes +++ b/vim.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 27 12:06:07 CEST 2010 - werner@suse.de + +- Add screen control sequences to inputrc (bnc#598903) + ------------------------------------------------------------------- Sat Mar 27 11:48:28 CET 2010 - vuntz@opensuse.org diff --git a/vim.spec b/vim.spec index 027c96b..cb040ac 100644 --- a/vim.spec +++ b/vim.spec @@ -20,9 +20,9 @@ Name: vim Version: 7.2 -Release: 18 +Release: 19 # -License: Other uncritical OpenSource License ; http://vimdoc.sourceforge.net/htmldoc/uganda.html#license +License: Other uncritical OpenSource License ; Charityware. http://vimdoc.sourceforge.net/htmldoc/uganda.html#license Group: Productivity/Editors/Vi # BuildRoot: %{_tmppath}/%{name}-%{version}-build