" change color scheme :colorscheme darkblue " break the line after set textwidth=75 " we want color syntax on " text encoding set encoding=iso-8859-15 " Let's be friendly :) autocmd VimEnter * echo "Welcome back Arvid :)" autocmd VimLeave * echo "Cya in Hell." " Tab are Tab and Spaces are Spaces! set noexpandtab " allow backspacing over everything in insert mode set backspace=2 " make the history longer set history=500 " show statusline set laststatus=2 " changes the special characters that can be used in search patterns set magic " gives the number of lines that is checked for set commands set modelines=1 " disable modeline set nomodeline " eight spaces are one TAB set shiftwidth=8 " String to put at the start of lines that have been wrapped set showbreak=+ " when a bracket is inserted, briefly jump to the matching one ( set showmatch " tenths of a second to show the matching parent set matchtime=5 " display current mode set showmode " See >:h statusline< for more details " set statusline=%<[%n]\ %F\ \ Filetype=\%Y\ \ %r\ %1*%m%*%w%=%(Line:\ %l%)%4(%)Column:\ %5(%c%V/%{strlen(getline(line('.')))}%)\ %4(%)%p%% "set statusline=[%n]\ %<%f\ %((%1*%M%*%R%Y)%)\ %=%-19(\Line\ [%3l/%3L]\ Colmn\ [%02c%03V]%)\ ascii['%02b']\ %p%% set statusline=[%n][File:%f]%m%=[Row:%l][Col:%c][%p%%] " the title of the window will be set to the value of titlestring set title " Define the look of title "set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:~:.:h\")})%)%(\ %a%) set titlestring=%<%F\ %M%=%l/%L\ -\ %p%% titlelen=70 "command-line completion operates in an enhanced mode set wildmenu " automatically set some special behavior " " Textwidth only for SLRN und Mutt au BufNewFile,BufRead .followup,.article.*,.letter.*,/tmp/mutt-*,nn.*,snd.*,mutt* set tw=72 " Colors in Mails au BufNewFile,BufRead /tmp/mutt-* :so /usr/local/share/vim/vim62/syntax/mail.vim " Colors for slrn's score-file au BufRead .slrn-score :so /usr/local/share/vim/vim62/syntax/slrnsc.vim " No Textwidth for HTML au BufRead *.htm,*.html,*.shtml set textwidth=0 " Colors for .muttrc and other mutt-related config-files " nmap :so /usr/local/share/vim/vim62/syntax/muttrc.vim " nope, all beginning with .mutt* automatically please au BufRead .mutt* :so /usr/local/share/vim/vim62/syntax/muttrc.vim " Umlaute in HTML documents autocmd FileType html call Doit() function Doit() set textwidth=75 nonu nobackup imap ß ß imap ä ä imap Ä Ä imap ü ü imap Ü Ü imap ö ö imap Ö Ö endfunction " load some scripts and define mappings " " VBlockquote " look at VBlockquote.vim for details so /home/arvid/.vim/VBlockquote.vim " a visual mapping "ub" to get a box without title vmap ub :call VBlockquote () " a visual mapping "üb" to add title, you have to type the title you prefer " and end with '")' get it work vmap üb :call VBlockquote (" " Ispell Macros " look at Ispell.vim for details so /home/arvid/.vim/Ispell.vim