Re: weird up/down arrows behaviour on braces 7.1.87
On 8/27/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: I get weird up/down behaviour when cursor traverses the braces. vim 7.1.87, no custom plugins. This is apparently somehow related to matchparen. The testfile is x.c below. Here is what happens if I press down starting from the beginning of file, position 1: 1. Down. instead of going to line 2, cursor shows at line 4 !!! 2. Down. cursor is at line 3 3. Down. cursor is at line 2 !!! 4. Down. cursor is at line 5 6. Up. Cursor is at line 2!!! 7. Up. Cursor is at line 3. 8. Up. Cursor is '}' line 4!!! 9. Up. Cursor is at line 1. --- x.c int foo() { return 0; } /* */ I don't have a vt220 so I can't try it out. I wonder if you are actually using a vt220 anyway, these are quite rare these days... I observe same results when setting XTERM to xterm-mono. The terminal was actually xterm. You can change vt220 to xterm-mono and see the same results. How can you tell where the cursor is and it's not the highlighting that makes you think the cursor is somewhere else? I can do :echo line('.') col('.'). This shows me that cursor is not where vim shows the white block on the screen. Try using a different color scheme. I normally work in color xterm. There is no problem there. I do not normally work in B/W term. What we were doing, we were checking how some console software (not vim) behaves under the black-and-white TERM. As a side effect, I noticed that matchparen behaves weirdly on B/W term. In the mentioned B/W setup, the colorscheme was default because .vimrc is empty. Anyway, if you want to see the matchparen problem on BW term (with default colorscheme), you can set TERM to xterm-mono and see for yousrself. Yakov --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: weird up/down arrows behaviour on braces 7.1.87
On 8/28/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 8/27/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: I get weird up/down behaviour when cursor traverses the braces. vim 7.1.87, no custom plugins. This is apparently somehow related to matchparen. The testfile is x.c below. Here is what happens if I press down starting from the beginning of file, position 1: 1. Down. instead of going to line 2, cursor shows at line 4 !!! 2. Down. cursor is at line 3 3. Down. cursor is at line 2 !!! 4. Down. cursor is at line 5 6. Up. Cursor is at line 2!!! 7. Up. Cursor is at line 3. 8. Up. Cursor is '}' line 4!!! 9. Up. Cursor is at line 1. --- x.c int foo() { return 0; } /* */ I don't have a vt220 so I can't try it out. I wonder if you are actually using a vt220 anyway, these are quite rare these days... I observe same results when setting XTERM to xterm-mono. The terminal was actually xterm. You can change vt220 to xterm-mono and see the same results. How can you tell where the cursor is and it's not the highlighting that makes you think the cursor is somewhere else? I can do :echo line('.') col('.'). This shows me that cursor is not where vim shows the white block on the screen. Try using a different color scheme. I normally work in color xterm. There is no problem there. I do not normally work in B/W term. What we were doing, we were checking how some console software (not vim) behaves under the black-and-white TERM. As a side effect, I noticed that matchparen behaves weirdly on B/W term. In the mentioned B/W setup, the colorscheme was default because .vimrc is empty. Anyway, if you want to see the matchparen problem on BW term (with default colorscheme), you can set TERM to xterm-mono and see for yousrself. Maybe the solution is that patchparen would turn itself off when the terminal is black and white. Even if matchparen gets fixed and shows exactly same blocks at two places -- at the cursor point and and at the matching parent point -- this looks confusing. Yakov --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: weird up/down arrows behaviour on braces 7.1.87
Yakov Lerner wrote: [snip] Anyway, if you want to see the matchparen problem on BW term (with default colorscheme), you can set TERM to xterm-mono and see for yousrself. [snip] Just run TERM=xterm-mono vim in gnome-terminal (ver. 2.18.1) I see full block at matching paren and blinking full block at cursor, which seems to me pretty understandable. On my xterm (ver. 228) the cursor on paren becomes full block and it seems to be using same fg and bg colors, so the character (the paren) under it is not seen. The matching paren is highlighted in the same way as regular characters are highlighted when the cursor is on them. Changing xterm-mono to vt220 does not seem to have any effect. Any additional info needed? -- Beating the averages: http://www.paulgraham.com/avg.html Python paradox: http://www.paulgraham.com/pypar.html Bad Vista:http://badvista.org/ XML sucks:http://c2.com/cgi/wiki?XmlSucks For robots (please don't mail me there): [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: weird up/down arrows behaviour on braces 7.1.87
Yakov Lerner wrote: I get weird up/down behaviour when cursor traverses the braces. vim 7.1.87, no custom plugins. This is apparently somehow related to matchparen. The testfile is x.c below. Here is what happens if I press down starting from the beginning of file, position 1: 1. Down. instead of going to line 2, cursor shows at line 4 !!! 2. Down. cursor is at line 3 3. Down. cursor is at line 2 !!! 4. Down. cursor is at line 5 6. Up. Cursor is at line 2!!! 7. Up. Cursor is at line 3. 8. Up. Cursor is '}' line 4!!! 9. Up. Cursor is at line 1. --- x.c int foo() { return 0; } /* */ I don't have a vt220 so I can't try it out. I wonder if you are actually using a vt220 anyway, these are quite rare these days... I observe same results when setting XTERM to xterm-mono. The terminal was actually xterm. You can change vt220 to xterm-mono and see the same results. How can you tell where the cursor is and it's not the highlighting that makes you think the cursor is somewhere else? I can do :echo line('.') col('.'). This shows me that cursor is not where vim shows the white block on the screen. Try using a different color scheme. I normally work in color xterm. There is no problem there. I do not normally work in B/W term. What we were doing, we were checking how some console software (not vim) behaves under the black-and-white TERM. As a side effect, I noticed that matchparen behaves weirdly on B/W term. In the mentioned B/W setup, the colorscheme was default because .vimrc is empty. Anyway, if you want to see the matchparen problem on BW term (with default colorscheme), you can set TERM to xterm-mono and see for yousrself. After I do :set term=xterm-mono I get no syntax HL and no matchparen highlighting. The cursor shows up in the expected position. I suspect there is something wrong with your termcap/terminfo entry for xterm-mono. Check the output of :set termcap. -- hundred-and-one symptoms of being an internet addict: 269. You receive an e-mail from the wife of a deceased president, offering to send you twenty million dollar, and you are not even surprised. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\help me help AIDS victims -- http://ICCF-Holland.org/// --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: weird up/down arrows behaviour on braces 7.1.87
On 8/27/07, Yakov Lerner [EMAIL PROTECTED] wrote: I get weird up/down behaviour when cursor traverses the braces. vim 7.1.87 , no custom plugins. This is apparently somehow related to matchparen. The testfile is x.c below. Here is what happens if I press down starting from the beginning of file, position 1: 1. Down. instead of going to line 2, cursor shows at line 4 !!! 2. Down. cursor is at line 3 3. Down. cursor is at line 2 !!! 4. Down. cursor is at line 5 6. Up. Cursor is at line 2!!! 7. Up. Cursor is at line 3. 8. Up. Cursor is '}' line 4!!! 9. Up. Cursor is at line 1. --- x.c int foo() { return 0; } /* */ Yakov The problem is related to TERM set to vt200 and it being black-and-white, and syntax off. When TERM is xterm and color, everything is fine, problem does not appear. Yakov --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: weird up/down arrows behaviour on braces 7.1.87
Yakov Lerner wrote: I get weird up/down behaviour when cursor traverses the braces. vim 7.1.87, no custom plugins. This is apparently somehow related to matchparen. The testfile is x.c below. Here is what happens if I press down starting from the beginning of file, position 1: 1. Down. instead of going to line 2, cursor shows at line 4 !!! 2. Down. cursor is at line 3 3. Down. cursor is at line 2 !!! 4. Down. cursor is at line 5 6. Up. Cursor is at line 2!!! 7. Up. Cursor is at line 3. 8. Up. Cursor is '}' line 4!!! 9. Up. Cursor is at line 1. --- x.c int foo() { return 0; } /* */ Yakov GUI or console? Any colorscheme? Also with vim -u /usr/local/share/vim/vim71/vimrc_example.vim -N x.c (Unix) or gvim -u C:\PROGRA~1\vim\vim71\vimrc_example.vim -N x.c (Windows) ? Best regards, Tony. -- George Orwell was an optimist. --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: weird up/down arrows behaviour on braces 7.1.87
Yakov Lerner wrote: I get weird up/down behaviour when cursor traverses the braces. vim 7.1.87, no custom plugins. This is apparently somehow related to matchparen. The testfile is x.c below. Here is what happens if I press down starting from the beginning of file, position 1: 1. Down. instead of going to line 2, cursor shows at line 4 !!! 2. Down. cursor is at line 3 3. Down. cursor is at line 2 !!! 4. Down. cursor is at line 5 6. Up. Cursor is at line 2!!! 7. Up. Cursor is at line 3. 8. Up. Cursor is '}' line 4!!! 9. Up. Cursor is at line 1. --- x.c int foo() { return 0; } /* */ How can you tell where the cursor is and it's not the highlighting that makes you think the cursor is somewhere else? Try using a different color scheme. I don't have a vt220 so I can't try it out. I wonder if you are actually using a vt220 anyway, these are quite rare these days... -- hundred-and-one symptoms of being an internet addict: 255. You work for a newspaper and your editor asks you to write an article about Internet addiction...in the first person. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\help me help AIDS victims -- http://ICCF-Holland.org/// --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---