Tag: Vim / Neovim
-
OS detection in Vim
As somebody that jumps between multiple operating systems, it’s become necessary to have OS detection in my VIm configuration. This problem isn’t new to me, as I’ve already taken strides in my dotfiles and have previously talked about OS detection in shell scripts. OS detection in Vim Vim has a function that allow you to…
-
How to overwrite read-only files with vim
We can file this post into the category of “stuff I’ve known how to do for a long time, but I was shocked I hadn’t put out a post discussing it before”. If you use Vim or Neovim as much as I do, you end up touching a lot of…
-
Incrementing and decrementing numbers in Vim
I live on the command-line, and a huge chunk of that time is spent in Vim. Well, Neovim, actually. I do everything from writing code, to writing for my blog, as well as other prose that I have in the works. One thing that comes up pretty regularly, thanks to…
-
How to exit Vim
I’m sick and fucking tired of being asked if the reason that I use vim (currently using nvim) is because I can’t figure out how to exit. I get it, you saw some stupid shit on Stack Overflow and you think everybody that uses vim is incapable of knowing how…
-
Will Vim die with Bram Moolenaar?
I really, really really want to love nvim. Yet another go with it this past week and I’m still not convinced it’s ready for me. With that, I do agree that it’s the future of vim. Development still seems to be moving quickly and in the right direction, but as…
-
Set Vim background based on your terminal’s background color
I’ve been spending more time at the pool lately (sorry, not sorry) and I’ve found myself manually switching between a light and a dark gnome-terminal theme. This was all well and good, but my .vimrc includes set background=dark so regardless of which theme I’m using in the terminal, vim has…
-
How to tell if your shell is a subshell of Vim
If you’re like me, you use Vim. If you’re like me, you use :sh[ell]. If you’re like me, you forget that you used :sh and open Vim again. I’ve been getting better about it, but every once in a while I end up with 2 or 3 nested Vim processes…
-
Switching to Vim from Neovim
I’ve been a Vim user for the better part of the last 20 years. I’m also not blind to the fact that there are other editors out there. I’m usually the first person to download a copy of some new editor and/or IDE and give it a whirl, always running…
-
Stop over configuring Vim
Over the year, I’ve waxed and waned with the size of my .vimrc. In the early days, it was trim but so was my knowledge of Vim. Once I learned how to disable my arrow keys, I started to configure more and more. It wasn’t until I fully understood the…
-
Set Vim tab spacing based on the type of file
Now that my buddy Justin is back to using vim, he’s been flooding me with questions. Loljk, but he did ask about setting the tab spacing based on the type of file he was working with. Incidentally, this was something I had just improved in my dotfiles. Back before I…