-
nvim delete current file
This one is one that I've been using quite often, I did't have a hotkey for it, I just used the shell command. When you type from normal mode it will automatically put you in command mode with pre-filled, then you just type and to auto-complete the current file name, and to execute the command. Making it better The one quirk that I don't like about this is that the buffer remains open after deleting, and sometimes I forget to close it and end up re-creating it by mistake when running
-
my nvim spellcheck setup
I've gone too long without a proper spellcheck setup in nvim. I know it's there, I just don't use it, I don't have the right keybinds, like I do with [[vim-date]], to make it work, and its clunky. Default keybinds z= show spell suggestions zg add word to dictionary zw remove word from dictionary ]s jump to next misspelled word [s jump to previous misspelled word I really struggle with bracketed keybinds, they don't flow for me. I have to shift into it and hit two keys, you cant just pop throug
-
fixed long standing nvim startup error
Here's the diff, this is it. The error On first install of my dotfiles I'm presenting with this flashbang of an error filling the screen with red background. Its kinda hard to read, I'm not deep into lua and reading their tracebacks. It pops up in this pager that if I scroll too far it quits and the error is gone before I know what it is or how it got there. image For the longest time it just felt like it randomly showed up without much warning. I sent ai at the issue I tried some chatgpt and
-
testing nvim installs
Testing fresh nvim installs can be a pain, and hard to di without borking your known good install. I've been using to run a test nvim in a sandbox that wont bork my main install. This usually runs for me in under a minute, can be down under 15s if I remove some of the TreeSitter installs at the end. This beats a full docker build of my full devtainer to test out nvim packaging woes. I've started to use this as a recipe to run before deploying a new version of my dotfiles. So far its pairi
-
vim date
When I want to put a date in a document like a blog post from vim I use !!date from insert mode. Note that entering from normal mode puts you in command mode with filled out. This runs a shell command, i.e. for this example. It outputs the following Fri Jan 31 08:46:11 PM CST 2025 You can also pass in a date such as tommorrow by pasdding in the -d . It outputs the following Sat Feb 1 08:53:20 PM CST 2025 codeium just taught me this one with autocomplete This outputs the following 2025-
-
setting up nvim-manager starship prompt
I built out a tool for myself to manage my nvim configuration, and I wanted to quickly see which one I am running in my starship prompt. Here's the config I ended up with. It warns if the environment variable is not set, and it shows which nvim I am using if it is set.
-
nvim-manager
I recently built a cli application as a nearly-one-shot-app called nvim-manager . It manages your nvim dotfiles install. screenshot-2025-01-31T21-21-40-707Z.png {.more-cinematic} Why {.chat-left} Don't we have stow? {.chat-right} Ya, thats not enough. {.chat-left} Why not?? {.chat-right} Inevitably shit goes sideways and I break my vim install. How is nvim manager any better nvim-manager allows you to install pinned versions of your dotfiles, your friends dotfiles, and distros in ~/.config. Thi
-
Vim-gq
Vim has a handy feature to format text with . You can use it in visual mode, give it a motion, or if you give it it will format the current line. I use this quite often while writing in markdown, I do not use softwraps in vim, so quickly formats my current line into a paragraph. Once I have done this for a single line one time I typically switch to the motion for around paragraph to format the whole paragraph and not just the current line. before formatting vim-gq-20240805122634078.we
-
Setup a yaml schema | yamlls for a silky smooth se...
I've gone far too long without a good setup for editing yaml files, I am missing out on autocomplete and proper diagnostics. This ends today as I setup yaml-language-server in neovim. https://youtu.be/xo4HrFoKF4c {.youtube-embed} The video for this one is part of a challenge-playlist I put out for myself to constantly improve my dotfiles for all of December. init.vim I have my setup to only source other modules, if you want everything in a single config, feel free to do as you wish. I broke mi
-
How linux users install a text editor
In honor of the neovim 0.6.0 release, I decided to do a funny skit installing neovim, and fix up my install script in the process as part of my challenge to fix up my dotfiles. I ran into one snag where I was not updating the repo that I cloned. I moved it to the directory I now keep third-party git repos and set it to update with ansible. https://youtu.be/64oKLphhBuo The thing that took me the longest to realize was.... I had a path issue pointing me to an old install of the appimage over the