Netrw opens tabbed files in the opposite vertical window

Imagine what I have :Vexafter running vim. I want to be able to click tand add tabs to the opposite window, and not to the Netrw window. Is it possible?

If I click P, I can open the file in a split window, but I would like to be able to insert files vertically while my Netrw window is visible - just like Sublime or Komodo.

Possible?

And yes, I looked :h netrw!

+5
source share
3 answers

Almost got it with some .vimrcrepetitions and options.

Looks like this http://i.imgur.com/rUf19SF.png

Application:

  • run vim.
  • shift enter. netrw ( ) .
  • enter, . .
  • control-w control-w. netrw.
  • , control-enter, . , netrw.

.vimrc:

" netrw magic
" enable mouse usage. makes it easier to browse multiple tabs
set mouse=a
" hide netrw top message
let g:netrw_banner=0
" tree listing by default
let g:netrw_liststyle=3
" hide vim swap files
let g:netrw_list_hide='.*\.swp$'
" open files in left window by default
let g:netrw_chgwin=1
" remap shift-enter to fire up the sidebar
nnoremap <silent> <S-CR> :rightbelow 20vs<CR>:e .<CR>
" the same remap as above - may be necessary in some distros
nnoremap <silent> <C-M> :rightbelow 20vs<CR>:e .<CR>
" remap control-enter to open files in new tab
nmap <silent> <C-CR> t :rightbelow 20vs<CR>:e .<CR>:wincmd h<CR>
" the same remap as above - may be necessary in some distros
nmap <silent> <NL> t :rightbelow 20vs<CR>:e .<CR>:wincmd h<CR>

:

" " netrw , . ? netrw , netrw .

+7

, Vim , .

Vim . Vim "" , " ": . , , !

, . "" , "" .

, :Vex, . , "" "" . "" .

, , , , .

Mac, ", " ( , , , Vim), MacVim, "" buffer/window/tab. PIDA, IDE Vim; .

+2

romainl, ( ). , , : " t, ...". : help netrw-C. "", "", , , , , , . netrw ( , v153f) , , .

+1

All Articles