Install Gvim and add menu items in Ubuntu

Source: Internet
Author: User
Article title: install Gvim and add menu items in Ubuntu. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

In the Linux environment, many people are used to using vi to complete the editing function. today we will introduce vim to you, which is also an editor that is fully compatible with vi. Usability is definitely no worse than vi. what's better is its graphical interface, which does not need to occupy a terminal! Of course, it supports multiple operating systems. Vim also has the same functions as IDE on windows and is very convenient to use. it seems that most of the time it is not available in Linux, but you don't know or won't use it! In the past, Linux was never prepared for lazy people!

Now let's take a step-by-step look at the real use of vi. First, install Gvim in Ubuntu 8.10 and add a menu item.

Install a vim full-featured version. Otherwise, the syntax coloring function is unavailable.

       
        sudo apt-get install vim-full
       

After installation, enter vim in the terminal and use vim in the command line environment.

Now we add it to the menu item. The Ubuntu menu item is saved in the/usr/share/applications Directory. enter the following code on the terminal:

       
        sudo vim /usr/share/applications/gvim.desktop
       

Create/open the gvim menu item configuration file. the opened file already contains content. Let's take a look at the structure of the menu configuration file. In general, all menu configuration files are like this. Add

       
        
Name = Gvim Comment [zh_CN] = Gvim editor Exec = gvim Icon =/usr/share/pixmaps/gnome-word.png Terminal = false X-MultipleArgs = false Type = Application Categories = Application; Development; encoding = UTF-8 startupyun y = true Name = GVim Text Editor
       

Okay. can you see GVim Text Editor?

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.