Open Vim with no plugins
Ever need to debug something with you Vim config or ever wonder if your favorite Vim trick is available in stock Vim? There’s a simple way to load vim without any plugins:
Continue reading »Ever need to debug something with you Vim config or ever wonder if your favorite Vim trick is available in stock Vim? There’s a simple way to load vim without any plugins:
Continue reading »Did you ever scratch your head thinking, “I’m sure I made that change… but
now it’s gone!”? You may have fallen victim to :set hidden
. Save yourself
headaches with this one simple Vim trick.
When searching with /pattern
in vim, the cursor lands at the start of the
pattern. This is not always ideal. By adding /e
to the end of your search
pattern, you can have the cursor land at the end of the search pattern. This
can come in handy when you would like to cycle through a number of instance of
a search pattern and repeat an edit with the dot operator .
.
Does trailing whitespace make your blood boil? Although there are plenty of ways to automatically trim trailing whitespace when committing, or even to hide whitespace in diffs, you can easily trim whitespace in Vim with a simple plugin.
Continue reading »Ever open your /etc/hosts file in Vim, make a bunch of edits, only to :wq
and
get that dreaded read only error? There a few easy ways to sudo write a
privileged file in Vim.