vim abbreviate help...

2012-07-03 Thread Roberto S.
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

Re: vim abbreviate help...

2012-07-03 Thread John Little
The problem is: this abbreviation go on next line. I would like to write package etc... on the same line. Quick, barely tested reply: put a 0 in front of the r. If I :r!echo foo in a new, empty buffer, foo goes on line 2, but :0r!echo bar gets bar on line 1. Regards, John -- You

Re: vim abbreviate help...

2012-07-03 Thread Benjamin R. Haskell
On Tue, 3 Jul 2012, Roberto S. wrote: 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:

Re: vim abbreviate help...

2012-07-03 Thread Jürgen Krämer
Hi, Roberto S. wrote: 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