Skip to content

Instantly share code, notes, and snippets.

@flipjs
Last active June 23, 2017 20:03
Show Gist options
  • Save flipjs/4140233bec3055f5d641b71959b529e5 to your computer and use it in GitHub Desktop.
Save flipjs/4140233bec3055f5d641b71959b529e5 to your computer and use it in GitHub Desktop.
RipGrep to Vim
run
$ rg -l text_to_search | parallel -X --tty vim
Vim diff
use `colorscheme pablo`
Fix Terminal messy screen output
run:
$ reset
or
$ stty sane
TMux shortcuts
<c-a> c - new window
<c-a> #number - switch window by number
<c-a> v - split vertical
<c-a> b - split below
<c-a> [ - copy
<c-a> ] - paste
<c-a> x - close pane
<c-a> z - zoom in
Select text to copy:
LINUX: shift+mousing, then right-click to copy text
OSX: it is straightforward, can use cmd-c/cmd-v too
Terminal shortcuts
Ctrl + A: Move cursor to the beginning of the line
Ctrl + E: Move cursor to the end of the line
Ctrl + K: Delete from cursor to the end of the line
Alt + F: Move cursor one word forward
Alt + B: Move cursor one word backward
Alt + D: Delete next word
Alt + Delete: Delete previous word
Ctrl + W: Delete previous word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment