From 7e181d50abf34ec04a7048f3e701230e68152c8d Mon Sep 17 00:00:00 2001 From: D4VIDB2 Date: Tue, 7 Sep 2021 20:50:34 +0200 Subject: [PATCH] introduce stow --- .bashrc => bash/.bashrc | 0 .init.nvim => nvim/.config/nvim/init.nvim | 91 +++++++++++++++------ .tmux.conf => tmux/.tmux.conf | 0 .shell_aliases => zsh/.config/shell_aliases | 0 .zshrc => zsh/.zshrc | 0 5 files changed, 67 insertions(+), 24 deletions(-) rename .bashrc => bash/.bashrc (100%) rename .init.nvim => nvim/.config/nvim/init.nvim (91%) rename .tmux.conf => tmux/.tmux.conf (100%) rename .shell_aliases => zsh/.config/shell_aliases (100%) rename .zshrc => zsh/.zshrc (100%) diff --git a/.bashrc b/bash/.bashrc similarity index 100% rename from .bashrc rename to bash/.bashrc diff --git a/.init.nvim b/nvim/.config/nvim/init.nvim similarity index 91% rename from .init.nvim rename to nvim/.config/nvim/init.nvim index c27b503..01bd61c 100644 --- a/.init.nvim +++ b/nvim/.config/nvim/init.nvim @@ -78,30 +78,6 @@ call plug#end() - -" disable spacebar (don't move forward) -nnoremap - -" quickly move through panes -nnoremap -nnoremap -nnoremap -nnoremap - -" resize panes -nnoremap + :vertical resize +5 -nnoremap - :vertical resize -5 -nnoremap * :resize +5 -nnoremap / :resize -5 - -nnoremap fgf :GFiles -nnoremap ff :Files - -vnoremap p "_dP - -inoremap :call NERDComment(0,"toggle") -nnoremap :call NERDComment(0,"toggle") - colorscheme gruvbox "colorscheme onehalfdark let g:airline_theme='onehalfdark' set background=dark @@ -345,3 +321,70 @@ let g:OmniSharp_want_snippet=1 let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'xml', 'javascript', 'json', 'asm'] let g:markdown_minlines = 100 + + + + +" disable spacebar (don't move forward) +nnoremap + +" quickly move through panes +nnoremap +nnoremap +nnoremap +nnoremap + +" resize panes +nnoremap + :vertical resize +5 +nnoremap - :vertical resize -5 +nnoremap * :resize +5 +nnoremap / :resize -5 + +nnoremap fgf :GFiles +nnoremap ff :Files + +vnoremap p "_dP + +inoremap :call NERDComment(0,"toggle") +nnoremap :call NERDComment(0,"toggle") + + + +" MUST HAVE VIM REMAPS +" https://youtu.be/hSHATqh8svM + +" Number 5: Behave Vim +nnoremap Y y$ + +" Number 4: Keeping it centered +nnoremap n nzzzv +nnoremap N Nzzzv +" nnoremap J mzJ`z + +" Number 3: Undo break points +inoremap , ,u +inoremap . .u +inoremap ! !u +inoremap ? ?u +inoremap _ _u +inoremap - -u +inoremap u + +" Number 2: Jumplist mutations +nnoremap k (v:count > 5 ? "m'" . v:count : "") . 'k' +nnoremap j (v:count > 5 ? "m'" . v:count : "") . 'j' + +" Number 1: Moving text +vnoremap J :m '>+1gv=gv +vnoremap K :m '<-2gv=gv +inoremap :m .+1== +inoremap :m .-2== +nnoremap j :m .+1== +nnoremap k :m .-2== + + +vnoremap < >gv + +" vnoremap >gv diff --git a/.tmux.conf b/tmux/.tmux.conf similarity index 100% rename from .tmux.conf rename to tmux/.tmux.conf diff --git a/.shell_aliases b/zsh/.config/shell_aliases similarity index 100% rename from .shell_aliases rename to zsh/.config/shell_aliases diff --git a/.zshrc b/zsh/.zshrc similarity index 100% rename from .zshrc rename to zsh/.zshrc