In vi/vim, use % to find the matching bracket over the cursor.

#ViTips #VimTips #Vim

Stop editing at 10% of Vim's power. Master registers, :norm, fuzzy completion, linematch diff, and 16 more Vim tips and tricks. Tested on latest Vim 9.2.

Full guide here: https://ostechnix.com/vim-tricks/

#Vim #Vimtips #Vimtricks #Editor #Opensource #Linux

20 Vim Tricks That Will Change How You Edit - OSTechNix

Stop editing at 10% of Vim's power. Master registers, :norm, fuzzy completion, linematch diff, and 16 more Vim tricks. Tested on Vim 9.2.

OSTechNix

Press } to move to the next blank line.

Press { to move to the previous blank line.

#vimtips #vim #neovim

#VimTips I had to look for again to remove duplicate lines in my visual selection :

:sort u

The `u` makes it [u]nique 😉 It helped me…

#Vim #NeoVim

How To Display Undo And Redo Timestamps In Vim Status Bar Using vim-airline #vim #texteditor #vimtips #vimairline #linux #opensource
https://ostechnix.com/display-undo-redo-timestamps-vim-airline/
Ooh, vim actually makes a way better manpager than whatever else usually shows the man stuff, it even works with links and everything :D so ctrl+] and it also rewrites the q shortcut to just quit, it's really nice.

```
export MANPAGER='nvim +Man!'
```

#vim #vimtips #til
Oh, look! Another ✨exciting✨ #Neovim #cheatsheet for all two people still using #Vim. Because clearly, the biggest problem with Vim is *remembering the keys*, not *escaping the editor*. 🔑💥👨‍💻
https://nvim-cheatsheet.vercel.app/ #Developer #Community #VimTips #HackerNews #ngated
Neovim Cheatsheet – Search, Save & Customize Vim Commands

Explore essential Neovim and Vim commands, remaps, plugin commands, and create a personalized cheatsheet to boost text editing efficiency.

TIL about `<C-a>` and `<C-x>` in #vim for adding or subtracting.
(`:h ctrl-a` , `:h ctrl-x` )

Ctrl-a will add [count] to a number or alphabetic character at or after the cursor.
And Ctrl-x will do subtraction in the same way.

For example let's say I need to increment this 1 to be a 2.

```
replicas: 1
```

Normally I would type `f1` followed by `r2`
Or maybe even just `A` <backspace> `2`

But we can do better.

In this particular scenario I need only be on that line and do `<C-a>`
Since `<C-a>` will look ahead to find a digit on the current line and act upon it. Which means we can do this from the start of the line and it will turn into:

```
replicas: 2
```

And if I want to change it back to `1` I can use `<C-x>`

These two commands will even take a `[count]`. This means that if the current value is `replicas: 1` we can do `10<C-a>` and it will now say `replicas: 11`

#vim #vimtips #VimTip #TIL #vi

to copy text from your vim clipboard to your local machine clipboard, try "+y after selecting the text with visual. #vim #vimtips

📚 ¿Conoces las diferentes maneras de #guardar y #salir de #VIM? 🤔

¿Conoces alguna otra? ¡Déjala en los comentarios! 👇

#VimTips #vim #editor #linux #Ciberseguridad #seguridad #informatica #hacking #etico #MisterWh1t3