Dr. Werner Fink 2017-04-28 11:00:17 +00:00 committed by Git OBS Bridge
parent a46a9550df
commit 63b27f8dfc
3 changed files with 66 additions and 2 deletions

View File

@ -2,7 +2,7 @@
" author: Klaus Franken <kfr@suse.de>
" author: Werner Fink <werner@suse.de>
" author: Florian La Roche <florian@suse.de>
" version: 06/11/2011
" version: 2017/04/28
" commented lines start with `"'
function! SKEL_spec()
@ -110,6 +110,24 @@ if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
map! <ESC>Os 3
map! <ESC>Op 0
map! <ESC>On .
" 8bit control characters
map! <Char-0x8F>o :
map! <Char-0x8F>j *
map! <Char-0x8F>m -
map! <Char-0x8F>k +
map! <Char-0x8F>l ,
map! <Char-0x8F>M
map! <Char-0x8F>w 7
map! <Char-0x8F>x 8
map! <Char-0x8F>y 9
map! <Char-0x8F>t 4
map! <Char-0x8F>u 5
map! <Char-0x8F>v 6
map! <Char-0x8F>q 1
map! <Char-0x8F>r 2
map! <Char-0x8F>s 3
map! <Char-0x8F>p 0
map! <Char-0x8F>n .
" keys in normal mode
map <ESC>Oo :
map <ESC>Oj *
@ -128,6 +146,24 @@ if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
map <ESC>Os 3
map <ESC>Op 0
map <ESC>On .
" 8bit control characters
map <Char-0x8F>o :
map <Char-0x8F>j *
map <Char-0x8F>m -
map <Char-0x8F>k +
map <Char-0x8F>l ,
map <Char-0x8F>M
map <Char-0x8F>w 7
map <Char-0x8F>x 8
map <Char-0x8F>y 9
map <Char-0x8F>t 4
map <Char-0x8F>u 5
map <Char-0x8F>v 6
map <Char-0x8F>q 1
map <Char-0x8F>r 2
map <Char-0x8F>s 3
map <Char-0x8F>p 0
map <Char-0x8F>n .
endif
" xterm but without activated keyboard transmit mode
@ -136,6 +172,8 @@ if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
" keys in insert/command mode.
map! <Esc>[H <Home>
map! <Esc>[F <End>
map! <Char-0x8F>H <Home>
map! <Char-0x8F>F <End>
" Home/End: older xterms do not fit termcap/terminfo.
map! <Esc>[1~ <Home>
map! <Esc>[4~ <End>
@ -144,11 +182,22 @@ if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
map! <Esc>[B <Down>
map! <Esc>[C <Right>
map! <Esc>[D <Left>
" 8bit control characters
map! <Char-0x8F>A <Up>
map! <Char-0x8F>B <Down>
map! <Char-0x8F>C <Right>
map! <Char-0x8F>D <Left>
map! <Char-0x9B>5~ <PageUp>
map! <Char-0x9B>6~ <PageDown>
map! <Char-0x9B>2~ <Insert>
map! <Char-0x9B>3~ <Delete>
" KP_5 (NumLock off)
map! <Esc>[E <Insert>
" keys in normal mode
map <ESC>[H 0
map <ESC>[F $
map <Char-0x8F>H 0
map <Char-0x8F>F $
" Home/End: older xterms do not fit termcap/terminfo.
map <ESC>[1~ 0
map <ESC>[4~ $
@ -157,8 +206,18 @@ if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
map <ESC>[B j
map <ESC>[C l
map <ESC>[D h
" 8bit control characters
map <Char-0x8F>A k
map <Char-0x8F>B j
map <Char-0x8F>C l
map <Char-0x8F>D h
map <Char-0x9B>5~ <PageUp>
map <Char-0x9B>6~ <PageDown>
map <Char-0x9B>2~ <Insert>
map <Char-0x9B>3~ <Delete>
" KP_5 (NumLock off)
map <ESC>[E i
map <Char-0x8F>E i
endif
" xterm/kvt but with activated keyboard transmit mode.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Apr 28 10:58:31 UTC 2017 - werner@suse.de
- Extend vimrc with mappings for 8-bit controls key escape sequences
-------------------------------------------------------------------
Thu Apr 27 12:59:53 UTC 2017 - idonmez@suse.com

View File

@ -106,8 +106,8 @@ file name completion, block operations, and editing of binary data.
%package data
Summary: Vi IMproved
# Used to be in vim-plugins package
Group: Productivity/Editors/Vi
# Used to be in vim-plugins package
Obsoletes: vim-plugin-matchit <= 1.13.2
Provides: vim-plugin-matchit = 1.13.2
BuildArch: noarch