Charles Campbell wrote:
Donald Allen wrote:
baz["FOO"]=");\n";
baz["BAR"]=");\n";
I performed some tests with this.
* I can duplicate this behavior
* the delete and put steps are unnecessary. Just have a file with
three lines,
-blank line-
baz["FOO"]=");\n";
baz["FOO"]=");\n";
and perform:
2G
o
* using vim -u simple.vimrc filename.awk and with simple.vimrc
containing:
set nocp
filetype indent on
So clearly this problem involves the indent/awk.vim script.
Please try the attached patch to indent/awk.vim .
Regards,
Chip Campbell
--
You received this message from the "vim_dev" 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
*** orig_awk.vim 2011-08-31 12:25:20.499127069 -0400
--- /usr/local/share/vim/vim73/indent/awk.vim 2011-08-31 12:24:53.553216467
-0400
***************
*** 118,124 ****
" Case 1
if prev_data =~ ')' && brace_balance < 0
! while brace_balance != 0
let prev_lineno = s:Get_prev_line( prev_lineno )
let prev_data = getline( prev_lineno )
let brace_balance=brace_balance+s:Get_brace_balance(prev_data,'(',')' )
--- 118,124 ----
" Case 1
if prev_data =~ ')' && brace_balance < 0
! while brace_balance != 0 && prev_lineno > 0
let prev_lineno = s:Get_prev_line( prev_lineno )
let prev_data = getline( prev_lineno )
let brace_balance=brace_balance+s:Get_brace_balance(prev_data,'(',')' )