diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a23ec5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +nvim/.netrwhist diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc index 58d1ed1..0422880 100755 --- a/bspwm/bspwmrc +++ b/bspwm/bspwmrc @@ -22,6 +22,7 @@ numlockx on & ### if [ "`hostname`" = "beef-book" ]; then bspc monitor "DP-1" -d 1 2 3 4 5 6 + bspc monitor "DP-4" -d 1 2 3 4 5 6 7 8 9 bspc monitor "LVDS1" -d 1 2 3 4 5 6 7 8 9 bspc monitor "LVDS-1-1" -d 1 2 3 4 5 6 7 8 9 bspc monitor "VGA-0" 7 8 9 diff --git a/nvim/.netrwhist b/nvim/.netrwhist deleted file mode 100644 index 47ee37f..0000000 --- a/nvim/.netrwhist +++ /dev/null @@ -1,11 +0,0 @@ -let g:netrw_dirhistmax =10 -let g:netrw_dirhistcnt =9 -let g:netrw_dirhist_9='/home/vibikim/repos/st' -let g:netrw_dirhist_8='/home/vibikim/repos' -let g:netrw_dirhist_7='/home/vibikim/repos/st' -let g:netrw_dirhist_6='/home/vibikim/repos' -let g:netrw_dirhist_5='/home/vibikim/repos/dotfiles/polybar' -let g:netrw_dirhist_4='/home/vibikim' -let g:netrw_dirhist_3='/home/vibikim/.config/awesome' -let g:netrw_dirhist_2='/home/vibikim/.config' -let g:netrw_dirhist_1='/home/vibikim' diff --git a/nvim/init.vim b/nvim/init.vim index 09e2c42..7abc9e0 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -9,16 +9,18 @@ syntax on set encoding=utf-8 set number set termguicolors +set splitbelow splitright + +" restore cursor to the last position after reopening a file + autocmd BufReadPost * + \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' + \ | exe "normal! g`\"" + \ | endif " Enable spell checking, s for spell check map se :setlocal spell! spelllang=en map sr :setlocal spell! spelllang=ro -" Easier Write and Quit aliases -nnoremap q :q -nnoremap Q :wq -nnoremap w :w - " ### " # Plugins " ### @@ -40,3 +42,28 @@ autocmd VimEnter * HexokinaseTurnOn " ### map :source ~/.config/nvim/init.vim +nnoremap e :Ex + +" Easier Write and Quit aliases +nnoremap q :q +nnoremap Q :wq +nnoremap w :w + +" Split navigation with leader key +nnoremap h h +nnoremap j j +nnoremap k k +nnoremap l l + +" Make adjusing split sizes a bit more friendly +noremap :vertical resize +3 +noremap :vertical resize -3 +noremap :resize +3 +noremap :resize -3 + +" New splits +nnoremap sv :Vex +nnoremap sh :Sex +nnoremap t :24sp:term:startinsert +" exit insert mode in terminal easier +tnoremap diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index bb586c8..4d7d07f 100644 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -28,8 +28,8 @@ super + shift + o $TERMINAL -e htop super + shift + Escape xfce4-taskmanager -super + shift + v - $TERMINAL -e vim -c Ex +super + shift + e + $TERMINAL -e nvim -c Ex ###