Better splits and other crap
This commit is contained in:
8
init.vim
8
init.vim
@@ -8,6 +8,9 @@ set ts=4 sw=4
|
|||||||
"gets rid of --INSERT-- useful bc of lighline"
|
"gets rid of --INSERT-- useful bc of lighline"
|
||||||
set noshowmode
|
set noshowmode
|
||||||
set mouse=a
|
set mouse=a
|
||||||
|
"splits"
|
||||||
|
set splitright
|
||||||
|
set splitbelow
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
"file explorer"
|
"file explorer"
|
||||||
@@ -27,9 +30,10 @@ call plug#end()
|
|||||||
|
|
||||||
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||||
|
|
||||||
" Start NERDTree. If a file is specified, move the cursor to its window.
|
" Start NERDTree fullscreen if no file specified, otherwise open in split
|
||||||
autocmd StdinReadPre * let s:std_in=1
|
autocmd StdinReadPre * let s:std_in=1
|
||||||
autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif
|
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | execute 'NERDTree' | only | endif
|
||||||
|
autocmd VimEnter * if argc() > 0 || exists("s:std_in") | NERDTree | wincmd p | endif
|
||||||
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
||||||
|
|
||||||
nnoremap <leader>n :NERDTreeFocus<CR>
|
nnoremap <leader>n :NERDTreeFocus<CR>
|
||||||
|
|||||||
Reference in New Issue
Block a user