Added new shortcuts

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2021-04-12 00:16:32 +02:00
parent 2f5b8bf090
commit 5c3c699b71
Signed by: y0rune
GPG Key ID: F204C385F57EB348
2 changed files with 21 additions and 5 deletions

View File

@ -98,8 +98,23 @@ nmap <Leader>a :Buffers<CR>
nmap <Leader>s :Rg<CR>
nmap <Leader>d :Files<CR>
nnoremap <Leader>= :vertical resize +5<CR>
nnoremap <Leader>- :vertical resize -5<CR>
" Resize window
nnoremap L :vertical resize +5<CR>
nnoremap H :vertical resize -5<CR>
nnoremap J :res +5<CR>
nnoremap K :res -5<CR>
" Split window
nnoremap _ :vsp <CR>
nnoremap - :split <CR>
" Reload file
nnoremap <F5> :edit <CR>
nnoremap <Leader><F5> :edit! <CR>
" Copy using <Leader> anc c
nnoremap <Leader>c :w !xclip<CR><CR>
vnoremap <Leader>c "*y
" livepreviewer
let g:livepreview_previewer = 'mupdf'
@ -152,6 +167,7 @@ let &t_EI = "\<esc>[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 <A-Up> :m '<-2<CR>gv=gv
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
map <F5> :setlocal spell! spelllang=en_gb<CR>
map <F6> :setlocal spell! spelllang=pl<CR>
map <F3> :setlocal spell! spelllang=en_gb<CR>
map <F4> :setlocal spell! spelllang=pl<CR>
" latex
let g:tex_flavor = "latex"

2
.zshrc
View File

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