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
This commit is contained in:
parent
43f426131b
commit
9ffe75c211
36
suse.vimrc
36
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 <ESC>[G i
|
||||
endif
|
||||
|
||||
if myterm == "screen"
|
||||
map! <ESC>[1;2D <S-Left>
|
||||
map! <ESC>[1;2C <S-Right>
|
||||
map! <ESC>[1;2A <S-Up>
|
||||
map! <ESC>[1;2B <S-Down>
|
||||
map! <ESC>[1;2H <Home>
|
||||
map! <ESC>[1;2F <End>
|
||||
map! <ESC>[2;2~ <Insert>
|
||||
map! <ESC>[3;2~ <Delete>
|
||||
map! <ESC>[5;2~ <PageUp>
|
||||
map! <ESC>[6;2~ <PageDown>
|
||||
map! <ESC>[1;5D <C-Left>
|
||||
map! <ESC>[1;5C <C-Right>
|
||||
map! <ESC>[1;5A <C-Up>
|
||||
map! <ESC>[1;5B <C-Down>
|
||||
map! <ESC>[1;5H <Home>
|
||||
map! <ESC>[1;5F <End>
|
||||
map! <ESC>[2;5~ <Insert>
|
||||
map! <ESC>[3;5~ <Delete>
|
||||
map! <ESC>[5;5~ <PageUp>
|
||||
map! <ESC>[6;5~ <PageDown>
|
||||
map! <ESC>[1;3D <A-Left>
|
||||
map! <ESC>[1;3C <A-Right>
|
||||
map! <ESC>[1;3A <A-Up>
|
||||
map! <ESC>[1;3B <A-Down>
|
||||
map! <ESC>[1;3H <Home>
|
||||
map! <ESC>[1;3F <End>
|
||||
map! <ESC>[2;3~ <Insert>
|
||||
map! <ESC>[3;3~ <Delete>
|
||||
map! <ESC>[5;3~ <PageUp>
|
||||
map! <ESC>[6;3~ <PageDown>
|
||||
endif
|
||||
|
||||
" This escape sequence is the well known ANSI sequence for
|
||||
" Remove Character Under The Cursor (RCUTC[tm])
|
||||
map! <Esc>[3~ <Delete>
|
||||
|
@ -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
|
||||
|
||||
|
4
vim.spec
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user