diff --git a/init/keys.vim b/init/keys.vim index dccd09a..529dc51 100644 --- a/init/keys.vim +++ b/init/keys.vim @@ -80,11 +80,15 @@ inoremap nnoremap a " Terminal keybindings +" I use the terminal inside Neovim a lot, so I have some keybindings to easily +" open one " Use jk in terminal as well tnoremap jk -" Open terminal in different locations -nnoremap rr :terminal -nnoremap rh :vsp:wincmd h:term -nnoremap rl :vsp:term -nnoremap rk :sp:wincmd k:term -nnoremap rj :sp:term + +" I explicitely use $SHELL, because my main shell is not necessarily Bash, and +" I want to use my main shell inside Vim as well +nnoremap rr :e term://$SHELL +nnoremap rh :vsp:wincmd h:e term://$SHELL +nnoremap rl :vsp:e term://$SHELL +nnoremap rk :sp:wincmd k:e term://$SHELL +nnoremap rj :sp:e term://$SHELL diff --git a/init/plugins/nerdtree.vim b/init/plugins/nerdtree.vim index a06d8fb..c185ecb 100644 --- a/init/plugins/nerdtree.vim +++ b/init/plugins/nerdtree.vim @@ -1,6 +1,6 @@ " Listing of paths to ignore. I think I could use something similar to CtrlP " here as well, but I want NERDTree to also show some non-version -" controlled files +" controlled files. It ignores the following files: " Vim " Other IDEs " Python @@ -12,8 +12,9 @@ let NERDTreeIgnore = [ \ '^\.vim$[[dir]]', \ '^\.vscode$[[dir]]', '.*\.code-workspace$[[file]]', '^\.idea$[[dir]]', - \ '^__pycache__$[[dir]]', '^\.pytest_cache$[[dir]]', '^venv$[[dir]]', '\.egg-info$[[dir]]', '^dist$[[dir]]', - \ '^build$[[dir]]', '^\.eggs$[[dir]]', + \ '^__pycache__$[[dir]]', '^\.pytest_cache$[[dir]]', '^venv$[[dir]]', + \ '\.egg-info$[[dir]]', '^dist$[[dir]]', '^build$[[dir]]', + \ '^\.eggs$[[dir]]', \ '^out$[[dir]]', \ '^\.git$[[dir]]', \ '^\.stack-work$[[dir]]', '\.lock$', diff --git a/init/settings.vim b/init/settings.vim index 4579bfe..61a1fe4 100644 --- a/init/settings.vim +++ b/init/settings.vim @@ -1,3 +1,9 @@ +" Terminal +" As I often use non-standard shells, certain things can break if this isn't +" explicitely set +" TODO maybe use which to find the executable? +set shell=/bin/bash + " Colorscheme " This forces (Neo)Vim to assume the terminal supports 256 colors. " Without this, some colorschemes (including mine) don't work properly.