Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 

If you're an ABAP developer who loves the modal editing power of Vim, Vrapper is a fantastic plugin to bring that efficiency into your Eclipse workflow. This tutorial walks you through configuring Vrapper for ABAP development with some handy shortcuts tailored specifically for SAP ADT (ABAP Development Tools).


🛠️ What is Vrapper?

Vrapper is a Vim emulation plugin for Eclipse. It brings the Vim keybindings you know and love into Eclipse, helping you keep your hands on the keyboard and your workflow blazing fast.

See it in action:


📦Installing Vrapper

  1. Open Eclipse and go to Help → Eclipse Marketplace.

  2. Search for Vrapper and install it.

  3. Restart Eclipse after installation.

  4. Enable Vrapper with Ctrl+Alt+V or through Window → Vrapper → Enable.


🧾 Configuring Vrapper for ABAP

To customize your Vim experience in Eclipse, Vrapper reads from a .vrapperrc file placed in your user home directory.

Here’s a recommended .vrapperrc configuration optimized for ABAP development:

set ignorecase                   " Enable case-insensitive search
set hlsearch                     " Highlight search results
set incsearch                    " Show search results as you type
set clipboard=autoselectplus     " Integrate clipboard with system

" Custom Eclipse actions mapped to Vim commands

" :a activates the current ABAP object
eclipseuiaction a com.sap.adt.activation.ui.command.singleActivation

" :aa activates all inactive ABAP objects
eclipseuiaction aa com.sap.adt.activation.ui.command.multiActivation

" 😮 opens the ABAP search dialog
eclipseuiaction o com.sap.adt.ris.search.ui.callSimpleSearch

" :e executes the ABAP object (e.g., programs, classes)
eclipseuiaction e com.sap.adt.sapgui.ui.launchExecutableObject

" := formats the selected block (or current block if none selected)
eclipseuiaction = com.sap.adt.tools.abapsource.ui.prettyPrintBlock

" % jumps to the definition or matching block (like F3)
noremap % <Plug>(eclipse-motion:com.sap.adt.tools.abapsource.ui.navigateTo)

" Cancel search highlight with ESC
map <ESC> :noh<ENTER>

🚀Handy Vrapper Shortcuts for ABAP Workflow

Command Vim Key / Command Description

Activate Object:aActivates the current ABAP object
Activate All:aaActivates all inactive objects in the project
Execute Object:eRuns an executable ABAP object
Search: oOpens the ABAP search UI
Format Block:=Formats the selected ABAP code block
Go to Definition%Jumps to the method, class, or variable definition (F3 equivalent)
Clear Search<ESC>Clears highlighted search terms

💡Pro Tips

  • You can add more eclipseuiaction mappings by identifying Eclipse command IDs eclipse SPIES (https://marketplace.eclipse.org/content/e4-spies#details).

  • Combine Vrapper with ABAP Favorites, Outline View, and Console shortcuts to fly through tasks.

  • Keep your .vrapperrc in version control if you work across machines or want to share your setup with teammates.


🧩 Conclusion

Vrapper bridges the gap between Vim productivity and Eclipse’s ABAP tooling. With just a few configuration lines, your Eclipse setup becomes much more keyboard-friendly and efficient.

Give it a try, tailor it to your needs, and elevate your SAP development experience

 

 

4 Comments
Labels in this area