Run: install.sh
Gnome terminal profiles: https://github.com/Gogh-Co/Gogh
' ' # leader key
* # highlight current word
%s/old/new/gc # Rename variable in file with confirmation
f # Find after cursor
F # Find before cursor
zc # Close current fold
zo # Open current fold
za # Toggle current fold
zC # Close all folds in file
zO # Opens all folds in file
zA # Toggles all folds in file
zR # Opens all folds to 0
zd # Deletes fold at cursor
z# # Deletes all folds
z= # Spell suggestions
zg # Marks a word under the cursor as a good one
zw # Marks a word under the cursor as a wrong one
TSInstallInfo # List of installed language parsers
TSInstall language # Install language parser
TSUpdate # Update TreeSitter
<leader>tt # Toggle trouble
<alt>e # Asks where to put ending
bundle install --path vendor # Adds gems to vendor
ctags -R --exclude=.git --exclude=log * # Generates ctags
in insert mode:
ctrl+space
gd # moves to method definition
gD # moves to method declaration
gf # moves to file
gr # check references
K # documentation
:Files # find file
:GFiles # git ls-files
:BLines # lines in buffer (opened file)
:Ag # find inside file
iw # in word
ciw # Change inside word
ci" # Change inside "
da" # Delete around "
c7k # change 7 lines above
cit # change inside <tag>
ysiw] # surround with []
cs'" # change ' -> "
ds" # delete "
cst # chage surrounding tag
:Gitsigns diffthis
ma # marker under letter a. Capital letter for spanning across files
'a # go to line under marker a
`a # go to exact position of marker a
:marks # list of markers
:ls # list elements in buffer
:b file # back to file
g^] # list of matching definitions ctags
^x^f # complete for file names
"ya # copy to register a
"pa # paste from register a
:reg # list registers
Ctrl" # enter register mode
args `command which return files`
argdo %s/a/b/g | w # Each file in buffer substitute a to b and write file
tmux new -s session_name # New session
tmux -S /tmp/file_name new -d -s session_name # Save session to file
tmux -S /tmp/file_name attach # Load session from file
tmux a -t session_name # Attach to existing session
tmux ls # List all sessions
tmux kill-session -t session_name # Kill session
Ctrl-a d # Detach current client
Ctrl-a , # Rename the current window
prefix + I # Installs plugins
prefix + U # Updates plugins
prefix + alt + u # Installs/uninstalls plugins
:new<CR> # new session
s # list sessions
$ # name session
? # list shortcuts
c # new window
w # list windows
f # find window
, # name window
& # kill window
- # split pane horizontally.
| # split pane vertically.
o # swap panes
q # show pane numbers
x # kill pane
User Public IP if possible. Otherwise try: pinggy.io with TCP tunnel on port 22
Add user and setup permissions
sudo adduser remotepair
sudo usermod -a -G remotepair MAIN_USER
Add Public ssh keys to /home/remotepair/.ssh/authorized_keys
Change in /etc/sshd_config
Match User remotepair
PasswordAuthentication no
X11Forwarding no
ForceCommand tmux -S /tmp/pair attach
Restart ssh
sudo service ssh restart
Enable/Disable ssh connection
chmod 777 /tmp/pair
chmod 771 /tmp/pair