" general settings set modeline set modelines=5 set mouse= syntax on set tabstop=4 set noexpandtab set number set shiftwidth=4 set autoindent set spelllang=en,de set colorcolumn=81 " don't touch this line to keep 80 chars. width set encoding=utf-8 set fileencodings=utf-8 set listchars=tab:→\ ,nbsp:␣,trail:•,precedes:«,extends:» set list filetype plugin indent on " special highlighting highlight folded ctermfg=Black highlight folded ctermbg=LightYellow " hot keys " switch tabs map :tabp map :tabn " convert *.bin file to ascii or reverse (make sure to open with `vim -b`!) map :%!xxd -r map :%!xxd " macros " see ':help key-notation' to view documentation " LaTeX enumeration (o rdered list) let @o="A\\\\begin{enumerate}\\\\end{enumerate}\\\\item " " LaTeX itemize (u nordered list) let @u="A\\\\begin{itemize}\\\\end{itemize}\\\\item " " LaTeX equation let @e="A\\\\begin{equation}\\\\end{equation}\\" " LaTeX image let @i="A\\\\begin{figure}[H]\\\\centering\\\includegraphics[width=1.0\\textwidth]{}\\:left\i\\end{figure}\\A\"