ABAP-use Vim as the external editor of ABAP
Http://blog.gnolux.com/2010/03/15/vim_10031501.html
The ABAP editor in sapgui7 is very good, but I recently used the Ubuntu system, using the for Java GUI, which is extremely difficult to use. So I wonder if I can replace it with the editor I used to use? In fact, SAP considers this interface.
Click utilities-> after setting, as shown in the following figure:
Select back-end editor and save the temporary ABAP in path for local editing.CodeDirectory
Click utilities-> more utilities-> local editing. An application is displayed when the application is used for the first time.ProgramInterface, such:
Fill in your commonly used editor. Of course, you have to install the Corresponding Editor in your system. I use vim, which is usually provided in Linux. I set it to gvim-f.
There are some special settings in Vim. Let's talk about them later... first, let's take a look. There are pictures with truth ..
After editing, exit vim and update it to the sap gui automatically. Then you need to save and activate it yourself.
Note:
Me
Some problems found when using vim, if the application is set to gvim
After it is opened, the system will automatically prompt that the temporary ABAP code file is deleted, and the sap gui also loses control over the gvim process. In Windows
This problem was not found. After analysis, it should be a problem of gvim itself. Find the help of gvim and find a-f
Parameter, indicating that the new process is not started. This is the reason. By default, VIM restarts a process to open the file, and the first process automatically exits. SAP GUI
The first process is monitored. When it is found that the process has exited, it is deemed to have been edited, so the temporary code will be deleted.
Set gvim-F to OK. In vim, you can use set filetype = ABAP to enable syntax highlighting, but I don't want to lose it every time. I also defined a. vimrc Startup File and used it to start it.
In this way, the final command is set to: gvim-f-u/home/gnolux/develop/ABAP. vimrc
Automatically retrieve the Startup File under the develop/ABAP directory.