Random snippets of vimscript written mostly as answers on StackOverflow dumped here for future reference.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
blank_showbreak_numberwidth.vim
cycle_unicode_characters_in_insert_mode.vim
flash_next_search_occurrence.vim
idiomatic_plugin_mapping.vim
lowercase_commands.vim
showbreak_as_match.vim
xml_tag_prompt.vim

README.md

What is this?

This is a small collection of random snippets of vimscript I've written while supporting users in #vim on freenode or on StackOverflow. They will be collected here for easier reference in the future.

Be Warned

Please note that these scripts aren't 100% foolproof and are generally just proof-of-concept demonstrations. The goal here is merely to show simple examples of what can be done in a few lines of vimscript.

You did something stupid, this is how it should have been done.

If you would like to suggest an improved or simply improvised version of any of these scripts I will gladly add alternatives and make sure you are credited.