Today I discovered vim-speeddating by tpope. I'm sure I've seen years ago but it did not click for my workflow until ...
Posts tagged: vim
All posts with the tag "vim"
Vim is a command that runs what you call without autocommands on. This is typically used when you have some commands ...
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.
...
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.
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.
...
!https://github.com/helix-editor/helix/issues/2232#issuecomment-1228632218
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...
!https://www.youtube.com/shorts/v2a6Nv7RSd0
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
Wikilinks are standard to a lot of wikis written in markdown.
...
!None
!https://www.youtube.com/watch?v=ZRnWmNdf5IE&t=612
!https://www.youtube.com/watch?v=9_Ekt1PZBzQ&t=351s
So after months of fighting with gf not going to template files, I finally decided to put in some effort to make it w...
!https://neovim.io/doc/user/diagnostic.html#vim.diagnostic.reset()
!https://twitter.com/bbelderbos/status/1709525676154368055
!https://github.com/jose-elias-alvarez/null-ls.nvim/wiki/Formatting-on-save#code
!https://www.lazyvim.org/installation
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...
...
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 ...
How to vimgrep over hidden files.
