From 7a3221ecc21bc9103158bf0b958f8099a084b0ff Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 11 May 2020 22:09:38 +0200 Subject: Fixed small problems --- .config/nvim/init.vim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to '.config/nvim/init.vim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index ac355ea..5f24760 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -117,10 +117,6 @@ nmap :bn nmap :bp nmap S :nohlsearch -" Run - very specific to my project layouts -" nmap r :!./run -nmap r :terminal./run - " Fix dumb delete combo nnoremap d "_d vnoremap d "_d @@ -148,8 +144,9 @@ nmap l l " Terminal nmap t :term -tnoremap :bd! +tnoremap :BD! tnoremap +nmap r :terminal./run autocmd TermOpen * startinsert " FZF @@ -230,7 +227,6 @@ augroup END " File explorer nnoremap n :NERDTreeToggle nnoremap f :NERDTreeFind -" autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif -- cgit v1.2.3