In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use VIM to draw, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Vim is a text editor developed from vi. The convenient programming functions such as code completion, compilation and error jump are particularly rich and are widely used by programmers. Juxtaposed with Emacs as the favorite editor for users of Unix-like systems.
So what should we do? First of all, install DrawIt plug-ins in VIM, you can refer to here: vundle so that you do not need to struggle where to find plug-ins and configuration, all plug-ins are managed in a similar way, greatly reducing the cost of using! The path where the plug-in is stored is ~ / .vim / bundle/, directory and download vundle:
Git clone https://github.com/VundleVim/Vundle.vim.git ~ / .vim/bundle/Vundle.vim
Later configuration can be done in ~ / .vimrc:
Set nocompatible "turn off compatibility mode filetype off" turn off automatic detection of file types set rtp+=~/.vim/bundle/Vundle.vim "join runtime path call vundle#begin ()" initialize "plug-in list start Plugin 'VundleVim/Vundle.vim'" plug-in column Table ends call vundle#end () "finish filetype plugin indent on" Open File Type Detection
Common plug-in source configurations are:
Plug-ins hosted on github.com github (Plugin 'tpope/vim-fugitive') plug-ins maintained by vim-scripts.org/vim/scripts.html on this site (Plugin' L9')
After the configuration is complete, open VIM and start to use it. Use the following command:
: PluginList: open plug-ins list: PluginInstall: install plug-ins: PluginSearch foo: search plug-ins. After finding them, you can choose to install: PluginClean: clean up unused plug-ins
Finally, for example, when you want to install the winmanager plug-in:
Add Plugin 'winmanager' to .vimrc to open vim execution: PluginList can see the winmanager plug-in execution: PluginInstall for installation
Then you can start the journey of drawing and use it in command mode:
\ di # enable DrawIt\ ds # close DrawIt
When on, there are two modes: drawing and erasing, which are switched by spaces. You can use buttons to control the drawing of lines (or erasure) in eight directions:
The top, bottom, left and right of the arrow keys correspond to their four directions Pgup # top right Pgdn # bottom right Home # left top End # left bottom
The picture is as follows (you don't need to remember it, it's the same as the position on the keyboard):
Home Up Pgup\ | / Left-Right / | |\ / |\ End Down Pgdn |
The drawing of arrowheads is also very intuitive, simple arrowheads are used >,
>'
You can select blocks with the mouse, which simplifies the following operation, using\ a (\ l without arrows) to draw lines according to the selected blocks:
-\->
Or draw a rectangle with\ b or an ellipse with\ e:
+-* | | * | | * +- -+ *
When you are done, you can use\ f to fill the drawing:
+-+ | # | +-+
It is common that there are some deviations in position, so don't focus on painting at this time:
Select the block you want to move with the mouse, then hold down ctrl and drag the mouse.
When you want to erase a whole piece of content, using the arrow keys to do it is also more painful, you can use:
Select the part you want to erase with the mouse, and then execute r (equivalent to replacing it with a space).
It should also be noted that installation to VIM on ubuntu and mint does not support the system clipboard by default, and needs to be installed:
Sudo apt-get install vim-gnome
Simple experience, if you can flexibly use the powerful functions of VIM itself (copy, paste, etc.), DrawIt is still very useful! PS: just a hint, those arrow symbols are keyboard keys. Look for them carefully.
The above is all the contents of the article "how to draw with VIM". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.