This post is a bit different from most other posts about vim in this space; it is longer and does not show one specific vim command, but instead describes how a few simple commands are strung together to shorten a very tedious and error prone task to just a couple of keystrokes. Recently, at the […]
Kurt Keller's Blog
tech notes and more
Category: vim
Most of my machines are headless, they do not have a monitor attached. Vim usually is installed on all of them, gvim is not. But occasionally I prefer to edit certain files in gvim rather than vim or edit the same file on different machines in one editor instance.
Ever needed to write the current filename in a text (or a vim command) and got it wrong several times because it was so complicated? Don’t despair, it’s easy.
Sometimes I see people typing the same set of commands in vim or search strings over and over. This is not only cumbersome, but also error prone. Probably they do not know that vim does have
Searching in vim with / ? n N should be well known to all users. How searches behave can be controlled by several options.