let g:mapleader="," let g:maplocalleader="," " Zoom / Restore window. function! s:ToggleZoom() abort if exists('t:zoomed') && t:zoomed execute t:zoom_winrestcmd let t:zoomed = 0 else let t:zoom_winrestcmd = winrestcmd() resize vertical resize let t:zoomed = 1 endif endfunction command! ToggleZoom call s:ToggleZoom() nnoremap z :ToggleZoom " open new vertical split and change to split nnoremap \ vl nnoremap - sj " Opens an edit command with the path of the currently edited file filled in nnoremap o :e =expand("%:p:h") . "/" " Yank to clipboard with clipper -- see https://github.com/wincent/clipper nnoremap y :call system('nc localhost 8377', @0) " Find merge conflict markers nnoremap gf /\v^[<\|=>]{7}( .*\|$) " toggle wrapping nnoremap w :set wrap! wrap? " reload files and redraw nnoremap r :checktime:redraw!