Search and replace in multiple files using vim – (source Stack Overflow) It is as simple as Use: The first line sets auto-write mode, so when you switch between files, vim will write the file if it has changed. The second line does your global search and replace. Note that it doesn’t use wq! since…
Tag: vim
Senza categoria
Why Vim is better than VSCode.

di’ —delete inside the ‘single quotes’. da” — delete around the “double quotes”. dit — delete inside the html tags. ci[ — change inside the [square brackets]. From: Why Vim is better than VSCode. After Github was bought by Microsoft it… | by Sean | Feb, 2022 | Medium Of course Sean is right. Master,…
Documentations
5 lines I put in a blank .vimrc | Sword and Signals
TL;DR To make a default Vim installation more useful, type the following 5 lines into its .vimrc file: set hlsearch " highlight all search results set ignorecase " do case insensitive search set incsearch " show incremental search results as you type set number " display line number set noswapfile " disable swap file Source:…
Senza categoria
How do I paste from PuTTY into Vim 8.0?
How do I paste from PuTTY into Vim 8.0? Well, nice question, as I found it quite annoying that the usual right click on the mouse doesn’t work. In fact Open a web browser, copy / paste some text from a website (eg. GitHub) Use PuTTY 0.67 to SSH to a Linux VM (eg. Ubuntu…
Documentations
Vim lessons
Oldies but goldies. I found those in the Download directory at work. I downloaded them in 2006, 9 years ago. Of course they are still ripe and useful, as vi/vim is a wonderful, time-resistant tool