Posts tagged: vim

All posts with the tag "vim"

Today I discovered vim-speeddating by tpope. I'm sure I've seen years ago but it did not click for my workflow until ...

vim

Vim is a command that runs what you call without autocommands on. This is typically used when you have some commands ...

vim

fixed long standing nvim startup error

Here’s the diff, this is it.

local M = {} M.setup = require("waylonwalker.setup") M.settings = require("waylonwalker.settings") + M.lazy = require("waylonwalker.lazy") M.options = require("waylonwalker.options") M.globals = require("waylonwalker.globals") M.keymap = require("waylonwalker.keymap") - M.lazy = require("waylonwalker.lazy") M.autocmds = require("waylonwalker.autocmds") M.util = require("waylonwalker.util") M.plugins = require("waylonwalker.plugins") M.snippets = require("waylonwalker.snippets") return M

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.

For the longest time it just felt like it randomly showed up without much warning.

...

2 min read

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 f...

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

nvim-manager allows you to install pinned versions of your dotfiles, your friends dotfiles, and distros in ~/.config. This allows you to have stable versions that will not break installed while you change things.

...

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 w...

Refactoring one line links into wikilinks

Previously I had setup a feature of my website to expand one line links into a card. This was not a standard, even to the point that some formatters wrap the links with , thus breaking my custom plugin. Moving to the wikilink standard will allow my markdown posts to work accross more site builders without custom integrations.

Expand One Line Links

Wikilinks are standard to a lot of wikis written in markdown.

...

2 min read
vim

So after months of fighting with gf not going to template files, I finally decided to put in some effort to make it w...

vim

extending vim with shell commands

Vimconf 2022

Extending vim does not need to be complicated and can be done using cli tools that you might already be comfortable with. Examples, setting up codeformatters with autocmds, using lf/ranger as a tui file manager, generating new files using a template framework like cookiecutter/copier/yeoman, using ag to populate your quickfix.

vimconf!!<esc>!!figlet

formatters #

local settings = require'waylonwalker.settings' M.waylonwalker_augroup = augroup('waylonwalker', { clear = true }) M.format_python = function() if settings.auto_format.python then vim.cmd('silent execute "%!tidy-imports --black --quiet --replace-star-imports --replace --add-missing --remove-unused " . bufname("%")') vim.cmd('silent execute "%!isort " . bufname("%")') vim.cmd('silent execute "%!black " . bufname("%")') end end autocmd({ "BufWritePost" }, { group=M.waylonwalker_augroup, pattern = { "*.py" }, callback = M.format_python, }) 

File Navigation #

vim.keymap.set('n', 'geit', '<cmd>terminal markata list --map path --filter...

...

1 min read
vim

With the latest release of version of nvim 0.8.0 we get access to a new winbar feature. One thing I have long wanted ...

vim