nnoremap yw :call WindowSwap#EasyWindowSwap() unmap ww " --------- SURROUND MAPPINGS --------- " " Surround a word with "quotes" map " ysiw" vmap " c""" " ' Surround a word with 'single quotes' map ' ysiw' vmap ' c'"' " ' Surround a word with 'ticks' map ` ysiw` vmap ` c`"` " --------- SEARCH MAPPINGS --------- " unhilight search nnoremap :nohlsearch " --------- CLIPBOARD MAPPINGS --------- " Paste from OS clipboard map v i"+pa vmap v c"+p imap v "+pa " --------- WINDOW/PANE MAPPINGS --------- map wr r map H :wincmd H map K :wincmd K map L :wincmd L map J :wincmd J map T :wincmd T map x :wincmd x " resize vertical split to 1/3 or 2/3 size nnoremap s+ :exe "vertical resize " . (winwidth(0) * 5/4) nnoremap s- :exe "vertical resize " . (winwidth(0) * 4/5) " resize horizontal split to 1/3 or 2/3 size nnoremap x+ :exe "resize " . (winheight(0) * 3/2) nnoremap x- :exe "resize " . (winheight(0) * 2/3) " --------- FORMATTING MAPPINGS --------- " indent file map = gg=G `` nmap yf :let @+ = expand("%") nmap e :e %% " replace currently selected text with default register " without yanking it vnoremap p "_dP nnoremap rp :VimuxOpenRunner :VimuxRunCommand '!!' :call VimuxSendKeys("Enter") nnoremap s :SessionSave