haiku/data/etc/vim/vimrc
Ingo Weinhold 539903c55b * Added /etc/sysless with settings to make backspace work correctly in
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
2008-06-19 14:32:25 +00:00

30 lines
576 B
VimL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

" 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