A pinch of vimrc cleanup

Also adjust download-channel
This commit is contained in:
Sage Vaillancourt 2024-01-20 17:36:50 -05:00
parent 325c843df0
commit da154dcae7
2 changed files with 6 additions and 6 deletions

View File

@ -40,7 +40,7 @@ alias caddyfile="sudo vim /etc/caddy/Caddyfile"
alias cf="sudo vim /etc/caddy/Caddyfile" alias cf="sudo vim /etc/caddy/Caddyfile"
function download-channel { function download-channel {
~/Downloads/yt-dlp "$1" --format 'bestvideo[height=1080]+bestaudio/best' --download-archive archive.txt --output '%(uploader)s/%(upload_date)s.%(title)s.%(id)s.%(ext)s' --restrict-filenames --merge-output-format mkv --ignore-errors yt-dlp "$1" --format 'bestvideo[height=1080]+bestaudio/best' --download-archive archive.txt --output '%(uploader)s/%(upload_date)s.%(title)s.%(id)s.%(ext)s' --restrict-filenames --merge-output-format mkv --ignore-errors
} }
function fin { function fin {

View File

@ -18,9 +18,8 @@ else
set termguicolors set termguicolors
let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum" let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum"
let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum" let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum"
syntax enable
colorscheme monokai colorscheme monokai
syntax enable
endif endif
let mapleader=" " let mapleader=" "
@ -81,7 +80,8 @@ set number relativenumber
set ignorecase smartcase set ignorecase smartcase
set autoindent smartindent set autoindent smartindent
"Yank to clipboard
" Yank to clipboard
nnoremap <C-C> "+yy nnoremap <C-C> "+yy
vnoremap <C-C> "+y vnoremap <C-C> "+y
@ -93,7 +93,7 @@ nnoremap <C-I> ^
nnoremap U ~ nnoremap U ~
nnoremap ~ U nnoremap ~ U
" Paste last yank (not delete)) " Paste last yank (not delete)
nnoremap "p "0p nnoremap "p "0p
" Window jumps " Window jumps
@ -143,7 +143,7 @@ nnoremap <Leader>gu :!git add -u<CR>
nnoremap <Leader>ga :!git add %<CR> nnoremap <Leader>ga :!git add %<CR>
nnoremap <Leader>r :source ~/.vimrc<CR> nnoremap <Leader>r :source ~/.vimrc<CR>
nnoremap <Leader>n :tabedit~/.notes<CR> nnoremap <Leader>n :tabedit ~/.notes<CR>
nnoremap <Leader>v :vert term ++cols=80<CR> nnoremap <Leader>v :vert term ++cols=80<CR>
nnoremap <Leader>t :term ++rows=20<CR> nnoremap <Leader>t :term ++rows=20<CR>