"" vim:ft=vim set nocompatible set number set title set ttyfast set ruler " Tabbing (mainly) set tabstop=5 set shiftwidth=5 set shiftround set autoindent set smartindent autocmd FileType c,cpp set cindent comments=sr:/*,mb:*,ex:*/,:// inoremap # X# set list set listchars=tab:│\ ,trail:·,extends:…,precedes:…,nbsp:␠ set formatoptions=coqrt set t_Co=256 if version >= 703 set colorcolumn=80 endif " Folding set foldmethod=marker " Swapfiles set backupdir=~/.vim-backup set dir=~/.vim-backup " Searching set smartcase set ignorecase set hlsearch set incsearch set redrawtime=500 " Chaosdorf autocmd BufRead ~/var/svn/intern.chaosdorf.de/admin/log.mdwn nnoremap :4O### =strftime("%Y-%m-%d") derf- map :if exists("g:colors_name") && g:colors_name == "darkblue" \ colorscheme default \ else \ colorscheme darkblue \ endif map :if exists("g:syntax_on") \ syntax off \ colorscheme default \ else \ syntax enable \ colorscheme darkblue \ endif " Greedy remaps (TODO: Add more keys) noremap - : noremap n h noremap t j noremap h k noremap s l noremap N H noremap T noremap H noremap S L noremap c n noremap f p