stuffs and more nvim

This commit is contained in:
vibikim 2020-09-08 16:01:22 +03:00
parent fd8f8586c1
commit d601d1cfc4
6 changed files with 37 additions and 19 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
nvim/.netrwhist

View file

@ -5,4 +5,4 @@ export EDITOR="nvim"
export TERMINAL="st" export TERMINAL="st"
export BROWSER="firefox" export BROWSER="firefox"
export READER="zathura" export READER="zathura"
export FILEMANAGER="pcmanfm" export FILEMANAGER="nemo"

View file

@ -22,6 +22,7 @@ numlockx on &
### ###
if [ "`hostname`" = "beef-book" ]; then if [ "`hostname`" = "beef-book" ]; then
bspc monitor "DP-1" -d 1 2 3 4 5 6 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 "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 "LVDS-1-1" -d 1 2 3 4 5 6 7 8 9
bspc monitor "VGA-0" 7 8 9 bspc monitor "VGA-0" 7 8 9

View file

@ -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'

View file

@ -9,16 +9,18 @@ syntax on
set encoding=utf-8 set encoding=utf-8
set number set number
set termguicolors 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 " Enable spell checking, s for spell check
map <leader>se :setlocal spell! spelllang=en<CR> map <leader>se :setlocal spell! spelllang=en<CR>
map <leader>sr :setlocal spell! spelllang=ro<CR> map <leader>sr :setlocal spell! spelllang=ro<CR>
" Easier Write and Quit aliases
nnoremap <leader>q :q<CR>
nnoremap <leader>Q :wq<CR>
nnoremap <leader>w :w<CR>
" ### " ###
" # Plugins " # Plugins
" ### " ###
@ -40,3 +42,28 @@ autocmd VimEnter * HexokinaseTurnOn
" ### " ###
map <C-s> :source ~/.config/nvim/init.vim<CR> map <C-s> :source ~/.config/nvim/init.vim<CR>
nnoremap <leader>e :Ex<CR>
" Easier Write and Quit aliases
nnoremap <leader>q :q<CR>
nnoremap <leader>Q :wq<CR>
nnoremap <leader>w :w<CR>
" Split navigation with leader key
nnoremap <leader>h <C-w>h
nnoremap <leader>j <C-w>j
nnoremap <leader>k <C-w>k
nnoremap <leader>l <C-w>l
" Make adjusing split sizes a bit more friendly
noremap <silent> <C-Left> :vertical resize +3<CR>
noremap <silent> <C-Right> :vertical resize -3<CR>
noremap <silent> <C-Up> :resize +3<CR>
noremap <silent> <C-Down> :resize -3<CR>
" New splits
nnoremap <leader>sv :Vex<CR>
nnoremap <leader>sh :Sex<CR>
nnoremap <leader>t :24sp<CR>:term<CR>:startinsert<CR>
" exit insert mode in terminal easier
tnoremap <C-\> <C-\><C-N>

View file

@ -28,8 +28,8 @@ super + shift + o
$TERMINAL -e htop $TERMINAL -e htop
super + shift + Escape super + shift + Escape
xfce4-taskmanager xfce4-taskmanager
super + shift + v super + shift + e
$TERMINAL -e vim -c Ex $TERMINAL -e nvim -c Ex
### ###