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
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
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:
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