link to an article
faster vim workflow with buffers and argsArgs
:args *
:n / :p
:wn
:arga = add
:argd= delete
buffers
:ls
:bn /bp
substitution
- argdo
- bufdo
%s/method1/method2/g | update
link to an article
faster vim workflow with buffers and args:args *
:n / :p
:wn
:arga = add
:argd= delete
:ls
:bn /bp
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
When editing the contents of an HTML tag or changing the tag type in Vim, there are several useful shortcuts and techniques you can use:
Inside Tag Editing:
ci> (change inside >). This will change everything within the tag, but leave the tag itself intact.Changing the Tag Type:
<div> to a <span>, for example, you can use cit (change inside tag) and type <span>.<div> to a <p>, you can use cit and type <p>.<span> to a <div>, you can use cit and type <div>.Tag Surroundings:
surround.vim plugin, which allows you to visually select text and then specify a new tag to surround it. For example, you can select a block of text, press S, and then type the new tag you want to wrap around it.HTML Commenting:
gcc to comment a single line.:x,ys/old/new/g to replace old with new in lines x through y (e.g., :1,5s/<div>/<p>/g to replace <div> with <p> in lines 1 through 5).Changing Case:
~ key to toggle the case.Auto-pairing Plugins:
auto-pairs or surround.vim, which can assist in auto-closing and modifying HTML tags.| Keyboard | Price |
|---|---|
| AULA F3287 Wired TKL | $29.99 |
| Redragon K613 Jax | $39.99 |
| Redragon Kumara K552 | $39.99 |
| Redragon K616 black+red Bluetooth Wireless | $49.99 |
| Redragon Jax Pro (K613P) Bluetooth | $59.99 |
| Redragon K530 Pro-red switch 60% Wireless | $64.99 |
AULA F3287
k613 JAX
Kumara K552
K616 black + red
K613p JAX pro
K530 pro w red switches
17.99 open box
ios tracker sequencer just released. it can load auv3 plugins!! its so wicked!!
a jungle demo track on youtube

doesnt have keyboard shortcuts but its been well optimized well for the small touch interface of a phone. easier than sunvox, you dont need to be a genius to use. Thats a big deal, most of the time trackers seem too complicated. its alot more like renoise reminds me a bit of lgpt. can load auv3 effects on seperate mix busses and import your own samples. its free to try but doesnt let you save or export the unlock iap is 17 bucks canadian
In Vim, "args" typically refer to the list of files you're working with, and Vim provides several shortcuts and commands to work with this argument list. Here are some common Vim shortcuts and commands for working with arguments:
:args <file1> <file2> ... - Set the argument list to a specific list of files.
:args *.txt - Set the argument list to all files matching a pattern (e.g., all .txt files in the current directory).
:argadd <file> - Add a file to the argument list.
:argdelete - Remove the current file from the argument list.
:args - List all files in the current argument list.
:argnext (or :an) - Go to the next file in the argument list.
:argprev (or :ap) - Go to the previous file in the argument list.
:argfirst - Go to the first file in the argument list.
:arglast - Go to the last file in the argument list.
:argdo <command> - Execute a command on all files in the argument list. For example, :argdo :%s/foo/bar/g would replace "foo" with "bar" in all files.
:args $mylist - Set the argument list from a variable.
:argopen - Open all files in the argument list in separate windows.
:arglist - Display the argument list and the cursor position within each file.
sudo apt install netatalk
sudo nano /etc/netatalk/afp.conf
** inside that file add to bottom **
[Homes]
basedir regex = /home
sudo systemctl restart netatalk
| shortcut | action |
|---|---|
| ctrl alt shift t | toggle amethyst |
| alt shift t | toggle float for active window |
| ctrl alt shift z | refresh amethyst |
| alt shift j/k | cycle active window |
| alt shift h/l | resize windows |
| ctrl alt shift j/k | swap active windows |
| ctrl alt shift # | throws active window to a space |
- Ctrl A/ Ctrl Z increments a single number up and down - ctrl v, g ctrl a/ ctrl z does all the numbers at once ** it doesnt work on old vim 7
| Shortcut | Action |
|---|---|
| ctrl-cmd-f | FULLSCREEN |
| ctrl-cmd-s | Opera:toggle sidebar (for RSS viewer) |
| ctrl-tab | next/prev opera tab |
| cmd-down | go into folder(or open program) |
| cmd-up | go to parent director |
| cmd-right/left | go in folder/out folder |
| cmd-shift o | Documents |
| cmd-shift d | Desktop |
| cmd-shift d | Hide/show dock |
| cmd-opt l | Downloads |
| cmd-shift a | Applications |
| cmd-shift g | Go to folder |
| cmd-shift u | Utilities |
| cmd-shift k | Networks |
| cmd-shift c | Computers |
| cmd-shift i | Icloud |
| cmd-tab | switch program focus |
| cmd-l | in browser switch focus to url bar |
| cmd-[/] | back/forward webpages |
| cmd-shift-t | reopen last closed browser tab |
| opt-cmd-b | open bookmarks |
| cmd-d | add bookmark |
| cmd-shift-h | open browser history |
| cmd-j | see browser downloads |
| cmd-` | cycle to next terminal window |
| cmd-w | close tab |
| cmd-h | Hide window |
| cmd-q | Quit |
| cmd-n | New window |
| cmd-opt tab | switch and open program |
| cmd-space | spotlight search |
| cmd-opt t | toggle toolbar on/off |
| cmd-opt s | toggle sidebar on/off |
| cmd-left/right | switch views |
| fn f3 | mission controll |
| cmd-left/right | go to start/end of line |
| opt-left/right | jump to next/prev word |
| cmd-backspace | delete line |
| alt-backspace | delte word |
| shift-cmd-left/right | select line |
| shift-opt-left/right | select word |
| cmd-s | save |
| cmd-o | open |
| cmd-delete | close textedit without saving |
heres some one liners
mkdir -p todays_songs && mv * todays_songs/
rename to remove that square bracket shit
for f in *; do mv "$f" "$(echo "$f" | sed 's/\[.*\]//')"; done
sudo nano /etc/network/interfaces
find line:
iface default inet dhcp
put a # character in front of the line to temporarily disable requesting an IP address from a DHCP server.
Then add below:
iface default inet static
address 192.168.10.1
netmask 255.255.255.0
pi@raspberrypi ~ $ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
in wpa_supplicant # out all lines of previous wifi
ap_scan=2
network={
ssid="MyHoc"
mode=1
frequency=2432
proto=WPA
key_mgmt=WPA-NONE
pairwise=NONE
group=CCMP
psk="CaptainHoc!"
}
Next click on the Advanced… button and go to the TCP/IP tab.
Select Manually from the Configure IPv4 drop-down menu.
Now fill in 192.168.10.2 for the IP Address and 255.255.255.0 for the Subnet Mask, then click the OK button.
#!/bin/bash
# Check if ffmpeg is installed
if ! command -v ffmpeg &> /dev/null; then
echo "ffmpeg is not installed. Please install it."
exit 1
fi
# Loop through all .webm files in the current directory
for webm_file in *.webm; do
# Check if there are any .webm files
if [ -e "$webm_file" ]; then
# Extract the base filename without extension
base_filename="${webm_file%.*}"
# Convert .webm to .mp3 using ffmpeg
ffmpeg -i "$webm_file" -vn -acodec libmp3lame -q:a 4 "$base_filename.mp3"
# Check if the conversion was successful
if [ $? -eq 0 ]; then
echo "Conversion of $webm_file to $base_filename.mp3 successful."
# Remove the original .webm file
rm -f "$webm_file"
echo "$webm_file deleted."
else
echo "Conversion of $webm_file to $base_filename.mp3 failed."
fi
fi
done
packloadall
call plug#begin('~/.vim/plugged')
Plug 'vimwiki/vimwiki'
Plug 'vim-airline/vim-airline'
Plug 'matze/vim-move'
Plug 'jceb/vim-orgmode'
Plug 'tpope/vim-speeddating'
Plug 'vim-scripts/utl.vim'
Plug 'mattn/calendar-vim'
Plug 'vim-airline/vim-airline-themes'
Plug 'sainnhe/sonokai'
Plug 'morhetz/gruvbox'
Plug 'tpope/vim-fugitive'
Plug 'plasticboy/vim-markdown'
Plug 'sfztools/sfz.vim'
Plug 'ap/vim-css-color'
Plug '907th/vim-auto-save'
Plug 'jiangmiao/auto-pairs'
Plug 'ajorgensen/vim-markdown-toc'
Plug 'mattn/emmet-vim'
Plug 'kshenoy/vim-signature'
Plug 'mechatroner/rainbow_csv'
Plug 'dhruvasagar/vim-table-mode'
Plug 'godlygeek/tabular'
Plug 'scrooloose/nerdtree'
Plug 'junegunn/goyo.vim'
Plug 'reedes/vim-pencil'
call plug#end()
" Enable folding based on Org mode headings
let g:org_special_headline_highlight = 1
let g:org_headline_fold = 1
" Remap vim-move from alt to shift
let g:move_key_modifier_visualmode = 'S'
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
set background=dark
colorscheme sonokai
syntax enable
set nobackup
set nowb
set noswapfile
set autoread
set wildmenu
set ffs=unix,dos,mac
set encoding=utf8
set showmatch
set backspace=eol,start,indent
set autoread
set wrap
set si
set ai
filetype plugin on
filetype indent on
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
set nocompatible
filetype plugin on
syntax on
set autowriteall
" Automatically save files on change
let g:auto_save = 1
" Set the interval for auto-saving in milliseconds (optional)
let g:auto_save_silent = 1
" Emmet shortcuts
let g:user_emmet_mode='n'
let g:user_emmet_leader_key=','
nnoremap :NERDTreeToggle
" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
nnoremap :bnext
nnoremap :bprev
set tags=./tags,tags;/
" Tmux Navigator integration for Vim
let g:navigator_no_mappings = 1
nnoremap :TmuxNavigateLeft
nnoremap :TmuxNavigateDown
nnoremap :TmuxNavigateUp
nnoremap :TmuxNavigateRight