vim_tricks Profile Banner
VimTricks Profile
VimTricks

@vim_tricks

Followers
55K
Following
657
Media
3K
Statuses
3K

Email newsletter sending bite-sized Vim tips, tricks, plugins, and recipes https://t.co/zkibO0Tj9A Find us now on Bluesky: https://t.co/GS0uYHWbAV

New York, NY, US
Joined May 2017
Don't wanna be here? Send us removal request.
@vim_tricks
VimTricks
8 months
We have also ceased posting on @X for the same reason and hope to migrate over to Bluesky soon: https://t.co/VNvOoKK3ni
1
3
16
@vim_tricks
VimTricks
9 months
The :reg command in Vim will show you the contents of your registers. The Peekaboo plugin shows a sidebar with the same automatically. πŸ‘‰ Read the tip: https://t.co/OgQp9rBjnb πŸ“¨ Subscribe for more: https://t.co/iNUnlLcO9W
0
3
49
@vim_tricks
VimTricks
9 months
Remove lines matching a pattern with the g command: β€’ :g/pattern/d - Remove lines matching pattern β€’ :g!/pattern/d - Remove lines that do NOT match πŸ‘‰ Read the tutorial: https://t.co/OWLlbB5u8t πŸ“¨ Subscribe to the newsletter: https://t.co/iNUnlLcO9W
1
6
67
@vim_tricks
VimTricks
9 months
Did you know that Vim's built in netrw plugin lets you edit files remotely over SCP? πŸ‘‰ Tutorial: https://t.co/jHgy9PjN92 πŸ“¨ Subscribe for weekly Vim tricks: https://t.co/iNUnlLcO9W
0
1
17
@vim_tricks
VimTricks
9 months
Use text objects to make efficient changes: β€’ da" - Delete Around quotes β€’ di] - Delete Inside brackets β€’ ci{ - Change Inside braces β€’ dap - Delete Around Paragraph β€’ vaw - Visually select Around Word πŸ‘‰ Read: https://t.co/YeM9x6TU5Z πŸ“¨ Subscribe: https://t.co/iNUnlLcO9W
1
11
102
@vim_tricks
VimTricks
9 months
Do you Vim 8's package manager or third-party options? Why? We wrote up an overview of 4 options in today's edition of VimTricks: β€’ Vim 8 native β€’ Pathogen β€’ Vim-Plug β€’ Vundle Read the post: https://t.co/kUFwFxmJUg Get weekly Vim tips: https://t.co/iNUnlLcO9W
1
2
12
@vim_tricks
VimTricks
9 months
Ctrl-a and Ctrl-x will increment or decrement the next number on the line. But also: β€’ Use speeddating.vim to increment dates β€’ Try visual-increment.vim to increment a whole list πŸ‘‰ Read the tip: https://t.co/rq7fmXomBz πŸ“¨ Get weekly Vim tips: https://t.co/iNUnlLcO9W
1
8
36
@vim_tricks
VimTricks
9 months
You can use ddp to move the current line down in Vim. But I use mappings for Ctrl-j and Ctrl-k to move one or more lines up or down quickly... πŸ‘‰ Read the tip: https://t.co/TxoHYciL9s βœ‰οΈ Free weekly tips: https://t.co/iNUnlLcO9W
0
3
26
@vim_tricks
VimTricks
9 months
Replace across multiple files in Vim, without any plugins: β€’ :args path/* β€’ :argdo %s/some/sub/g β€’ :argdo update πŸ‘‰ Read the tutorial: https://t.co/4hTjbd4t1A πŸ“¨ Get weekly Vim tips: https://t.co/iNUnlLcO9W
0
5
56
@vim_tricks
VimTricks
9 months
Scroll two splits simultaneously in Vim with :set scrollbind or toggle with :set scb! Useful for comparing two files. Read the tip: https://t.co/1XoYiApJ9y Subscribe for free weekly Vim tricks: https://t.co/iNUnlLcO9W
0
8
57
@vim_tricks
VimTricks
9 months
Enable mouse support in Vim: set mouse=a Our blog post has a list of reasons. But the most useful, even for keyboard warriors, is to resize splits with a quick drag. πŸ‘‰ Read the tip: https://t.co/Y4yYXsBdVn πŸ“¨ Subscribe for more: https://t.co/iNUnlLcO9W
0
2
15
@vim_tricks
VimTricks
10 months
Use :%! to filter the entire buffer through an external command. Many great uses for this, such as using Unix text tools or linting. πŸ‘‰ https://t.co/ipNsNLRweZ πŸ“¨ Subscribe for more tips: https://t.co/iNUnlLcO9W
1
10
46
@vim_tricks
VimTricks
10 months
Stay in search mode in Vim by using Ctrl-g and Ctrl-t after searching for a pattern, instead of pressing enter. Refine your pattern faster this way. Read the tip: https://t.co/l0OCliLNB5 Subscribe for free Vim tips: https://t.co/iNUnlLcO9W
0
12
81
@vim_tricks
VimTricks
10 months
3 ways to delete in insert mode - build edits you can repeat with dot: β€’ ctrl-h – Delete previous char β€’ ctrl-w – Previous word β€’ ctrl-u – Entire line (except indent) πŸ‘‰ Read the tip: https://t.co/hd6YmN0157 πŸ“¨ Subscribe for more: https://t.co/iNUnlLcO9W
0
3
61
@vim_tricks
VimTricks
10 months
Indent or backdent the current line while in insert mode -- helps to make more repeatable edits. β€’ ctrl-t - Indent the current line β€’ ctrl-d - Backdent the current line πŸ‘‰ Read the tip: https://t.co/hd6YmN0157 πŸ“¨ Subscribe for more: https://t.co/iNUnlLcO9W
0
1
27
@vim_tricks
VimTricks
10 months
Open a file directly to a pattern in Vim: vim some_file.name +/your_pattern Why? The pattern in your terminal history allows repetition. Useful for .env or config files. πŸ‘‰Read the tip: https://t.co/fx4gso5qtx πŸ“¨ Free weekly tips: https://t.co/iNUnlLcO9W
0
5
28
@vim_tricks
VimTricks
10 months
Did you know you can paste into Vim's command line with Ctrl-r and * ? πŸ‘‰ Read the tip: https://t.co/WEf6ACaAyy πŸ“¨ Level up with our weekly VimTricks newsletter: https://t.co/iNUnlLcO9W
0
7
44
@vim_tricks
VimTricks
10 months
Lost inside your parenthesis? Tangled up in a web of Lisp? Vim can highlight the other side of your current bracket with :set showmatch πŸ‘‰ Full write-up: https://t.co/C3lQZ71LDo πŸ“¨ Subscribe for weekly Vim tricks: https://t.co/iNUnlLcO9W
0
7
41
@vim_tricks
VimTricks
10 months
More accurately match patterns in Vim by using non-greedy matching: Instead of using .* use .\{-} πŸ‘‰ Read the tip: https://t.co/peiVyI813j πŸ“¨ Get exclusive tips and tricks in our newsletter: https://t.co/iNUnlLcO9W
0
5
43