Script Roundup: shootingstar, thumbnail.vim

Alex R. Young
usevim
Published in
1 min readJul 9, 2013

Send in your Vim scripts for review through our contact form.

Shootingstar

Shootingstar (GitHub: jceb / vim-shootingstar, License: Vim) by Jan Christoph Ebersbach is based in the star command which automatically searches forward in Normal mode for the word under the cursor. Rather than searching for the word, the plugin searches for the text fragment that begins at the cursor’s location.

This is implemented using getline() and match() -- getline() gets the current line, which is fed through match() with col('.') which gets the byte index of the cursor. It's a compact plugin, so you can check out the source to see how it all works.

thumbnail.vim

thumbnail.vim

Taking inspiration from Chrome’s Most visited tab, thumbnail.vim (GitHub: itchyny / thumbnail.vim, License: MIT) by “itchyny” shows a preview of the text in each buffer.

Typing :Thumbnail displays the buffer selector in a Scratch window. Options can be supplied to change the behaviour of the new window: it supports horizontal and vertical split modes, and can open in a new tab.

You might like this plugin if you liked vim-startify.

--

--