Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and configure GVim

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to install and configure GVim". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's ideas to study and learn "how to install and configure GVim".

The God of the Editor: GVim

Vi/Vim is the default editor software for Linux machines. Basically, I don't think you need any other software on Linux, but you can't say, "I want to learn Linux, but I don't want to learn Vi/Vim." Vi/Vim has a high learning curve, but the reasons you must learn are:

1. Text system

The Linux system is based on command and text configuration, not to mention if you are still a developer who needs to write code and is not adept at using killer applications known as editor gods, you can't make a move in a world where GUI is unfriendly.

two。 Everywhere

If you use Linux, it means you won't feel at ease using only your local desktop, install a Vi/Vim substitute and pretend you don't need to learn Vi/Vim, and you're more likely to log in remotely to an unfamiliar environment to operate another Linux, and 80% of that machine may only have the default standard Vi/Vim, which anyone will feel very embarrassed. There is also a workaround: I have seen many developers under Windows use the ftp client to drag a few gigabytes of log files from remote machines to their local, and then use the editor on Windows to load this huge file for a few minutes, which is not over yet. If the problem is not solved, this painful process will continue over and over again. At this time, I often wonder why they don't spend their time learning Vi/Vim.

3. Efficient editing

As an editor, Vi/Vim has been developed so far, coupled with excellent plug-in mechanism, its rich and powerful functions have gone beyond the limits that human beings can imagine. At the beginning, before the emergence of the mouse, human beings could only rely on the keyboard to operate computers. Codeword, especially how to efficiently codeword is one of the important operations. Vi/Vim is designed to be a tool for efficient use of keyboard codeword. So it is divided into three editing modes, and in detail, it stipulates that all keystrokes occur only in the main keystroke area: just to avoid the loss of efficiency caused by the displacement of even a few centimeters between the hands. Or in order to compromise to efficiency, it designs a variety of anti-human operations to achieve a variety of editing functions, in order to pursue editing efficiency, it imposes operating costs and memory burden on human beings. After the emergence of the mouse, the codeword software, which is supposed to serve only the keyboard, is still highly accepted among programmers because of its efficient design. In fact, this phenomenon should make us reflect on what problems exist in today's so-called man-machine design to please ordinary users.

4. Once and for all

Learning Vi/Vim is not learning Vi/Vim itself, but learning a set of specifications for using keyboards to operate computers (for example, hjkl represents the bottom left, top right). Because this set of specifications has been accepted by many people and has become a standard specification, this set of standards has been grafted onto many other software, such as Vimperator, W3M, Eclipse, and even Emacs, the archenemy of GVim. It can be seen that as a standard of convention, the marginal benefits of learning Vi/Vim are considerable. As long as you learn this specification, you can exert the power of learning results in many places, not just the editor itself. We will see many such cases in the following text. Let's start with a small example and enter it in the terminal:

$set-o vi

Can be opened with vi-compatible keyboard shortcuts to operate bash command, at this time you can use Esc in the terminal to switch to the command mode, in the command mode, press HMagne l to move the cursor left and right, press JMagne k to switch between the previous and the latter command. X can modify characters, "$, ^" can return to the end or header of the command, and I can return to edit mode.

Software installation and configuration

Vi/Vim itself does not need to be installed, but if you prefer better visual effects, a richer version of GUI can install GVim:

$sudo apt-get install vim-gnome

After installation, you can start editing the file by typing the following command in the terminal interface at any time:

$vi filename$ gvim-f filename # Ubuntu 12.04 conflicts with gvim, and the-f parameter needs to be added, otherwise there will be false death after starting gvim.

The configuration file is located at:

~ / .vimrc is mainly used for settings related to the editor itself, such as fonts, shortcuts, plug-ins.

The vim directory is used to store background color, syntax highlighting and other theme files, third-party plug-in files, etc.

Plug-in Management:

Because the traditional Vim plug-in only needs to be copied into the above ~ / .vim directory after download, it is not easy to manage: each plug-in will have three or four subdirectories scattered in the home directory ~ / .vim, and second, it is not convenient to update the plug-in: if the plug-in has updates, you need to repeat the steps of copying the plug-in to the ~ / .vim directory. To solve these two problems, the most popular plug-in management method recently is to first install another management plug-in called pathogen, and then create a new directory

$mkdir-p ~ / .vim/bundle

In the future, all plug-ins can be copied to ~ / .vim/bundle through git clone (for git, students who are interested can refer to here: github). For example, install a plug-in named vim-css-color to highlight the color code in css, just:

