hi chris:
I tested the current release of your plugin3075, it looks the NR! feature is not well implemented.

this is the help :NR!

 :[range]NR[!]
:[range]NarrowRegion[!] When [range] is omitted, select only the current line, else use the lines in the range given and
                             open it in a new Scratch Window.
If the current line is selected and is on a folded
                             region, select the whole folded text.
Whenever you are finished modifying that region
                             simply write the buffer.
If ! is given, open the narrowed buffer not in a
                             split buffer but in the current window.

:NRV[!] Opened the narrowed window for the region that was
                            last selected in visual mode
If ! is given, open the narrowed buffer not in a
                            split buffer but in the current window.


say I have following texts in a buffer:

 1 I was born with a caul, which was advertised for sale, in
 2 the newspapers, at the low price of fifteen guineas. Whether
 3 sea-going people were short of money about that time, or
 4 were short of faith and preferred cork jackets, I don't
 5 know; all I know is, that there was but one solitary
 6 bidding, and that was from an attorney connected with the
 7 bill-broking business, who offered two pounds in cash, and
 8 the balance in sherry, but declined to be guaranteed from

temp2.txt [utf-8] [text] [1/35,1] [2%]
-- VISUAL --

now I visual select line 1 to 4 and :NR! , I end up with:

 1 I was born with a caul, which was advertised for sale, in
 2 the newspapers, at the low price of fifteen guineas. Whether
 3 sea-going people were short of money about that time, or
 4 were short of faith and preferred cork jackets, I don't

Narrow_Region_1 [utf-8] [text] [1/4,1] [25%]
-- VISUAL --

Now the problem is ,

1) whenever I :w it , this new Narrow_Region_1 buffer will disappear and go back to the original buffer.

2) now if I gv, it only select the 6th line, instead of the previously selected line 1-4.

 1 I was born with a caul, which was advertised for sale, in
 2 the newspapers, at the low price of fifteen guineas. Whether
 3 sea-going people were short of money about that time, or
 4
 5 were short of faith and preferred cork jackets, I don't
6 know; all I know is, that there was but one solitary <----gv will select this
 7 bidding, and that was from an attorney connected with the
 8 bill-broking business, who offered two pounds in cash, and
 9 the balance in sherry, but declined to be guaranteed from

3) and this is also the same with :NRV , which give me a split window with only line 6.

4) :NRV! will report:
E477: No ! allowed


and I confirmed this is the newest version v29:
*NrrwRgn.txt*   A Narrow Region Plugin (similar to Emacs)

Author:  Christian Brabandt <[email protected]>
Version: 0.29 Mon, 20 Aug 2012 19:34:23 +0200


copy vim user list as other guys might also use it.

please advise, thanks!


regards
ping

--
You received this message from the "vim_use" 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

Reply via email to