From f0afd71eab10dd305a049aa407491d734ec315af Mon Sep 17 00:00:00 2001 From: Faerbit Date: Fri, 13 Nov 2015 10:58:00 +0100 Subject: [PATCH] Fixing openning of 2 file next to each other for nvim. --- vimrc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/vimrc b/vimrc index 483413d..50801f2 100644 --- a/vimrc +++ b/vimrc @@ -24,6 +24,11 @@ if exists("*vundle#begin") " All of your Plugins must be added before the following line call vundle#end() " required endif +"Split view if multiple files are opened +if argc() == 2 + autocmd VimEnter * nested silent vertical all + "silent vertical all +endif set background=dark set autoindent @@ -45,20 +50,17 @@ set wildmenu set wildignorecase set ignorecase set smartcase +set ruler syntax on filetype plugin indent on imap jk map :set nonumber! set pastetoggle= "Change working dir to current dir -:cd %:p:h +":cd %:p:h "execute Makefile :map :! ~/.vim/custom_make.sh :imap -"Split view if multiple files are opened -if argc() == 2 - silent vertical all -endif "Map on python files au FileType python :map i