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