syntax on set mouse=v "set clipboard=unnamedplus set number set nocompatible " set timeout to wait for shortcuts with a prefix set timeout timeoutlen=200 noremap oo o noremap OO O " F3 to toggle highlight. let hlstate=0 nnoremap :if (hlstate%2 == 0) \| nohlsearch \| else \| set hlsearch \| endif \| let hlstate=hlstate+1 let mapleader = " " " map leader to space " copy to system clipboard when leader is used. (note, install gvim for this) noremap y "+y noremap yy "+yy noremap p "+p noremap P "+P