VimTricks

3.3K posts

VimTricks banner
VimTricks

VimTricks

@vim_tricks

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 Присоединился Mayıs 2017
123 Подписки54.6K Подписчики
VimTricks
VimTricks@vim_tricks·
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: bit.ly/39McpCp 📨 Subscribe for more: bit.ly/vimtricks
English
0
3
52
5.1K
VimTricks
VimTricks@vim_tricks·
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: bit.ly/3e19bvX 📨 Subscribe to the newsletter: bit.ly/vimtricks
English
1
5
67
4.9K
VimTricks
VimTricks@vim_tricks·
Did you know that Vim's built in netrw plugin lets you edit files remotely over SCP? 👉 Tutorial: bit.ly/2Hn2IPi 📨 Subscribe for weekly Vim tricks: bit.ly/vimtricks
English
0
1
18
3.5K
VimTricks
VimTricks@vim_tricks·
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: bit.ly/3o2Dff7 📨 Subscribe: bit.ly/vimtricks
VimTricks tweet media
English
1
11
100
4.9K
VimTricks
VimTricks@vim_tricks·
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: bit.ly/2T1pRJG Get weekly Vim tips: bit.ly/vimtricks
VimTricks tweet media
English
1
2
12
2.9K
VimTricks
VimTricks@vim_tricks·
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: bit.ly/2GXIwU6 📨 Get weekly Vim tips: bit.ly/vimtricks
English
1
8
34
3.5K
VimTricks
VimTricks@vim_tricks·
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: bit.ly/3dhJuqn ✉️ Free weekly tips: bit.ly/vimtricks
GIF
English
0
3
26
2.7K
VimTricks
VimTricks@vim_tricks·
Replace across multiple files in Vim, without any plugins: • :args path/* • :argdo %s/some/sub/g • :argdo update 👉 Read the tutorial: bit.ly/36vrTtP 📨 Get weekly Vim tips: bit.ly/vimtricks
English
0
5
57
3.3K
VimTricks
VimTricks@vim_tricks·
Scroll two splits simultaneously in Vim with :set scrollbind or toggle with :set scb! Useful for comparing two files. Read the tip: bit.ly/33h01rb Subscribe for free weekly Vim tricks: bit.ly/vimtricks
GIF
English
0
8
58
3.6K
VimTricks
VimTricks@vim_tricks·
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: bit.ly/3dsIjET 📨 Subscribe for more: bit.ly/vimtricks
English
0
2
15
2.9K
VimTricks
VimTricks@vim_tricks·
Use :%! to filter the entire buffer through an external command. Many great uses for this, such as using Unix text tools or linting. 👉 bit.ly/3CqE5sE 📨 Subscribe for more tips: bit.ly/vimtricks
GIF
English
1
10
45
3.3K
VimTricks
VimTricks@vim_tricks·
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: bit.ly/2Gq6p6u Subscribe for free Vim tips: bit.ly/vimtricks
English
0
12
81
4.6K
VimTricks
VimTricks@vim_tricks·
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: bit.ly/3onx4CM 📨 Subscribe for more: bit.ly/vimtricks
English
0
3
61
3.7K
VimTricks
VimTricks@vim_tricks·
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: bit.ly/3onx4CM 📨 Subscribe for more: bit.ly/vimtricks
English
0
1
27
2.4K
VimTricks
VimTricks@vim_tricks·
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: bit.ly/2GvpSCE 📨 Free weekly tips: bit.ly/vimtricks
GIF
English
0
5
28
2.5K
VimTricks
VimTricks@vim_tricks·
Did you know you can paste into Vim's command line with Ctrl-r and * ? 👉 Read the tip: bit.ly/3cDjbui 📨 Level up with our weekly VimTricks newsletter: bit.ly/vimtricks
GIF
English
0
7
44
2.3K
VimTricks
VimTricks@vim_tricks·
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: bit.ly/2EvNfuR 📨 Subscribe for weekly Vim tricks: bit.ly/vimtricks
GIF
English
0
7
41
2.4K
VimTricks
VimTricks@vim_tricks·
More accurately match patterns in Vim by using non-greedy matching: Instead of using .* use .\{-} 👉 Read the tip: bit.ly/340ORGc 📨 Get exclusive tips and tricks in our newsletter: bit.ly/vimtricks
English
0
5
43
2.6K