Hi sorry for this stupid question, but I'm learning vim.
I would like to create a "pkg" abbreviation that create the:
    package org.hello.world;
row in a file found in directory:
    <current_dir>/src/main/java/org/hello/world/
I have added this to my .vimrc:
autocmd BufRead,BufNew *.java iab pkg <esc>:r!echo "package 
"%:h:s?src/main/java/??:gs?/?.?";"<CR>

The problem is: this abbreviation go on next line. I would like to write 
"package etc..." on the same line.
I have tried also with register let @a, but I'm unable to obtain a final result.
Can you help me?

Thanks in advance
Bye
  R

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to