$cd ~ / .vim/bundle$ git clone https://github.com/skammer/vim-css-color.git

In this way, the plug-in file will be centrally managed in ~ /. Vim/bundle/vim-css-color, and you only need to execute git pull in the plug-in directory to update it with one click, as shown in the vim-css-color plug-in effect.

Introduction and experience

For all its benefits, the biggest obstacle to human use of Vi/Vim is its steep learning curve. I have heard the voice of sadness everywhere on the Internet: "you can't learn keyboard shortcuts, but if you learn them, you forget them. It's too difficult to use. Give up." Because there is no step-by-step ladder, beginners who want to learn Vi/Vim need to concentrate on practicing repeatedly for a period of time, just like a hurdle, crossing a different hole and giving up if they can't get through. For example, you need to jump hard and jump over Jackie Chan. If you can't jump and give up, you will always be a fish. This is the true portrayal of learning Vi/Vim. So first of all, this thing depends on the determination of the practitioner, and then let's talk about some learning skills.

There are countless resources for learning Vi/Vim on the Internet. I have seen all kinds of books, articles, blogs, some students are seriously reading, flipping through, and even taking notes, and many students set the pictures of all the keyboard shortcuts on the desktop as background, even color typing on the paper, posted on the side of their computers. There are actually some problems:

A few words of article blog can not systematically tell you which Vim operations are the most basic need to master.

On the other hand, if you find a book to read, you are lost in the ocean of "knowledge".

Because knowing that learning Vi/Vim has a memory cost, the method of setting background and wallpaper is used to try to remind yourself not to forget all kinds of key methods.

It seems logical, but for a tool that emphasizes operation and feel, most students are actually looking in the wrong direction: muscle memory, not mental memory, is needed to find the touch. The key question is not how many articles and books you have read about Vi/Vim, how many notes you have taken, whether your brain has remembered those shortcut keys, but how many times you have practiced the most basic operations, and whether you have established a conditioned reflex between applicable situations and keystroke methods through a lot of exercises. I call it muscle memory here. What you need is to strengthen the thickness of the neurospinal substance through a lot of basic exercises, train yourself to establish the conditioned reflex of situational keying, engrave this reflex in muscle memory, and once it is trained to form this reflex, to some extent, it is a more effective stress response than thinking or remembering, that is, you can skip the process of thinking or recalling and edit a scene directly. For example: copy a paragraph of text to the other end of the text, delete and replace a word, go back to the head of the file, etc., you do not have to think about which keyboard shortcuts I should press to do these operations, your hands will naturally hit the correct key method, omitting time-consuming thinking, recalling the process of key method, the operator's efficiency is naturally doubled.

Users of Vi/Vim often have such a magical experience: Xiaobai looks at your editing text next to you, and the cursor on the screen seems to follow people's eyes and ideas everywhere. The operator does not use a mouse, but completely controls the editing process with keys. At this time, Xiaobai can't help interrupting you and asking you how to copy the specified paragraph. You often can't answer right away. You need to put your hands back on the main keypad. Let your hand natural keystroke to give the correct answer, which is what we said before that conditioned reflex replaces thinking and remembering that this operation is done through repeatedly trained muscles rather than your brain, so the hand can give the answer quickly, but the brain can't answer right away, it needs to recall the action, decompose the steps, finally confirm it, and then tell you the answer. Through painstaking training to establish conditioned reflexes to improve efficiency and skills, which is actually no different from other skills in the world, such as playing musical instruments, calligraphy, and foreign languages. By extension, if you can use this technique more in your daily life: build more conditioned reflexes instead of mental decisions, you can accomplish tasks more efficiently and more easily. But this also needs to have the ability to adapt to the scene, the classical conditioned reflex can actually be achieved by dogs, but heard the bell did not see the meat began to drool and was deceived.

The bad news is that you still need to train hard. The good news is that compared to musical instruments, foreign languages and other skills, it doesn't take long to practice Vi/Vim to build conditioned reflexes in about seven days. It takes seven days to benefit from a lifetime of efficient editing, which is a good deal. And there is no difference in intelligence. If you think you can't do it, think that the classic conditioned reflex subject is actually a dog. This metaphor is uncomfortable, but it can be very inspiring. I didn't treat myself as a human being when I practiced Vi/Vim during a seven-day holiday in 2006. Learning materials for exercises are also readily available. Many students are looking for books and tutorials all over the world. They do not know that the most useful tutorials GVim have already come with them. After installing GVim, type directly:

