Fixing openning of 2 file next to each other for nvim.
This commit is contained in:
parent
ec46a36890
commit
f0afd71eab
12
vimrc
12
vimrc
@ -24,6 +24,11 @@ if exists("*vundle#begin")
|
|||||||
" All of your Plugins must be added before the following line
|
" All of your Plugins must be added before the following line
|
||||||
call vundle#end() " required
|
call vundle#end() " required
|
||||||
endif
|
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 background=dark
|
||||||
set autoindent
|
set autoindent
|
||||||
@ -45,20 +50,17 @@ set wildmenu
|
|||||||
set wildignorecase
|
set wildignorecase
|
||||||
set ignorecase
|
set ignorecase
|
||||||
set smartcase
|
set smartcase
|
||||||
|
set ruler
|
||||||
syntax on
|
syntax on
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
imap jk <Esc>
|
imap jk <Esc>
|
||||||
map <F2> :set nonumber!<CR>
|
map <F2> :set nonumber!<CR>
|
||||||
set pastetoggle=<F3>
|
set pastetoggle=<F3>
|
||||||
"Change working dir to current dir
|
"Change working dir to current dir
|
||||||
:cd %:p:h
|
":cd %:p:h
|
||||||
"execute Makefile
|
"execute Makefile
|
||||||
:map <F9> :! ~/.vim/custom_make.sh<cr>
|
:map <F9> :! ~/.vim/custom_make.sh<cr>
|
||||||
:imap <F9> <Esc><F9>
|
:imap <F9> <Esc><F9>
|
||||||
"Split view if multiple files are opened
|
|
||||||
if argc() == 2
|
|
||||||
silent vertical all
|
|
||||||
endif
|
|
||||||
|
|
||||||
"Map <F8> on python files
|
"Map <F8> on python files
|
||||||
au FileType python :map <F8> i <F8>
|
au FileType python :map <F8> i <F8>
|
||||||
|
Loading…
Reference in New Issue
Block a user