dotfiles

<-- duh.
git clone https://hhvn.uk/dotfiles
git clone git://hhvn.uk/dotfiles
Log | Files | Refs | Submodules | LICENSE

openc.vim (316B)


      1 function! OpenC(arg)
      2 	let file='<cWORD>'
      3 	if a:arg == '0'
      4 		let split="vsplit"
      5 	elseif a:arg == '1'
      6 		let split="split"
      7 	else
      8 		let split="edit"
      9 	endif
     10 	execute ":" . split . " " . file
     11 endfunction
     12 
     13 nnoremap <leader>Ew :call OpenC(2)<CR>
     14 nnoremap <leader>EZ :call OpenC(1)<CR>
     15 nnoremap <leader>Ez :call OpenC(0)<CR>