-
Notifications
You must be signed in to change notification settings - Fork 1
Create Treemaps with VIM
vim-scripts/Treemap
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a mirror of http://www.vim.org/scripts/script.php?script_id=5157 Getting Started ******************** With the treemap extension plugin for vim you can create treemaps with the output in a textfile or an imbedded SVG HTML file. (SLICE and DICE) **** NEW: Commands TmOpen and TmClear to open SVG-generated treemaps in the web browser out of VIM *** For further details read the vim help file: "help treemap" See screenshots at GITHUB: - Input File: https://github.com/Data-Statiker/VIM-TREEMAP/blob/master/screenshots/inputFile.png - Treemap Output VIM: https://github.com/Data-Statiker/VIM-TREEMAP/blob/master/screenshots/treemapOutputVIM.png - Treemap Output SVG: https://github.com/Data-Statiker/VIM-TREEMAP/blob/master/screenshots/trremapOutputSVG.png - Treemap SVG in Browser: https://github.com/Data-Statiker/VIM-TREEMAP/blob/master/screenshots/treemapOpenSVG.png First install the plugin: |treemap-install| To start the treemap creation: - load the inputfile - set the separator (;|,|\t|...) in the menu Plugin->Treemap->Separator or with the VIM Command :TmSeparator (<leader>tr) - set the output type 'VIM' or 'SVG' in the menu Plugin->Treemap->Output Type or with the VIM Command :TmOutput - Run the treemap script in the menu Plugin->Treemap->Run or with the VIM Command :TmRun OR call the main function: call treemap#main(output,separator) for example: - call treemap#main('VIM','\t') - call treemap#main(g:tmOutput,g:tmSeparator) Note: Set tho option wrap to 'nowrap' :set nowrap! Otherwise the treemap is displayed wrong. You can set this option also after drawing the treemap! Note: The decimal separator for the input file is in every language the point "." examples: 23.1 1020.23 Use commands |TmCreate| and |TmDraw| instead of |TmRun|. If you get an error message you can find help for this error in the help file. Type :help ERROR-ID. example: :help E0003 Whats New ***************** Version 1.0: * New command TmOpen (Mapping <leader>to) This command opens a generated SVG/HTML treemap in a web browser * Bugfix: Replace $lang with $LANG for compatibility with older VIM versions * New command TmClear to delete all generated files from TmOpen in the $HOME/treemaps/ directory Version 0.9.2.1 * Bugfix TmCreate with other separators than "\t" (tab) Version 0.9.2: * New Commands TmCreate and TmDraw To seperate the calculating and drawing of treemap * Create folders in plugin files for a clear view Version 0.9.1: * Add corresponding VIM COMMANDS for each menu entry: |treemap-commands| * Add Mappings for VIM Commands: |treemap-mappings| * Set the default width and height in case of Output Type 'VIM' to 70*25