Did you know that this fuzzy finder - fzf, can do a lot more than you thought? Oh yeah, the fuzzy search is just the tip of the iceberg here. It is like wine; the more you leave it on your computer, the more flavor and sweetness it accumulates from that command-line. Let’s dive in and find out how you can increase your productivity with fzf inside Vim.
“Thank you! But our princess is in another buffer!”
Command (line? I’ve never called it that) mode is indeed where much of Vim’s power lies. In this post on Thoughtbot’s blog, German Velasco explains search and replace, command repetition, ranges, and more.
Vimpeccable is a plugin for Neovim that allows you to easily replace your vimscript-based
.vimrcwith a lua-based one instead. Vimpeccable adds to the existing Neovim lua API by adding new lua commands to easily map keys directly to lua.
All of the power and customization of Vim without the inscrutable and othewise compulsory Vimscript? Sign me up! (metaphorically… I’m far too lazy to customize Vim anymore than I already have.)
If you use Vimium (a Chrome extension which provides keyboard shortcuts for navigation and control in the spirit of the Vim editor) and you’re on macOS, Vimac is a no-brainer. You can scroll windows with
HJKL keys, perform clicks using hint letters, and even perform right (and double) clicks with your keyboard.
Learn the good parts of Vim.
This book from Igor Irianto is in progress with 11 of 20 chapters are ready to read as of right now.
Nikola Đuza makes a compelling case for the powerful text editor that developers love (or love to hate):
What Vim is excellent at is navigating, making some changes, and repeating the process. The process most call editing (not to be confused with writing). Most developers tend to overlook this fact, but this is one of the strong selling points of Vim. Developers are more prone to reading code, jumping from file to file, making small incisions in the code, and writing code all the time.
A nice history of Vim and what it got right:
To better understand why and how Vim got (and is) so popular, it is best to look into the roots of how it all started. Before
vim, there was
ed. What are all these two or three letter words, and what is the story behind it? Let us dive in and figure out.
With VimWiki, you can organize notes and ideas, manage to-do lists, write documentation, maintain a diary, and more. Everything is exportable to HTML.
If you’re setting out to win friends and influence people with your
vim skills, you might as well do it in 3D…
Yaron Wittenstein recaps the editor holy wars then tells his personal journey with the two editors and how he found a happy place somewhere in-between:
emacs has a very popular vim emulation named evil (branded as The extensible vi layer for Emacs). I was skeptical at first but gave it a try, and surprisingly things went smooth.
Vim-clap is different than previous finders because it uses the new
floating_win (NeoVim) and
popup (Vim) interface. File lookup and switching have long been what keep me out of Vim as my daily driver (clunky UIs, slow results). Nothing beats Sublime Text in this category, in my opinion.
But this looks pretty awesome. I might have to give this a test drive and see if it wins me back.
This “Conquer[er] of Completion” is an intellisense engine for Vim 8 and Neovim which supports extension features of VS Code. I haven’t tried it yet, but the folks in our #vimparty Slack channel are pretty in to it.
Chris Thorn writing for Thoughtbot:
Lately, I’ve noticed that opening Markdown files in Vim is slow. I don’t know exactly how slow, but slow enough that I notice a pause after opening the file before I can edit it. I’m not sure why or when it started, but it’s painful enough that I want to track down and alleviate it.
I, too, have felt this pain, which is one of the reasons I no longer use Vim as my full-time coding editor. I still use it enough for its sluggishness to bug me, but not quite enough to go chasing down why it’s sluggish. This article might change my calculus on that decision.
Clearly it takes years to truly master Vim, but it takes just 9 minutes, or less depending on the speed you read at, to hear someone else’s journey with Vim. Omer Hamerman shared the “why” and “how” of Vim — plus the recipe and resources he used to learn Vim.
How did I do it? After a few brutal fights, having my fallback IDE to run back to crying with the tail between my legs, I made a decision. Here’s how I did it:
- Got a nice small notebook I could carry around
- I bought the awesome Practical Vim by Drew Neil both in hardcover and for my iPad to read on the move
- Every night before going to bed, I read one tip — the book is very intelligently built like that for easy, slow studying…
I’ve been using Vim for eight years and am still discovering new things. This is usually seen as a Good Thing About Vim. In my head, though, it’s a failing of discoverability: I keep discovering new things because Vim makes it so hard to know what’s available.
Vim definitely has a discoverability problem, which is why posts like this one are so valuable and get shared around by people like us.
Notational Velocity is a note-taking app where searching for a note and creating one are the same operation. You search for a query, and if no note matches, it creates a new note with that query as the title.
Nick Janetakis has been using Vim for just over a month, but he’s gotten up to speed pretty quickly and is ready to help you do the same:
I think it’s worth writing posts like this while you’re still a semi-beginner because once you’ve been using something for a really long time, it’s easy to forget the details of what helped you out early on.
SpaceVim is a community-driven modular Vim distribution. It manages collections of plugins in layers, which help to collect related packages together to provide IDE-like features.
This is not your typical
As an avid vim + tmux user,
<prefix>-z is an essential tmux command to zoom the current pane for the times I want to see my editor or command output at its maximum size. The vim-zoom plugin brings this same concept directly into vim by adding a
<C-W>m mapping that will zoom the current split to be full screen. Triggering the mapping again brings back the original pane layout, making this an effective tool when needing to focus on a specific split when necessary without losing your splits layout!
Vim is the editor that’s always there for you… Literally! It’s probably on your machine right now, and it’s one of the most popular in the world. Learn more about it with 24 high quality articles dispersed throughout the month of December.
Vim in your browser! Compiled from the C code and emscripten and binaryen
Matthias Endler shares his Vim experience by looking back after using the venerable text editor for 10 years. Would he go back and learn it all over again?
On one side, I would say no. There’s a steep learning curve in Vim and seeing all those modern IDEs become better at understanding the user’s intent, editing text became way easier and faster in general.
On the other side, Vim is the fastest way for me to write down my thoughts and code. As a bonus, it runs on every machine and might well be around in decades to come. In contrast, I don’t know if the IntelliJ shortcuts will be relevant in ten years (note: if you read this in the future and ask yourself “What is IntelliJ?”, the answer might be no).
Definitely click through to read his takeways, too. Oh, and it’s worth mentioning that the JS Party panel went deep on Vim (by accident?) for the next episode.
Jamal Moon writes in the readme:
Vim is a great tool to write and edit code, but many people, including me, struggled with the steep learning curve. I did not find a fun, free way to learn about the vim commands in-depth, and thus, PacVim was born. Inspired by the classic, PacMan, PacVim is a game that’ll give anyone plenty of practice with the vim commands while being a ton of fun to play.
Download and build the game with macOS and Linux.
This little gem of a project is 7 years old now, but it’s too cool not to share:
When the pedal is pressed down, the pedal types “i” causing VIM to go into Insert Mode. When released, it types
and you are back in Normal Mode.
Hacker to the heart? 💯