Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 225 by [email protected]: View Cursor Line Only menu dysfunctional in Insert Mode
http://code.google.com/p/vim/issues/detail?id=225

What steps will reproduce the problem?
1. Run evim or equivalent, editing a file with multiple folds.
2. Find a search string embedded within a fold.
3. Enter Insert mode, if necessary.
4. Use the Tools->Folding->View Cursor Line Only menu item.

What is the expected output? What do you see instead?
Folds should be closed except for the area in which the cursor landed within the fold. The existing system will, instead, insert "zx" at the cursor.

What version of the product are you using? On what operating system?
Vim 7.0, RHEL 5.5

Please provide any additional information below.
I have tracked this down to an error in menu.vim, line 479 in the current menu.vim file (dated May 17, 2013). I am unable to provide a patch file, since the RHEL system is on an isolated network, but the solution is to add the following line after line 479:

inoremenu 40.340.120 &Tools.&Folding.Vie&w\ Cursor\ Line\ only<Tab>zMzx <C-O>zM<C-O>zx

Ironically the problem is addressed in the help file for :inoremenu. Because there are two normal mode commands, the standard substitution of the :anoremenu command is inadequate.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

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

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui