diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index eb30413..f22ad03 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -98,8 +98,23 @@ nmap a :Buffers nmap s :Rg nmap d :Files -nnoremap = :vertical resize +5 -nnoremap - :vertical resize -5 +" Resize window +nnoremap L :vertical resize +5 +nnoremap H :vertical resize -5 +nnoremap J :res +5 +nnoremap K :res -5 + +" Split window +nnoremap _ :vsp +nnoremap - :split + +" Reload file +nnoremap :edit +nnoremap :edit! + +" Copy using anc c +nnoremap c :w !xclip +vnoremap c "*y " livepreviewer let g:livepreview_previewer = 'mupdf' @@ -152,6 +167,7 @@ let &t_EI = "\[2 q" hi Pmenu ctermfg=NONE ctermbg=236 cterm=NONE guifg=NONE guibg=#64666d gui=NONE hi PmenuSel ctermfg=NONE ctermbg=24 cterm=NONE guifg=NONE guibg=#204a87 gui=NONE set bg=dark +"hi Normal ctermbg=NONE hi CursorLine cterm=NONE term=NONE ctermbg=NONE guibg=NONE hi CursorLine ctermbg=235 colorscheme zenburn @@ -180,8 +196,8 @@ vnoremap :m '<-2gv=gv cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' edit! -map :setlocal spell! spelllang=en_gb -map :setlocal spell! spelllang=pl +map :setlocal spell! spelllang=en_gb +map :setlocal spell! spelllang=pl " latex let g:tex_flavor = "latex" diff --git a/.zshrc b/.zshrc index ce08f70..bd97696 100644 --- a/.zshrc +++ b/.zshrc @@ -101,7 +101,7 @@ alias denpl="trans en:pl" alias dplen="trans pl:en" alias notes="nvim $HOME/git/notes/index.md" alias mgr="cd $HOME/Documents/Mega-Documents/Magisterka-Marcin/Semestr1/" -alias mpv="__NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 mpv --vo=x11 --hwdec=no --ytdl-raw-options="yes-playlist=" --no-resume-playback" # --ytdl-format='bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]' --no-resume-playback" +alias mpv="__NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 mpv --vo=x11 --hwdec=no --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo[height<=?1080]+bestaudio/best'" alias aria2c="aria2c --seed-time=0 --disable-ipv6 --max-upload-limit=1k" # Cleaning-up