syntax on " retab 2 set tabstop=3 set autoindent set smartindent set shiftwidth=3 " Copy & Paste from other windows " On ubuntu (running Vim in gnome-terminal) " " The reason for the double-command on is due to some weirdness with " the X clipboard system. vmap y:call system("xclip -i -selection clipboard", getreg("\"")):call system("xclip -i", getreg("\"")) nmap :call setreg("\"",system("xclip -o -selection clipboard"))p " Folding shortcuts nmap zfa} nmap zo nmap zc " Save Folds au BufWinLeave * mkview au BufWinEnter * silent loadview source /home/kraftb/.vim/supertab.vim highlight PMenu ctermbg=grey ctermfg=darkred gui=bold highlight PMenuSel ctermbg=darkblue ctermfg=white gui=bold