Personal .vim
Personal vim configuration.
Sometimes ago I have created vim-select
_ plugin to simplify opening of
files/buffers and other things in vim. I was a happy user but then another
scratch of vimscript and I have a way simpler fuzzy popup finder that does most
of the things I need:
wrapper function
__ to narrow down any list provided as a parameter to
something you can select from.Set of functions
__ that actually generate lists and "do things" over a selected
item.Mappings
__ that call those functions.https://github.com/habamax/.vim/blob/9c134346affce6e5166fcaac39c58ef3960ca563/autoload/popup.vim#L49-L192 https://github.com/habamax/.vim/blob/master/autoload/fuzzy.vim __ https://github.com/habamax/.vim/blob/9c134346affce6e5166fcaac39c58ef3960ca563/vimrc#L71-L92 .. _vim-select: https://github.com/habamax/vim-select
If you would like to have it in a plugin, there is https://github.com/girishji/scope.vim.
Some of the examples:
Fuzzy file/buffer/MRU """""""""""""""""""""
.. image:: https://user-images.githubusercontent.com/234774/186641098-d1f0f4ca-3396-4c8f-82ac-8de06f61cf0c.gif
Fuzzy project file finder """""""""""""""""""""""""
.. image:: https://user-images.githubusercontent.com/234774/186641084-9f9b4086-ea7b-4ee5-9ac8-32091e0412d5.gif
Fuzzy help """"""""""
.. image:: https://user-images.githubusercontent.com/234774/186641608-6cc2f280-deef-48cb-8e72-dc423ca31daa.gif
Fuzzy TOC for TeX/Markdown/ReStructuredText """""""""""""""""""""""""""""""""""""""""""
.. image:: https://user-images.githubusercontent.com/234774/186641087-ba2d0d5e-b057-4e69-a062-acdaa44fc29f.gif
Fuzzy highlight finder """"""""""""""""""""""
.. image:: https://user-images.githubusercontent.com/234774/186641079-4d4e41b1-ff9e-4a1f-b785-1554801fe244.gif
vim-commentary alike comment toggling is a very handy and convenient thing, so
"to make it safe and available" I did implement my own version
which became
a part of vim
__.
https://github.com/tpope/vim-commentary https://github.com/habamax/.vim/blob/3256c3f33dad2be3b479aa198a68cf543dc8315e/autoload/comment.vim __ https://github.com/vim/vim/commit/5400a5d4269874fe4f1c35dfdd3c039ea17dfd62
Sometimes you might need to edit table-like text, colorcolumn
and
vartabstop
could be helpful
__:
__ https://github.com/habamax/.vim/blob/9c134346affce6e5166fcaac39c58ef3960ca563/vimrc#L116-L146
.. image:: https://user-images.githubusercontent.com/234774/186644105-53985289-ccd6-43a0-9813-9dccda3f86eb.gif
saturnite
;gruvbox_hard
;.. _habamax: https://github.com/habamax/vim-habamax .. _habaurora: https://github.com/habamax/vim-habaurora .. _bronzage: https://github.com/habamax/vim-bronzage .. _sugarlily: https://github.com/habamax/vim-sugarlily .. _saturnite: https://github.com/habamax/vim-saturnite .. _freyeday: https://github.com/habamax/vim-freyeday .. _alchemist: https://github.com/habamax/vim-alchemist .. _psionic: https://github.com/habamax/vim-psionic .. _gruvbit: https://github.com/habamax/vim-gruvbit .. _polar: https://github.com/habamax/vim-polar .. _habanight: https://github.com/habamax/vim-habanight .. _Apprentice: https://github.com/romainl/Apprentice