.
OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=440
This commit is contained in:
parent
a46a9550df
commit
63b27f8dfc
61
suse.vimrc
61
suse.vimrc
@ -2,7 +2,7 @@
|
|||||||
" author: Klaus Franken <kfr@suse.de>
|
" author: Klaus Franken <kfr@suse.de>
|
||||||
" author: Werner Fink <werner@suse.de>
|
" author: Werner Fink <werner@suse.de>
|
||||||
" author: Florian La Roche <florian@suse.de>
|
" author: Florian La Roche <florian@suse.de>
|
||||||
" version: 06/11/2011
|
" version: 2017/04/28
|
||||||
" commented lines start with `"'
|
" commented lines start with `"'
|
||||||
|
|
||||||
function! SKEL_spec()
|
function! SKEL_spec()
|
||||||
@ -110,6 +110,24 @@ if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
|
|||||||
map! <ESC>Os 3
|
map! <ESC>Os 3
|
||||||
map! <ESC>Op 0
|
map! <ESC>Op 0
|
||||||
map! <ESC>On .
|
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
|
" keys in normal mode
|
||||||
map <ESC>Oo :
|
map <ESC>Oo :
|
||||||
map <ESC>Oj *
|
map <ESC>Oj *
|
||||||
@ -128,6 +146,24 @@ if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
|
|||||||
map <ESC>Os 3
|
map <ESC>Os 3
|
||||||
map <ESC>Op 0
|
map <ESC>Op 0
|
||||||
map <ESC>On .
|
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
|
endif
|
||||||
|
|
||||||
" xterm but without activated keyboard transmit mode
|
" xterm but without activated keyboard transmit mode
|
||||||
@ -136,6 +172,8 @@ if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
|
|||||||
" keys in insert/command mode.
|
" keys in insert/command mode.
|
||||||
map! <Esc>[H <Home>
|
map! <Esc>[H <Home>
|
||||||
map! <Esc>[F <End>
|
map! <Esc>[F <End>
|
||||||
|
map! <Char-0x8F>H <Home>
|
||||||
|
map! <Char-0x8F>F <End>
|
||||||
" Home/End: older xterms do not fit termcap/terminfo.
|
" Home/End: older xterms do not fit termcap/terminfo.
|
||||||
map! <Esc>[1~ <Home>
|
map! <Esc>[1~ <Home>
|
||||||
map! <Esc>[4~ <End>
|
map! <Esc>[4~ <End>
|
||||||
@ -144,11 +182,22 @@ if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
|
|||||||
map! <Esc>[B <Down>
|
map! <Esc>[B <Down>
|
||||||
map! <Esc>[C <Right>
|
map! <Esc>[C <Right>
|
||||||
map! <Esc>[D <Left>
|
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)
|
" KP_5 (NumLock off)
|
||||||
map! <Esc>[E <Insert>
|
map! <Esc>[E <Insert>
|
||||||
" keys in normal mode
|
" keys in normal mode
|
||||||
map <ESC>[H 0
|
map <ESC>[H 0
|
||||||
map <ESC>[F $
|
map <ESC>[F $
|
||||||
|
map <Char-0x8F>H 0
|
||||||
|
map <Char-0x8F>F $
|
||||||
" Home/End: older xterms do not fit termcap/terminfo.
|
" Home/End: older xterms do not fit termcap/terminfo.
|
||||||
map <ESC>[1~ 0
|
map <ESC>[1~ 0
|
||||||
map <ESC>[4~ $
|
map <ESC>[4~ $
|
||||||
@ -157,8 +206,18 @@ if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
|
|||||||
map <ESC>[B j
|
map <ESC>[B j
|
||||||
map <ESC>[C l
|
map <ESC>[C l
|
||||||
map <ESC>[D h
|
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)
|
" KP_5 (NumLock off)
|
||||||
map <ESC>[E i
|
map <ESC>[E i
|
||||||
|
map <Char-0x8F>E i
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" xterm/kvt but with activated keyboard transmit mode.
|
" xterm/kvt but with activated keyboard transmit mode.
|
||||||
|
@ -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
|
Thu Apr 27 12:59:53 UTC 2017 - idonmez@suse.com
|
||||||
|
|
||||||
|
2
vim.spec
2
vim.spec
@ -106,8 +106,8 @@ file name completion, block operations, and editing of binary data.
|
|||||||
|
|
||||||
%package data
|
%package data
|
||||||
Summary: Vi IMproved
|
Summary: Vi IMproved
|
||||||
# Used to be in vim-plugins package
|
|
||||||
Group: Productivity/Editors/Vi
|
Group: Productivity/Editors/Vi
|
||||||
|
# Used to be in vim-plugins package
|
||||||
Obsoletes: vim-plugin-matchit <= 1.13.2
|
Obsoletes: vim-plugin-matchit <= 1.13.2
|
||||||
Provides: vim-plugin-matchit = 1.13.2
|
Provides: vim-plugin-matchit = 1.13.2
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Loading…
Reference in New Issue
Block a user