forked from holman/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tips.txt
45 lines (45 loc) · 2.21 KB
/
tips.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
,jt will prettify JSON in the current buffer
F8 shows and hides the tag bar
Try using rg instead of ag for faster search
Try using fd instead of find for faster search
Use C-f to jump to functions defined in the current buffer
Start a search with g/ to stay in the current position
Use gl and gh to swap words either right or left
w!! will write the current buffer using sudo
gy and gp will copy paste from the clipboard
wd will give the package name corresponding to a binary
vman opens man pages in vim with syntax highlighting
pcd will change to the directory of an installed Python package
:A will switch between .c and .h files
:AnsiEsc enables intrepretation of ANSI escape codes
C-e will autocomplete HTML using Emmet, e.g. html:5
gf in a Gemfile will go to the gem directory
Fugitive provides git commands within vim, prefixed with :G
cs)] will change the style of brackets surrounding the current text
ysiw<em> will wrap the current word in an <em> tag
,ww will mark a window and then entering it again swaps the two
xsv is a useful CLI utility for dealing with CSV files
hyperfine can be used to benchmark shell commands
pxl displays images in the terminal
wuzz is an interactive HTTP client
pup makes it easy to filter HTML
tag wraps ag or rg to enable quick jumps into an editor
tokei enables fast counting of lines of source code
fkill interactively searches for processes to kill
glip= will align text in the current paragraph around the = sign
1gLip, aligns everything after the first , in a separate column
sbt eclipse will generate an eclipse project file
sbt dependencyTree shows all dependencies of the current project
sbt scalastyle checks the style of Scala projects
sbt dependencyUpdates shows outdated dependencies
hr creates a line separator
piping to gron flattens JSON so it can be grepped, ungron reverses it
Esc Esc adds sudo to the previous command
the se text object in vim represents LaTeX environments
tse toggles starred environments for LaTeX in vim
]] in vim closes LaTeX environments
cargo deb builds a Debian package from a crate
cargo info shows information on crates
cargo outdated shows which crates have pending updates
\cs will bring up synonyms for the current word
C-v/C-x in fzf in vim will open a new (vertical) split