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
sandbox for the other blog to practise posting and try out ideas. build up that muscle memory.
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