$vimtutor

The ingenious thing is that this text is not only a learning guide with seven chapters, but also an exercise book that can be studied and practiced over and over again. You only need to read through the document and operate it as required. After you can operate this document skillfully, the practitioner will have the basic ability to use Vi/Vim to edit the text, and can calmly use Vi/Vim to deal with about 80% of the editing tasks. However, in the initial stage of establishing the reflex, be sure to invest enough time and practice times, otherwise the success will fall short, so you can repeat the tutorial for about seven days after the first reading of the tutorial. Whenever you feel bored, call up this tutorial and practice it from beginning to end to keep your hands hot. With this foundation as a guarantee, you should try an immersive learning method, that is, when editing text, reject all tools except Vi/Vim. Do not have any reason to contact any other editor, if you are a developer, be sure to use an IDE, then you should also see if there is a Vim plug-in for this IDE: this is not a problem for mainstream IDE. Then the practitioner will get back on track and get better: the more skilled you are, the more efficient you will be, and the more efficient you will be without Vi/Vim, until you start to learn more advanced features of Vi/Vim, or introduce more plug-ins to meet more editing needs. After forming a virtuous circle, you can become a master in a year or two, and this skill will stay with you for the rest of your life, and as time goes on, you forget that it is a "great skill that many people don't learn".

The following is the effect of installing several plug-ins:

The Art of search: find & grep

In the previous blog, we repeatedly stressed the importance of search, search over navigation is a key issue to improve operational efficiency. Here are a few common search commands under Linux. Recall that the requirements for native search can be broadly divided into two categories:

Search for files by file name

Search for files by keywords in their contents

Before I begin to explain how to meet these needs, I would like to emphasize that readers have the impulse to search rooted in their hearts. Without this impulse or concept, you will not have the need to search. In general, you can also use the mouse to rummage through folders to complete the equivalent work. The difference is that you want to find what you want with purpose, paying the cost of memorizing keywords and finding what you want as quickly as possible. Still browsing aimlessly, running around in a hurry. Here is another search tip that can give you an intuitive sense of the power of search: it is sometimes inevitable to re-enter a long series of commands in the terminal interface, which may be the biggest complaint of terminal users relative to GUI, "repeatedly typing such a long command is very annoying", "how can I remember such a long command"? You can memorize only a few keywords in this string of commands, then press Ctrl-r on the terminal interface to enter search mode, and type the keywords you just remembered, such as gvim:

