Tag: vim

Install pynvim via Homebrew

I decided to write down a bit of details about how I was able to install python requirements for neovim on Mac M3, because as it turns out, it is not as straightforward as doing it on Arch. But before we jump straight into action, a little bit background. When you start nvim and …

Fix ANSI data in nvim execute

After migrating my dotfiles over to Mac M3 I stumbled into roadblock issue for my neovim setup. Every time I saved a PHP file, a lot of garbled data got prepended at the beginning of said file. If you remember so far back, my setup uses prettier for formatting everything, mostly …

Excluding file name from vim fzf ripgrep

Many times, especially with customizable software stacks, there are aspects or features of the software that we wish they were done differently. Fortunately, when using open-source software, configuring said software to do our bidding could be within a few (hundred) keystrokes. T…

Prettier PHP plugin in vim

After spending a few hours trying to make chained methods in PHP arrange itself below one and each other in a tidy manner, I have finally found a solution. In other words, on a file save I wanted to go from this: $this->user->account->organizations()->saveMany(Organiz…

Vim filter contents replaced with an error

One of the features of vim is it's ability to filter contents of the file through a command and return the output back to the buffer. This could be used for example for fixing the indentation on the file or generally formatting the document. Part of the official documentation for…