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?