haiku/data/etc/vim/vimrc

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