In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Vim Editor
Vim is a text editor developed from vi. Code completion, compilation and error jump are particularly rich in convenient programming functions, which are widely used among programmers, and Emacs has become the favorite text editor for users of Unix-like systems.
Vim's design philosophy is a combination of commands. Users have learned a variety of text-to-text move / jump commands and other normal mode editing commands, and if they are able to combine them flexibly, they can edit text more efficiently than editors without patterns. At the same time, VIM is similar to many shortcut key settings and regular expressions to aid memory. And vim is optimized for programmers.
Default color matching
Vim itself comes with some theme color matching, and default color matching is used by default. How to view the current theme color matching? Open the vim editor, enter command line mode, type: colorsheme, and press the enter key.
So, how to view the color matching supported by the current editor, and how to modify the color matching.
It is also very easy to view all color matches by typing colorsheme in command line mode; the way to set color matches is also to use colorsheme [theme], such as
: colorscheme slate
Installation theme
After talking about how to use the default color scheme, let's talk about how to install the theme you want.
First of all, we need to download our favorite theme, the following common download address
Https://github.com/flazz/vim-colorschemes
There are hundreds of colors in it. Here, I choose a more classic color matching molokai, because I like the darker one, so I also choose to download molokai_dark. Here, I do not want to download all of its color matching, all, chose to copy the molokai.vim and molokai_dark.vim files. When the molokai.vim and molokai_dark.vim files are ready, next, create the ~ / .vim / colors directory in the home directory, and then put the above two files in that directory.
The file has been made, and it has also been placed in the specified directory, so how to detect whether the installation is really complete and use it? In fact, the method is the same, using colorsheme in command line mode.
See, the two new colors have come out now. If you want to use it, enter the same as above.
: colorsheme molokai
This setting only works in a single edit, and when you exit vim and open vim again, the color scheme will go back to the original. How can I modify it so that I can use the color match later?
Here we are going to modify the configuration file of vim. Open the ~ / .vimrc file and add a line to the configuration file
Colorsheme molokai
Then save the exit. In the future, no matter how many times you reopen vim, it will make the molokai color match.
In addition to molokai color matching, there are many other more classic ones, such as gruvbox and onedark. Friends can choose their favorite color matches, and then install and set them up.
The above is to change the color of VIM-the details of the installation theme, please pay attention to other related articles!
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.