539903c55b
less. * Added /etc/vim/vimrc. Besides fixing key mappings it also disables compatibility mode and adjusts some settings to make using vi a more pleasant experience. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26028 a95241bf-73f2-0310-859d-f6bbb57e9c96
30 lines
576 B
VimL
30 lines
576 B
VimL
" highlight matching brackets
|
||
set showmatch
|
||
|
||
" status line: show line/column and current mode
|
||
set ruler
|
||
set showmode
|
||
|
||
" required to be able to use keypad keys and map missed escape sequences
|
||
set esckeys
|
||
|
||
" be user-friendly instead of compatible
|
||
set nocompatible
|
||
|
||
" backspace shall remove anything in insert mode
|
||
set backspace=indent,eol,start
|
||
|
||
" keys in insert mode
|
||
map! <Esc>OA <Up>
|
||
map! <Esc>OB <Down>
|
||
map! <Esc>OC <Right>
|
||
map! <Esc>OD <Left>
|
||
map! <Esc>OH <Home>
|
||
map! <Esc>OF <End>
|
||
map! <Esc>[5~ <PageUp>
|
||
map! <Esc>[6~ <PageDown>
|
||
map! <BS>
|
||
|
||
" keys in command mode
|
||
map X
|