35 lines
502 B
VimL
35 lines
502 B
VimL
" Don't try to be vi compatible
|
|
set nocompatible
|
|
|
|
" Show matching brackets when text indicator is over them
|
|
set showmatch
|
|
|
|
" Turn on syntax highlighting
|
|
syntax on
|
|
|
|
" Highlight search results
|
|
set hlsearch
|
|
|
|
" Search while typing
|
|
set incsearch
|
|
|
|
" Show line numbers
|
|
set number
|
|
|
|
" Show file stats
|
|
set ruler
|
|
|
|
" W - Save file as superuser
|
|
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
|
|
|
" colemak-dh
|
|
noremap n h
|
|
noremap e k
|
|
noremap i j
|
|
noremap o l
|
|
|
|
noremap k n
|
|
noremap l i
|
|
noremap h o
|
|
noremap j e
|