(reverse-i-search) `gvim': gvim 2013-01-07-ubuntu-efficient-software.markdown

In this way, the system will automatically prompt you to enter gvim-related commands before, if it is not what you want, continue to press the Ctrl-r prompt for the next command until you find the command you want, press enter to run, and if you finally do not find the Ctrl-c to exit the search mode. This technique is very small but very practical, solving a big puzzle when I first started:).

Find: file name search

The find command can search for files by many search criteria, the most common of which is by file name:

$find-name readme./Dropbox/backup/eclipse/readme./Dropbox/backup/windows/EnsoLauncher/readme./TestProject/web-workspace/TestStruts/readme

The above command refers to looking for files whose file name is readme in the current directory. If the file name is too long, you can choose to add wildcards to reduce the memory burden, for example:

$find-name read*./Dropbox/backup/eclipse/readme./Dropbox/backup/windows/EnsoLauncher/readme./TestProject/web-workspace/TestStruts/readme

For more usage, refer to man:

$man find

Grep: file content search

Grep is the most commonly used command for many experienced developers. If you don't know where the file is, but you know a few keywords in the file, you can find it:

Art of grep search *-rsource/_posts/2013-01-Art of 07-ubuntu-efficient-software.markdown:## search: find & grep

This is the result of my local search for the current subtitle of this blog. * refers to searching all files in the current directory, and-r refers to recursive search in the current directory. For more usage, refer to man:

$man grep

Cut off the last excuse for using the mouse: keynav

Using a Linux system, although you can use the keyboard to complete all the controls without obstacles in 80% of the cases, there may still be some situations where you can only use the mouse, for example, some GUI software does not provide the corresponding keyboard shortcuts, or even if it does, you do not know. At this time, you can call up the keynav software and cut off the last excuse for using the mouse. Keynav is used instead of clicking on any pixel on the screen. Its design idea is like this: using keyboard shortcuts, it can explicitly divide the entire screen into four areas, and then type hjkl to represent the left, bottom, top and right (familiar? ) like dichotomy, divide the entire screen into the left half or the lower half or the top half or the right half, and repeatedly type hjkl in the current half of the screen to continue the dichotomy of the screen, so that the explicitly highlighted area will become smaller and smaller (one more split area will be reduced by half), and the center point of the small area coincides with the target area you want to click on. This process is the process of simulating the movement of the mouse from the current position to the target position, and then re-typing the shortcut key to complete the action of simulating the mouse click, so that in theory, without a better choice, you can use the keyboard to simulate the mouse to complete any click work, thus avoiding the switching of both hands back and forth between the key panel area and the mouse, saving valuable operation time. So how efficient is this? According to the calculation, on a screen with a resolution of 1920x1200 (suitable for a screen size of more than 24 inches), the worst-case scenario of clicking on any pixel on the screen is 21 keystrokes to split the screen, which is a bit bad, but in fact, not everyone has that large screen (the size of the display suitable for text work is 22 inches, you can get the best dotted distance, and the resolution is 1680x1050). In addition, even the mouse, it is not determined that the need to be accurate to a pixel size to click, we click on the object is often a pixel area, such as: a toolbar, a button, a text box, so click the button as an example: the button occupies 60x25 pixel area, the worst on the 1920x1200 screen requires 11 keystrokes to complete positioning. This is only the worst case. According to the author's experience of using a 22-inch monitor, positioning can be completed with four to five keystrokes, which is no more efficient than the mouse, but it takes no more time to complete the positioning click than to save time to switch the mouse. So far, we have completed the theoretical verification and practical proof of using keynav instead of the mouse, and readers may wish to boldly unplug the mouse.

Installation configuration and getting started

The official source of Ubuntu comes with this software by default:

$sudo apt-get install keynav

The configuration file is located at: ~ / .keynavrc can modify the shortcut keys by yourself.

In addition, you can try to get the software to start randomly:

$vi ~ / .xprofile

Add a line:

Keynav

Just log in to the system again.

After the first launch, press "ctrl +;" to activate the explicit highlight, then press hjkl to move the location, and finally press the spacebar to simulate the mouse click. It doesn't take long to master this software, you can refer to the official website and demo demo.

For more usage, refer to man:

$man keynav

Text browser: W3m

In this GUI-ridden world, the author recommends a Chinese-compatible text browser: W3m, the reason you need a text browser:

1. Speed and focus

Does not need to load the picture, the loading speed is faster, causes the user to focus on the text content itself, suits the relatively pure text reading, especially the document consult.

two。 Run in the terminal interface

It's cool, it only needs a bash shell terminal to run, which means you surf the Internet on the command line, and even if you don't have a GUI graphics system, it won't prevent you from accessing Web, which is important on many occasions:

Unable to access the graphical interface, you need to search the Internet for solutions.

When ssh logs in to a host remotely, you need to download files directly on that host, perhaps the network speed of that host is more powerful and there is no wall, you can also avoid downloading the files locally and then transferring the files to the remote machine, so you need to access the Web directly in the terminal of the remote computer.

3. Full keyboard operation

Another advantage of the terminal interface is that you can't use the mouse, which forces you to use the keyboard to manipulate the text browser to improve browsing efficiency. And if you can use Vi/Vim, the experience of manipulating W3m is very similar to that of Vi/Vim (using hjkl to move the cursor, / keyword query keywords, etc.).

4. Format rendering, perfect support in Chinese

The rendering effect of web using W3m is very beautiful. Use W3m to access the effect of gmail:

Installing W3m is very simple:

Sudo apt-get install w3m

If you want to change some of the shortcuts, such as changing the shortcut for page up and down to match the Ctrl-d,Ctrl-u for Vi/Vim, you can create a new file:

Vi / .w3m/keymap

Rebind the shortcut keys by entering the following:

Keymap Cmurd NEXT_PAGEkeymap Cmuru PREV_PAGE

After installation, open the terminal and enter:

$w3m http://www.douban.com

You can access Douban, hjkl: move the cursor, / keyward enter: search for keywords and locate the cursor to the target object. If the target is a link, enter directly to jump. Continuously press the Tab key to switch the links on the current page from top to bottom, enter to jump, and press Tab+Shift to switch in reverse from the bottom up. These are the most basic functions. If you want to see more detailed functions, open W3m and press Shift+h to view the shortcut key.

Screen Manager: tmux

As a command-line terminal-based operating system, efficient Linux users will spend more than 30% of their time on their own terminal interface. A powerful and user-friendly terminal interface management software will be very intimate. Here the author introduces the software tmux. Tmux is a program used to manage the terminal interface, the main functions are as follows:

1. Divisible, multi-Tab terminal window

Cut out any number of sub-windows on a whole screen terminal interface. for example, you can edit text in the left half of the screen and view information in the right half of the screen to improve the utilization of screen space. users can see the contents of two terminals at the same time in one screen space, saving the trouble of switching terminals, this function is quite practical in the era of big screen. Just like the concept of Tab in modern browsers is similar, it is also easy to create, switch, and close different Tab to represent different terminals in tmux. With divisible and multi-Tab terminals, you do not need to open multiple terminal interfaces for different purposes, especially when logging in to a remote host: avoid repeatedly opening the local terminal to remotely connect to the host or constantly switching the foreground program to the background to run in order to vacate the control of the current terminal, you only need a remote connection to open any number of terminals at will. And switch quickly in these terminals.

two。 Copy terminal text

The traditional terminal interface can only use the mouse to copy the text on the interface, and one of the perks of tmux is to allow you to enter edit mode with the keyboard and copy and paste any text on the terminal. For example, if you are editing a document in a terminal, which requires a long path, you can divide a new terminal, run the command to get the path, and then copy the results to the editor of the original terminal. During the cursor movement and search commands are still Vi/Vim similar to hjkl/ and so on.

3. Keep a terminal screen session

If you use ssh to remotely log in to a host and use a terminal, if you are running a very time-consuming command, unless you switch it to the background, the task will be stopped automatically when you log out of the host, which is very inconvenient. You can use the dettach function of tmux to save the screen session, and then log out of the host. The next time you log back in to the host, use the tmux attach command to restore the last saved session. Also suppose that your work on the terminal in the office is still not finished, but the second half of the time has arrived and you need to catch the bus, at this time you can still dettach the current screen status, wait until home after ssh remotely connect to the company computer, tmux attach restore the terminal state when you left the company, and continue your work at that time, as if you were back in front of the office machine.

Run the installation:

$sudo apt-get install tmux

Configuration file is located in: ~ / .tmux.conf, you can edit this file, change the set-g prefix Cmurb to set-g prefix Cmura Cmura represents Ctrl+a, is a prefix key, all tmux shortcuts need to press this prefix key before working, because Ctrl+an is more convenient than the default Ctrl+b button, so there is this fine-tuning.

Start tmux and execute it in the terminal:

$tmux

You can enter the tmux interface, press Cmura v to split the screen vertically, and Cmura / s to split the screen horizontally. This split action can last all the time. Move the cursor to the adjacent splits in the lower left, upper and right directions, type exit to exit a splitter, and finally dettach the entire tmux session. If you need to resume this session, just type: tmux attach at the terminal.

The following is a tmux effect image that is divided into four regions and three Tab. Note that the three words in the green status bar in the lower left corner of the picture represent the three Tab, the Tab with a * sign represents the current Tab, and the two words highlighted in black indicate changes in the content of the other two terminals that are not current Tab. For example, if you edit the text in the current Tab, if there is log output in another Tab, then there will be a black background to remind you that you need to see the changes. The status bar in the lower right corner of the picture also shows the current system time and the computer's hostname:

Firefox's Swiss Army knife: Vimperator

In addition to the terminal, another highly used software is the browser. In our time, many people turn on the computer just to open the browser. If you will spend 50% of your time in the browser, you should think about how to improve your quality of life in the browser: it's a good thing we have Vimerator. Vimperator is a Vim-inspired FireFox plug-in that completely subverts the traditional concept of using browsers. It is designed to operate browsers using keyboards like Vim and is compatible with the standard specification for Vim controls: you can use Vim shortcuts. Just imagine how dazzling it is that you can control the browser with a keyboard without a mouse. Personally, I don't think it is too much to praise the greatness of this plug-in. The significance of its existence has gone beyond Firefox itself. Many users may complain about Firefox itself, but the emergence of this plug-in makes the defects of Firefox itself less important. Whether it is chrome or IE, it is difficult to persuade users who are used to Vimperator to migrate to other browsers before the emergence of plug-ins of the same weight.

I hope chrome fans can contain their anger, let's make some more sense.

In my previous blog post, I mentioned such a point of view: we are not in an ignorant age. Decades ago, the low computing power of computers could not even meet the speed of paper tape input, and people had sufficient input bandwidth. on the other hand, the receiving bandwidth of the computer is quite narrow, and the responsibility and bottleneck of not improving efficiency are on the machine side, and people often need to wait for the machine. Today, it is very different. The status of people and machines has been reversed, and generation after generation of chip technology innovation, so that machines have enough processing bandwidth to complete the tasks given by human beings. It is not that machines are too slow to handle enough tasks, but that our human thinking speed, reaction speed and operation speed can not feed the powerful processing power of machines. If there is a problem with efficiency, then the responsibility lies with us, and we are the bottleneck. You should make yourself smarter, think faster, think more accurately, and operate more efficiently. One way to improve yourself is to pay mental costs, train hard, and establish conditioned reflexes that adapt to the scene. Maybe Firefox's rendering loading speed is not as fast as chrome, but if any of its operations do not require navigation or mouse guidance, then a trained user can still benefit from each click, close, new, search, copy, jump these most basic operation speed, accumulate efficiency advantages, and finally not only make up for Firefox's own performance problems, but also beat chrome with more than ten times the efficiency.

To think clearly about this truth, this is the premise of our choice. Here are some features of Vimperator:

1. Vim compatibility

So it doesn't make sense to discuss whether Firefox is fast or chrome fast, and the software has little difference in rendering speed. The key is which platform can provide faster tools. Vimperator is the answer given by Firefox-no matter how bad Firefox is, it has a powerful plug-in system, a plug-in ecosystem and a history of developers. The smartest thing for Vimperator to do is to follow Vim-compliant specifications for keyboard-operated computers. The learning cost of users is reduced. You can still, for example, turn the page by using h.jjjjjjjjjjjjjjjjjpgl to search for it.

two。 Quick access to commonly used websites

On the page of the current website, you only need to press shift+m, and then press an alphanumeric key, for example: you are on the home page of Sina, press shift+m, and then enter s, so s refers to the Sina website, the next time you need to visit Sina, you do not need to enter the URL, just press three keys: the gns browser will open a new Tab to load the Sina page.

3. Innovative browser human-computer interaction

The most important feature of Web is the links that can be redirected. Vimperator takes full account of the human-computer interaction characteristics of the browser, if you have not used similar tools, you may be able to imagine using keyboard shortcuts to flip the page, scroll, forward, and backward in the browser, but you may not be able to imagine how to use the keyboard to click on a link on a web page. Take a look at Vimperator's approach, which is a very cute, very clever approach:

After installing the plug-in, press the f key, and all clickable objects on the page, including links, pictures, text, and buttons, are explicitly highlighted and marked with numbers. At this point, all you have to do is press the corresponding number on the keyboard to represent a mouse click. You can also use the search keyword method, navigate to a link, and then enter directly to jump. This is far more efficient than a mouse navigation.

4. Integrated vertical search

Let's take a look at Vimperator's search function: a search that is so powerful that it's scary. The demand for traditional search engines is actually being replaced by more vertical search requests: if I wanted to buy a mobile phone, I might go to the search bar on Taobao to search. If I want to know the answer to a professional question, I may want to go to community Q & A sites such as Zhihu and quora for professional advice. Book reviews or film reviews may be more reliable on Douban. Searching for the meaning and usage of an English word may be better in online dictionaries such as dictionary.com cloud words, which can be reviewed over and over again without a local thesaurus. I will use Wikipedia to inquire about popular science knowledge. We need a tool to uniformly solve so many vertical search requirements! Vimperator gives the answer like this: no matter which current page you are on, press t to enter command mode:

: tabopen t galaxy note enter

The browser then jumps to Taobao's galaxy note search results page. You don't have to click on the Taobao URL or enter it in the search box, just remember that the t in the command represents Taobao. And this kind of search engine can be infinitely expanded built-in, you can add any site that needs vertical search, with keywords such as t. (note: Taobao is a search engine I joined manually, and you may not be able to implement Taobao search by default.) if you still need the most commonly used Google search, it's easier: press t to enter command line mode:

: tabopen galaxy note enter

These are just a few of the many dazzling features of Vimperator, which readers can learn to mine on their own according to the help documentation. Click vimperator-addon to install the plug-in using Firefox, restart the browser and enter:

Help enter Thank you for your reading. The above is the content of "how to install and configure GVim". After the study of this article, I believe you have a deeper understanding of how to install and configure GVim, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report