syn on " Enable Ctrl+Backspace deleting the last word imap set backspace=indent,eol,start " more powerful backspacing set nocompatible " no vi compatible, seems to be good set expandtab " covert TAB to spaces set shiftwidth=2 " width of tabs set softtabstop=2 " width of tabs " Ctrl copy/cut paste behaviour vmap "+yi vmap "+c vmap c"+p imap + " Reformat shortcuts nmap gqap " wrap paragraph map! gqapi nmap vipJ " unwrap paragraph map! vipJi "nmap kgqj " merge the previous line with the current one, with a correct formatting "map! kgqji " Arrow left moves up line when at position 0 set whichwrap+=<,>,[,] " ASTROID autocmd BufRead /home/max/.cache/astroid/* :source ~/.vim/astroid.vim " Thunderbird autocmd BufRead /tmp/*.eml :source ~/.vim/mail.vim " textern (Firefox Addon) autocmd BufRead /*/textern/textern* :source ~/.vim/mail.vim autocmd BufRead /*/textern*/*.txt :source ~/.vim/mail.vim