Re: How do I open a new window without losing focus in the current one?
Thank you - that works! Jeff On Tuesday, 30 December 2014 02:35:19 UTC, Ben Fritz wrote: On Monday, December 29, 2014 8:18:54 AM UTC-6, Jeff Baxter wrote: If I use :new [filename] the file is opened in a split window, but the focus is also shifted there, whereas I want it to stay in the current window. How can I do that? There is the :pedit command to open that file in the preview window. But the preview window is special; you probably don't want to do any editing in there, just reading. If that suits your needs, then this is probably what you were looking for. -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Site error
Hi guys, I wanted to check something among the scripts, and encountered the following error: An error has been encountered in accessing this page. 1. *Server:* www.vim.org 2. *URL path:* /scripts/script_search_results.php 3. *Error notes:* NONE 4. *Error type:* 404 5. *Request method:* GET 6. *Request query string:* NONE 7. *Time:* 2014-12-30 12:05:38 UTC (1419941138) *Reporting this problem:* The problem you have encountered is with a project web site hosted by SourceForge.net. This issue should be reported to the SourceForge.net-hosted project (not to SourceForge.net). *If this is a severe or recurring/persistent problem,* please do one of the following, and provide the error text (numbered 1 through 7, above): 1. Contact the project via their designated support resources http://sourceforge.net/support/prweb-lookup.php?host=www.vim.orgsupport=1. 2. Contact the project administrators of this project via email (see the upper right-hand corner of the Project Summary page http://sourceforge.net/support/prweb-lookup.php?host=www.vim.org for their usernames) at *user-name*@users.sourceforge.net If you are a maintainer of this web content, please refer to the Site Documentation regarding web services https://sourceforge.net/p/forge/documentation/Project%20Web%20Services/ for further assistance. NOTE: As of 2008-10-23 directory index display has been disabled by default. This option may be re-enabled by the project by placing a file with the name .htaccess with this line: Options +Indexes - I thought it important to publish :-( -- Urbán Gábor Linux is like a wigwam: no Gates, no Windows and an Apache inside. -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is there a way to incsearch with folded context
On Mo, 29 Dez 2014, Gary Johnson wrote: On 2014-12-29, Kevin Wu wrote: Gary Johnson於 2014年12月30日星期二UTC+8上午3時30分04秒寫道: On 2014-12-28, Kevin Wu wrote: When I do searching, the cursor would jump to the first match, if I set incsearch. But it's not true with folded context. Specifically speaking, What I want to get is that when searching, the folded context would be unfold automatically and the cursor would jump into where the first match is, and moreover when the cursor jump to another line, the unfolded context would be folded again. Is there any way to satisfy my need? Take a look at :help 'foldopen' :help 'foldclose' Regards, Gary Hi Gary, When I searched the solution for my issue, I found the option 'foldopen', and I also had checked it, which is :se fdo? foldopen=block,hor,mark,percent,quickfix,search,tag,undo Is it OK? Sorry, it's my poor English to let you misunderstand my issue. After finishing a search, the cursor will jump to the first match, even it's in the fold, that is OK. But what I want is incremental search, that is, when I typing the word a character by character, the cursor would jump into the corresponding match instantly with automatically folding and unfolding. If I set incsearch and no fold here, everything is fine. But if the 1st match is in a fold, there is no window responding, just like noincsearch. Is there a way to satisfy my need? Regards, Kevin Hi Kevin, You explained your issue well. The fault is mine. I thought that including search in 'foldopen' and setting 'foldclose' to all might do what you wanted, or be close enough, but I didn't try it before replying and I see now that it doesn't work for incremental searches. Odd. It seems to me that it should. I don't know of a way to do that. Here is a patch, that will do that, if the foldopen option contains 'search' Best, Christian -- Neue Meldungen von Windows 2000: Sie beenden hiermit die aktuelle Windows Sitzung. Wollen Sie noch ein Spiel spielen (j/n)? -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. diff --git a/src/ex_getln.c b/src/ex_getln.c --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1843,6 +1843,10 @@ cmdline_changed: validate_cursor(); end_pos = curwin-w_cursor; curwin-w_cursor = save_pos; +#ifdef FEAT_FOLDING + if (fdo_flags FDO_SEARCH) + foldOpenCursor(); +#endif } else end_pos = curwin-w_cursor; /* shutup gcc 4 */
Re: How do I open a new window without losing focus in the current one?
On 2014-12-29 18:35, Ben Fritz wrote: There is the :pedit command to open that file in the preview window. Over a decade of using vim and I'm still learning nifty new things. Thanks! -tim -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Search and hilight in several buffers
Hi, I'm looking for a command to search and hilight a pattern in several buffers. My problem is that the non-active splits don't move to the pattern found's line when I use /pattern or * for example. Any idea? thanks a lot -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Search and hilight in several buffers
Hi ivan.mercier! On Di, 30 Dez 2014, ivan.merc...@gmail.com wrote: Hi, I'm looking for a command to search and hilight a pattern in several buffers. My problem is that the non-active splits don't move to the pattern found's line when I use /pattern or * for example. Does windo /foobar not work? Best Christian -- Es ist schwer, jemanden so zu achten, wie er geachtet werden will. -- Luc de Clapiers Vauvenargues (Reflexionen und Maximen) -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is there a way to incsearch with folded context
Christian Brabandt於 2014年12月30日星期二UTC+8下午8時13分30秒寫道: On Mo, 29 Dez 2014, Gary Johnson wrote: On 2014-12-29, Kevin Wu wrote: Gary Johnson於 2014年12月30日星期二UTC+8上午3時30分04秒寫道: On 2014-12-28, Kevin Wu wrote: When I do searching, the cursor would jump to the first match, if I set incsearch. But it's not true with folded context. Specifically speaking, What I want to get is that when searching, the folded context would be unfold automatically and the cursor would jump into where the first match is, and moreover when the cursor jump to another line, the unfolded context would be folded again. Is there any way to satisfy my need? Take a look at :help 'foldopen' :help 'foldclose' Regards, Gary Hi Gary, When I searched the solution for my issue, I found the option 'foldopen', and I also had checked it, which is :se fdo? foldopen=block,hor,mark,percent,quickfix,search,tag,undo Is it OK? Sorry, it's my poor English to let you misunderstand my issue. After finishing a search, the cursor will jump to the first match, even it's in the fold, that is OK. But what I want is incremental search, that is, when I typing the word a character by character, the cursor would jump into the corresponding match instantly with automatically folding and unfolding. If I set incsearch and no fold here, everything is fine. But if the 1st match is in a fold, there is no window responding, just like noincsearch. Is there a way to satisfy my need? Regards, Kevin Hi Kevin, You explained your issue well. The fault is mine. I thought that including search in 'foldopen' and setting 'foldclose' to all might do what you wanted, or be close enough, but I didn't try it before replying and I see now that it doesn't work for incremental searches. Odd. It seems to me that it should. I don't know of a way to do that. Here is a patch, that will do that, if the foldopen option contains 'search' Best, Christian -- Neue Meldungen von Windows 2000: Sie beenden hiermit die aktuelle Windows Sitzung. Wollen Sie noch ein Spiel spielen (j/n)? Hi All, It works. Now when searching, cursor will jump into a fold, if set incsearch and search in foldopen option. And after complete the searching command, the folds which the cursor is not in would be closed, if foldclose=all Thanks for Christian's patch and Gary's responding. -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: Site error
Gabor Urban wrote: I wanted to check something among the scripts, and encountered the following error: An error has been encountered in accessing this page. 1. Server: www.vim.org 2. URL path: /scripts/script_search_results.php The site is hosted on sourceforge.org and they have problems from time to time. I check the above every day and it has been broken for the last few days. However, it is now ok. There is not much we can do about it, but thanks for reporting. John -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.