set ruler
set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5l,%-6(%c%V%)\ %P%)
set statusline=%<%F%h%m%r%h%w%y\ %{&ff}\ col:%c%V\ ascii:%b\ pos:%o\ lin:%l\,%L\ %P
set laststatus=2
set showcmd
set showmatch
set ai
set hlsearch
syntax on
" Map F6 to toggle wrap on and off
nmap <F6> :set wrap!<CR>
imap <F6> <c-o><F6>
" Don't highlight searchresults anymore
map <F3> :nohl<CR>
map <C-n> :tabnew<CR>
set pastetoggle=<F8>
" type ";" to replace under cursor
nmap ; :%s/\<<c-r>=expand("<cword>")<cr>\>/
hi StatusLineNC term=NONE cterm=NONE ctermfg=grey ctermbg=Blue
hi StatusLine term=NONE cterm=NONE ctermfg=white ctermbg=Blue
hi search ctermbg=yellow ctermfg=black
hi visual ctermfg=darkblue ctermbg=yellow
" This is really kewl for textformating, But you have to install Text::Autoformat.
imap <C-K> <esc> !G perl -MText::Autoformat -e "{autoformat{justify=>'full'};}"<cr>
nmap <C-K> !G perl -MText::Autoformat -e "{autoformat{justify=>'full'};}"<cr>
vmap <C-K> !G perl -MText::Autoformat -e "{autoformat{justify=>'full'};}"<cr>
imap <C-L> <esc> !G perl -MText::Autoformat -e "{autoformat{all=>1,justify=>'full'};}"<cr>
nmap <C-L> !G perl -MText::Autoformat -e "{autoformat{all=>1,justify=>'full'};}"<cr>
vmap <C-L> !G perl -MText::Autoformat -e "{autoformat{all=>1,justify=>'full'};}"<cr>
" When editing a file, always jump to the last known cursor position. Don't
" do it when the position is invalid or when inside an event handler (happens
" when dropping a file on gvim).
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
set modeline
filetype plugin indent on
if has("gui_running")
colo desert
else
colo desert
endif
"set bg=dark
cu
P.S.: Der größte Teil ist von einem Kollegen geklaut. 😉