vim-scripts / flagit Goto Github PK
View Code? Open in Web Editor NEWAdd some flags to your code
Home Page: http://www.vim.org/scripts/script.php?script_id=1580
Add some flags to your code
Home Page: http://www.vim.org/scripts/script.php?script_id=1580
This is a mirror of http://www.vim.org/scripts/script.php?script_id=1580 FlagIt privides a simple way to flag lines with a set of signs. Screenshot: http://sexylizard.org/images/flagit.png (Icons from http://tango.freedesktop.org/Tango_Desktop_Project) A configuration example is provided in the script header. Usage: g:Fi_Flags a dictionnary which describes the flags Synopsis: an item: '"flagName" : ["aUrlToTheImagePath", "aText, One or two character", uniq, "additionnal options"]' "flagName" : an uniq identifier "aUrlToTheImagePath" : The path to a pixmap. The flag will be drawn as a pixmap (if GUI avaible and g:Fi_OnlyText is 0). "aText" : One or two character. The flag will be drawn as a text (if GUI not avaible or g:Fi_OnlyText is 1) uniq : If 1, only one instance of this flag will be drawn, else multiple instance will be allowed "additionnal options" : options added to signs definition (cf. "sign define") example: let g:Fi_Flags = {"fixme" : ["/home/login/.vim/signs/fixme.png", "!!", 0, ""], \ "error" : ["/home/login/.vim/signs/error.png", "XX", 1, "texthl=ErrorMsg linehl=ErrorMsg"] } g:Fi_ShowMenu If 1 and Gui avaible and g:Fi_OnlyText is 0, a menu will be added to the ToolBar. g:Fi_OnlyText If 1, pixmap will not be used FlagList List all avaible flags FlagIt flagName [line number] Add a flag. If line number is not provided, current line is uses Il a flag is already presents, it will be removed UnFlag [flagName] Remove all flags of type flagName If flagName is not provided, remove all flags FlagDemo Just a way to draw all kind of flags (for test) TODO: save flags (Modelines ? session ? dedicated file ?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.