sponsor Vim development Vim logo Vim Book Ad

tangram.vim : Lightes snippet plugin in the vim market! Only ~90 lines of code.

 script karma  Rating 5/2, Downloaded by 237  Comments, bugs, improvements  Vim wiki

created by
João Garcia
 
script type
utility
 
description
This is the 'raw' branch of tangram.vim. Check https://github.com/jpaulogg/vim-tangram for more info.

This plugin was written in an attempt to be simple enough that users could make any changes directly to it. I believe that this gives users more control and a wider range of possible changes. In addition, the script has comments that help to make some customizations. It's almost as simple as doing it in your vimrc.

Usage: <C-s>i inserts snippets files (ex: foo.snip) from tangram-directorie (by default ~/.config/nvim/snippets/{filetype}). Create placeholders with delimiters  '<{' and '}>' in your snippets files. Jump through placeholders with <C-s>n and <C-s>p. <C-s>e expands vim expressions within a placeholder and <C-s>r prompts for a text to replace all ocurrences of seleceted placeholder.
 
install details
Copy tangram.vim file to "plugin" directory in your runtime.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
tangram.vim v2 2021-02-07 7.0 João Garcia Better completion function
tangram.vim v1 2021-01-25 7.0 João Garcia Initial upload
ip used for rating: 18.191.195.110

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github