"" 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 syntax enable colorscheme darkblue " Chaosdorf autocmd BufRead ~/var/svn/intern.chaosdorf.de/admin/log.mdwn nnoremap :6O### =strftime("%Y-%m-%d") derf- autocmd BufNewFile,BufRead *.py setlocal tabstop=4 softtabstop=4 shiftwidth=4 textwidth=160 smarttab expandtab 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 command! TV :w | :!texv % command! TVb :w | :!texvb % command! TVbt :w | :!texvbt % command! TVn :w | :!texvn % command! TVp :w | :!texvp % nnoremap :tabnew nnoremap :tabclose nnoremap :tabprevious nnoremap :tabnext " 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