Skip to content

Instantly share code, notes, and snippets.

@dmi3mis
Created November 3, 2019 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmi3mis/b2e2c972438e42397a77440da12e8a0d to your computer and use it in GitHub Desktop.
Save dmi3mis/b2e2c972438e42397a77440da12e8a0d to your computer and use it in GitHub Desktop.
" open file vertically to the right
augroup netrw_mappings
autocmd!
autocmd filetype netrw call Netrw_mappings()
augroup END
function! OpenToRight()
:rightbelow vnew
:wincmd p
:normal P
endfunction
function! Netrw_mappings()
noremap V :call OpenToRight()<cr>
endfunction
let g:netrw_altv=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment