Notes tagged with "Terminal"

vim stuff

Things in vim that I can never remember….


:arg **/*.py
:argdo %s/pattern/replace/gce
:argdo update

tmux stuff

N.B. I always reset the tmux command option from ctrl + b to ctrl + a.

Sessions

  • List all tmux sessions: tmux ls or ctrl + a s:
... tmux ls
... 0: 4 windows (created Sat Nov 23 08:44:49 2019) [158x78] (attached)

Windows

  • New Window: ctrl + a n

  • Switch/select window: ctrl + a 0...9

  • Move window: ctrl + a : and :swap-window -t [window-number|+/-move-positions] Swap window: ctrl + a : and :swap-window -s [window-number] -t [window-number]