diff --git a/.bashrc b/.bashrc index e5463b5..3336dd9 100644 --- a/.bashrc +++ b/.bashrc @@ -8,6 +8,7 @@ # =====ENVIRONMENT VARIABLES===== export EDITOR=nvim export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH" +export INPUTRC="$HOME/.inputrc" # =====FUNCTIONS===== diff --git a/.config/nvim/init/keys.vim b/.config/nvim/init/keys.vim index 1c57bf0..81d591d 100644 --- a/.config/nvim/init/keys.vim +++ b/.config/nvim/init/keys.vim @@ -40,15 +40,20 @@ vnoremap vnoremap " Tabs bindings -" TODO improve on these -" Create tab -nnoremap ee :tabnew +" Create tab at the end of the list +nnoremap ee :$tabnew +" Create tab after current tab +nnoremap eL :tabnew +" Create tab before current one +nnoremap eH :-tabnew " Close current tab nnoremap ed :tabclose " Go to next tab nnoremap el :tabnext " Go to previous tab nnoremap eh :tabprevious +" Open new tab with terminal, and switch to insert mode +nnoremap er :tabnew:e term://$SHELLi " This function allows me to switch between a dark & light theme. I mainly use " the dark theme, but when I'm sitting outside, the light theme can be much diff --git a/.config/nvim/init/plugins/git-fugitive.vim b/.config/nvim/init/plugins/git-fugitive.vim index f296b94..7d788ca 100644 --- a/.config/nvim/init/plugins/git-fugitive.vim +++ b/.config/nvim/init/plugins/git-fugitive.vim @@ -5,8 +5,12 @@ nnoremap gg :Git nnoremap gc :Git commit " Push nnoremap gp :Git push -" Show diffs -nnoremap gd :Gvdiffsplit! +" Open diff tool +nnoremap gd :Gdiffsplit! +" Open merge tool +nnoremap gm :Git mergetool " Easily resolve merges -nnoremap gh :diffget //2 -nnoremap gl :diffget //3 +" nnoremap gh :diffget //2 +" nnoremap gl :diffget //3 +" Git blame +nnoremap gb :Git blame