Every time you use vim, you need to enter the corresponding directory from the terminal and open the file for editing. this is always very troublesome, so I searched the Internet to add vim to the right-click menu, which is very simple and easy to use. The steps are as follows: 1. use vim to open ULTS ults. list and put all gedit. des...
Every time you use vim, you need to enter the corresponding directory from the terminal and open the file for editing. this is always very troublesome, so I searched the Internet to add vim to the right-click menu, which is very simple and easy to use.
The steps are as follows:
1. use vim to open defaults. list and replace all gedit. desktop with vim. desktop.
Command: sudo vim/etc/gnome/defaults. list
: % S/gedit. desktop/vim. desktop/g
2. create a vim. desktop file under/usr/share/applications.
Command: sudo vim/usr/share/applications/vim. desktop
The content is as follows:
[Desktop Entry]
Encoding = UTF-8
Type = Application
Exec = vim % f
Icon =/usr/share/vim/vim48x48.png
Name = Vim
Terminal = true
NoDisplay = true
In this way, the vim on-demand menu item appears in the right-click menu.
From: Ling Feng's column