I would prefer if vim opens new windows on the right old window (when using vsplit) and under old window (when using split).
I read that I should set splitright
and set splitbelow
to my .vimrc
. I added also g:netrw_altv=1
and g:netrw_alto=1
. This settings doesn't work in netrw browser when I hit v
button or type :vsplit file.txt
.
My .vimrc:
syntax enable
set splitright
set splitbelow
let g:netrw_altv=1
let g:netrw_alto=1
set background=dar
colorscheme solarized
let g:solarized_termtrans=1
set t_Co=256
set expandtab
set tabstop=4
set shiftwidth=4
set smartindent
set smarttab
set gfn=Inconsolata\ Medium\ 11
set hls
set showmatch
set smartcase
set wildmenu
map <F2> :retab <CR> :wq! <CR>