vim_tricks Profile Banner
VimTricks Profile
VimTricks

@vim_tricks

Followers
55K
Following
671
Statuses
3K

Email newsletter sending bite-sized Vim tips, tricks, plugins, and recipes https://t.co/zkibO0Tj9A

New York, NY, US
Joined May 2017
Don't wanna be here? Send us removal request.
@vim_tricks
VimTricks
2 years
We're on Mastodon now:
4
9
89
@vim_tricks
VimTricks
5 hours
Did you know Vim has built-in file templating called skeletons? Great for boilerplate HTML, file headers, README templates and more. ๐Ÿ‘‰ Tutorial on the blog: ๐Ÿ“จ Get free weekly Vim tips:
0
1
13
@vim_tricks
VimTricks
19 hours
Use Abolish to preserve the original case during substitution. Just use S instead of s: :%S/pattern/replacement/g ๐Ÿ‘‰ Read the tip: ๐Ÿ“จ Subscribe for weekly #vim tricks:
0
3
25
@vim_tricks
VimTricks
1 day
Using Git with Vim? Use Unimpaired to jump to conflicts: โ€ข ]n next conflict marker โ€ข [n previous โ€ข d]n delete to next ๐Ÿ‘‰ Read our tutorial: ๐Ÿ“จ Get weekly #vim tricks: ๐ŸŽ“ Learn to use Git in Vim:
1
5
30
@vim_tricks
VimTricks
2 days
Did you know you can access non-printable characters in Vim with ctrl-v? It also works for inputting odd unicode characters that might not be on your keyboard: ยข ยฃ ยฉ ยฎ ๐Ÿ‘‰ Read our tutorial: ๐Ÿ“จ Sign up for weekly VimTricks:
0
1
14
@vim_tricks
VimTricks
2 days
Copy from the quickfix list to the args list ๐Ÿ‘‰ Why? How about opening all the results of a search at once in splits: :Ggrep something :Qargs :sall ...profit ๐Ÿ“จ Subscribe for weekly #vim tips:
1
5
31
@vim_tricks
VimTricks
3 days
Move the cursor around screen: โ€ข H - Move the cursor to the first line on the screen โ€ข M - Middle line โ€ข L - Last line ๐Ÿ‘‰ More navigation tips: ๐Ÿ“จ Subscribe for weekly Vim tips:
0
1
39
@vim_tricks
VimTricks
4 days
Toggle any Vim boolean option by adding ! to the end: :set number! :set paste! :set cuc! Repeat the last command with @: to toggle back. ๐Ÿ‘‰ Read more: ๐Ÿ“จ Subscribe to our tips newsletter:
0
5
41
@vim_tricks
VimTricks
5 days
Quickly add empty lines above and below with Unimpaired ๐Ÿ‘‰ [ + space - Add line above ] + space - Below According to our stats, this is the most hated VimTrick we've published. ๐Ÿคทโ€โ™‚๏ธ ๐Ÿ“จ Subscribe for (better) #vim tips:
3
11
92
@vim_tricks
VimTricks
5 days
Are you making judicious use of ctrl-o and ctrl-i in Vim? It can really speed up your movements. ๐Ÿ‘‰ Read our overview of how to use jumps: ๐Ÿ“จ Get #vim tips every Monday and Thursday:
0
5
34
@vim_tricks
VimTricks
6 days
So you resized your terminal and now your splits are all whacked? Equalize your splits in Vim with ctrl-w = ๐Ÿ‘‰ Read today's VimTrick: ๐Ÿ“จ Signup for more #vim tips:
0
3
13
@vim_tricks
VimTricks
6 days
Use Vim's expression register to perform calculations and insert the result. Press ctrl-r = from insert mode, type some arithmetic and press enter. ๐Ÿ‘‰ Read the tip: ๐Ÿ“จ Subscribe for more:
1
1
26
@vim_tricks
VimTricks
7 days
Use ctrl-k + 2 letters to add special characters. Examples: โ€ข oo โ€ข bullet โ€ข Db โ—† diamond bullet โ€ข Pd ยฃ pound โ€ข Eu โ‚ฌ euro โ€ข -N โ€“ en dash โ€ข -M โ€” em ๐Ÿ‘‰ Read the tip: ๐Ÿ“จ Subscribe for more:
1
5
55
@vim_tricks
VimTricks
7 days
Use :Cfind from @tpope's Eunuch to get results from the find command into the quickfix list. ๐Ÿ‘‰ The blog post has a detailed recipe and use case: ๐Ÿ“จ Subscribe for weekly Vim tips:
0
1
10
@vim_tricks
VimTricks
8 days
Use ex commands to copy and paste lines without moving around: โ€ข :28t. Copy line 28 and paste it below โ€ข :t20 Copy current line to below line 20 ๐Ÿ‘‰ Read the tutorial: ๐Ÿ“จ Free Vim tips:
1
2
41
@vim_tricks
VimTricks
8 days
Try this Vim mapping to add persistent line highlights. Great for screen sharing! ๐Ÿ‘‰ Read the tip: ๐Ÿ“จ Subscribe for more tips:
1
1
36
@vim_tricks
VimTricks
9 days
Any Ruby developers out there? Try the Blockle plugin to enable easy swapping between curly braces and do/end. ๐Ÿ‘‰ Read the tip: ๐Ÿ“จ Subscribe for more:
Tweet media one
0
0
8
@vim_tricks
VimTricks
9 days
Vim includes Markdown syntax highlighting support out of the box. But if you want to highlight syntax of embedded code blocks in Markdown, you need to enable it in your .vimrc. ๐Ÿ‘‰ Here's how: ๐Ÿ“จ Subscribe for more:
0
1
19
@vim_tricks
VimTricks
10 days
Did you know you can access man pages from Vim? โ€ข leader K - Press with the cursor on any word to open the man page for that command โ€ข :Man command - Open that command's man page ๐Ÿ‘‰ Use cases on the blog: ๐Ÿ“จ More Vim tips:
0
10
59
@vim_tricks
VimTricks
11 days
Use netrw to create new files and directories in Vim: โ€ข % - Create a new file โ€ข d - Create a new directory ๐Ÿ‘‰ Read the full tip: ๐Ÿ“จ Subscribe for more Vim tricks:
0
0
20
@vim_tricks
VimTricks
12 days
Use gx to open the URL under the cursor in your browser. If yours is broken, try this patch to work around a known Vim bug: ๐Ÿž ๐Ÿ“จ Subscribe to our newsletter for more Vim tips:
1
10
45