FS#27654 - [vim] when using command `o' to insert a new line in gvim/vim, it is hanged.

Attached to Project: Arch Linux
Opened by LiJunLe (lijunle) - Wednesday, 21 December 2011, 06:35 GMT
Last edited by Eric Belanger (Snowman) - Sunday, 15 January 2012, 06:39 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Tobias Kieslich (tobias)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
it is strange. so hard to describe it. given the steps:
1 touch a new file, a.cpp
2 $vim a.cpp
3 paste the code below:
====CODE======
int main() {
a[2][2]={
{7, 6}};
return 0;
}
====CODE======
you must type it strictly, line feeds and spaces.
4 save it
5 go to line 3 (contains {7, 6}), and type `o'.
6 ok, it is hanged now.

about the code.
====CODE======
int main() { // here must be a left brace
a[2][2]={ // squal sign and left brace
{7, 6}}; // some spaces (one or two or more), then form as the input (the comma the the space after the comma and a right brace).
return 0; // not necessary
} // right brace
====CODE======

Additional info:
* package version(s)
gvim 7.3.353-2
vim-runtime 7.3.353-2

* config and/or log files etc.
It is not related to the vimrc file. The file is renamed, and this is still happened.
   a.cpp (0 KiB)
This task depends upon

Closed by  Eric Belanger (Snowman)
Sunday, 15 January 2012, 06:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  vim-7.3.401-1
Comment by LiJunLe (lijunle) - Wednesday, 21 December 2011, 06:38 GMT
the code format is damaged, see here. http://codepad.org/mL7NHNTe
or the attached file.
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 21 December 2011, 21:31 GMT
Confirmed that vim seems to hang when pasting the first code snippet above. x86_64. gvim 7.3.353-2

Loading...