Linux Next Diagram tool--graphviz installation configuration

Source: Internet
Author: User

Today we will introduce a good flowchart making tool--graphviz

The installation method is many, can be installed through the Deb package, the source code, as well as the command

I use the source code installation, here to download its source package, followed by input:

./configure

Make

Make install

(There is no mistake in theory)

Of course, the simplest way is to enter:apt-get install Graphviz Direct installation (no pro-test, it should be possible)


After the installation is ready to start the configuration (here because of limited technology, no way to accompany Daniel as well, please forgive me)

Since I am using vim, I can only introduce the VIM plugin here.

To download a plug-in named Wmgraphviz here, the download page also has the installation steps, very simple

After that, add the following configuration to your . VIMRC File:

function Headerdot () call Setline (1, "//usr/bin/dot") call Append (1, "digraph g{") Call Append (2, "") Call Append (3, "}") Normal 3Gendfautocmd bufnewfile *.dot call Headerdot () "Gtaphvizlet G:wmgraphviz_dot =" dot "let G:wmgraphviz_output =" svg "Let G:wmgraphviz_viewer =" Xdg-open "Let g:wmgraphviz_shelloptions =" "Map <f8>: W<cr>:!dot-tsvg-o%<.sv G% && start%<.svg<cr>  nmap <leader>lv:w<cr>:graphvizshow<cr>:!rm%<. Dot.svg


Here's a little explanation, the front is set to automatically insert paths and base frames after opening the. dot file

Later let is set the dot file input and output and open the way

Set the F8 to generate. svg image file

LEADER+LV Preview is set and the preview generated file is deleted after preview

(The picture type is stipulated, some types can not be generated, here is SVG on it)

Note: You can set the Alt+o to close the window through your system settings, so that you can close it quickly after each preview and continue writing the file


I found on the Internet should be able to directly and automatically real-time to view their own written flowchart, but I do not have the configuration successfully, after the success will update the blog





Linux Next Diagram tool--graphviz installation configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.