Posts tagged: vim

All posts with the tag "vim"

30 posts latest post 2026-06-11
Publishing rhythm
Jun 2026 | 1 posts

Notes for second vim-fundamentals course meetup

newline another Mahesh Subrajmanium Venkatachalam - Plugins | Installing a Theme Hunter Phillips - Quickfix | Offline Ordering with getqflist Andrea Wackerle - Search & Replace | Macros Matthew Fletcher - Registers | Advanced Motions Jump, Delete, & Select | Advanced Motions: Paste & Move Nicholas Payne - My First Vim Plugin | What Makes a Good Plugin Zev Averbach - Harpoon | Wrap up Plugin-manager # get a plugin manager unless you are going full lua, most people use vim-plug by the great junegunn https://github.com/junegunn/vim-plug Install pluggged # Install Plugins # Installing a Theme # install using plug set the theme Quickfix # sending things to the quickfix list quickfix commands Some remaps to consider # Offline Ordering with getqflist # Search & Replace # Walk through example. Macros # Macro Pressure
1 min read

python lsp setup

Setting up python with the native nvim>0.5 lsp was mr lsp-config # https://github.com/neovim/nvim-lspconfig pyls#190 # https://github.com/palantir/python-language-server/issues/190 mypy # Getting mypy working with lsp was tricky for me. I had some issues trying to run mypy in ci and pyright in my editor and I really wanted them to match.

Vim Wsl Clipboard

I’ve long used neovim from within windows wsl, and for far too long, I went without a proper way to get text out of it and into windows. wsl has access to cmd applications # wsl can access clip.exe. You can do some cool things with it, such as cat a file into the clipboard, sending output from a command to the clipboard, or set an autocmd group in vim to send yank to the windows clipboard. using clip.exe # Let’s say you want to send a teammate the tail of a log file over chat. You can tail the file into clip.exe. pipe streams of text into clip.exe make it a bit more natural # I recently made mine feel a bit more natural by aliasing it to clip. pop this in your ~/.bashrc or ~/.zshrc yanking to windows clipboard from vim # I use neovim as my daily text editor and its a pain to share code with a teammate over chat, stack overflow, into a gist, or whatever you need. The following snippet has been quite useful and flawless for me. add this to your ~/.vimrc or your ~/.config/nvim/init.vim Ws…

Vim Replace Visual Star

Replacing text based on whats in the current search register is a quite handy tool that I use often. I believe I picked this tip up from Nick Janetakis, check out his YouTube channel for some amazing vim tips. https://www.youtube.com/watch?v=fP_ckZ30gbs If there is one thing that I Like most about vim it’s the ability to hack on it and make it work well for you. Replacing text in vim # Vim can often be a bit verbose, but that’s ok because we can hack on it, and make our own shortcuts and keybindings. For instance, finding and replacing text requires using a command at the vim command-line. Replacing foo with bar looks like this, the final g means all of the foos, not just the first one on the line. making it better # I have a keybinding in my that will allow me to search for a pattern with the usual character, page through them as normal with and, but when I press it will populate the replace command for me so that all I need to do is type out the new text. Note on the # In command mod…
2 min read

Save Vim Macro

If you are like me, you have created a macro or two that is pure glory, and you forget how you made it after a day or so, or you immediately want to store it away as a custom keybinding. As with most things with vim, it’s easy to do once you understand it. Creating a Macro # One of the earliest things we all learn to do in vim is to create macros, custom sets of functionality stored in a register that can be replayed later. To create a macro, get into normal mode, then type followed by a letter that you want to store the macro under. Note: a common throw-away macro register is q because it’s easy to hit qq from normal mode to start recording. Replaying a Macro # Macros can be replayed using followed by the letter that you stored the macro under. Registers # Registers are nothing more than a single character key mapping to a value of some text. As you,, or create macros in vim, it automatically stores text into these registers. When you hit paste it’s simply pasting in the default regis…
3 min read
Live Substitution In Neovim

Live Substitution In Neovim

Replacing text in vim can be quite frustrating especially since it doesn’t have live feedback to what is changing. Today I was watching Josh Branchaud’s Vim-Unalphabet series on Youtuve and realized that his vim was doing this and I had to have it. https://twitter.com/_WaylonWalker/status/1346081617199198210 How to do it # I had to do a bit of searching and found a great post from vimcasts that shows exactly how to get the live search and replace highlighting using:h inccommand # Add this to your config # I believe that this is a neovim only feature, add it into your file. You can see it in my dotfiles as well. See it in Action # example live substitution The Video that inspired this # Check out Josh Branchaud’s great series on the Vim-Unalphabet. https://www.youtube.com/watch?v=5jMiYtXz2QA

Keep Location List Closed

Vim’s (neovim in my case) location list can provide some very useful information while developing. Mine gives me information about linting and type checking errors with fairly little config. Generally, it sits nicely at the bottom of the screen and barely affects me. Other times, especially while zoomed way in during a presentation, it just gets in the way. Location List eating up the screen while I am zoomed in and trying to live code Toggling the location list # Through some google search I found the culprit was syntastic. It has an feature. We can turn it off by setting. Keybindings # I want to keep the location list open automatically most of the time, but when I don’t want it to keep opening it’s generally detrimental. Trying to live code while the location list keeps taking up the whole screen is not cool. First, create a function that will toggle both the location list and syntactic together. This binding will allow me to use from normal mode to toggle the location list. I am st…
2 min read

Vim Notes

vim notes nvim lua # norcalli/neovim-plugin nvim lsp # python-lsp/python-lsp-server Using c to change text # I have gone quite awhile without using and instead using. The reason that I started using is because it automatically places you into insert mode. This not only saves me one keystroke for commands such as is now, but it also works with the repeat command!!! This is huge. When refactoring a document I had been creating a macro to change one word to another, using instead of allows the use of the rather than needing to create a macro. Case for vim # Sublime/VSCode cannot edit a macro register register quickfix gF autocomplete # repeats previously typed text z-commands # Fold none: reset ‘foldenable’. All folds will be open.
2 min read