-" Package manager
-execute pathogen#infect()
-
" Automaticly source some files after writing
autocmd! bufwritepost .vimrc source %
autocmd! bufwritepost .bashrc !source %
" Some general options
syntax enable
filetype indent plugin on
-color elflord
+color torte
set encoding=utf-8
set history=1000
set number
" List characters to mark trailing whitespace etc
set listchars=nbsp:¬,tab:▸\ ,eol:↩,extends:»,precedes:«,trail:•
-set nolist
+set list
" Move through long lines as they were short multiple lines
map j gj
nnoremap n nzzzv
nnoremap N Nzzzv
+" Fold settings
+set foldmethod=syntax
+set foldlevelstart=99
+
" Unbind arrow keys, who has them anyways on the keyboard...
for prefix in ['i', 'n', 'v']
for key in ['<UP>', '<DOWN>', '<LEFT>', '<RIGHT>']