Hi,
use maps:
:map sout<Tab> oSystem.out.println("");<Esc>F"i
or i_maps:
:imap sout<Tab> System.out.println("");<Esc>F"iSylvain 2009/7/30 Rashmi <[email protected]>: > > Hello all, > > I'm using ViM version 7.2 to edit Java files. > > In Java I have to frequently type this code: System.out.println(" > print something "); > > Is there a way to create a shortcut so that , the entire line of code > System.out.println(""); would be typed with just a few keystrokes? > > For example, something like sout <tab> , would expand to > System.out.println(""); > > I also came across a plugin for ViM called VJDE, I'm trying to find > out if this plugin may have this feature to print > System.out.println(""); with a few keystrokes. > > I appreciate any help. > > -Rashmi > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
