Overriding Default Vim-test Strategies

vim-test can help you to turn a process of running tests into pleasure. It has multiple strategies for tests execution: basic, dispatch, tmux, neovim terminal, etc. Each strategy is hardcoded inside vim-test/autoload/test/strategy.vim, but we can easily override any of them.

»
on vim

Auto Change Keyboard Layout in Vim

If you use multiple keyboard layouts then you may know how it's frustrating to constanly switching between them. Remember that feeling when you come to Vim's normal mode with keyboard layout different than English? After some time of hjkl-ing, you find out that it doesn't work as expected. Let's do something with this.

»

Simulate a Keypress in Vim

Once in an eternity you need to create a mapping that simulates a keypress.
Here comes the answer:
:h feedkeys()

»
on vim

Fix Broken Syntax Highlighting for Git Commits In Vim

If you are using localized version of git and trying to open commits in vim (e.g. git commit or :Gstatus in fugitive) then syntax highlighting may be broken.

»

Review Last Commit With Vim and Fugitive

When working with git, it's often useful to review all changes that you have made in last commit before push them to origin.

»

Meditating on Code

Sometimes you need to gather all your attention and focus on a few lines of code. Vim has a great plugin which can help you minimize distractions.

»

Jumping Between Most Recently Used Files and Directories

fzf is one of these life-changing tools that can boost your productivity. Here is example of using fzf with vim history for quickly (less than 500 ms) opening files and jumping between directories.

»