Re: Moving away from SourceForge
On Fri, 16 Feb 2018, Bram Moolenaar wrote: The recent (and ongoing) outage of the Vim website on SourceForge shows again that this is not a good place to host Vim. [...] If you have positive or negative comments about moving to osdn.net, let's discuss that. I think this move is the right choice even without the outage. SourceForge's current owners/leadership has been engaged in behaviors that are antithetical to the original mission of the service: https://en.wikipedia.org/wiki/SourceForge#Controversies - Christian -- Christian J. RobinsonWhen someone turns things around, don't get run over. -- -- 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.
textwidth / column number is misinterpreted when using linebreak and wrap
Hey everyone, This is a crosspost of an issue I reported on GitHub[0]. Using vim (on macOS from homebrew, see the GitHub post for full version info): ``` VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jan 15 2018 12:54:51) macOS version Included patches: 1-1428 ``` Along with this test vimrc file: ``` set nocompatible " For easier display set laststatus=2 set statusline=%c set showcmd set linebreak set wrap set textwidth=100 set formatoptions=tc ``` In a terminal with 78 columns, text wrapping happens earlier than expected. You can test this with this example text (leading whitespace matters): ``` .package(url: "https://github.com/Alamofire/Alamofire.git;, .upToNextMinor(from: "4.6.0")) ``` This line, which is 94 characters long (excluding the trailing newline), causes text width issues based on the line length. For this line, textwidth should only hard wrap once you type 5 more characters, but if you have a 78 column terminal window, and the above settings, it hard wraps as soon as you type a single character. Here's a video of the issue: https://asciinema.org/a/qyPcdmuLIjrMZQrPZKc9U11H8 See the GitHub link for some more details. Any help debugging this would be greatly appreciated. 0: https://github.com/vim/vim/issues/2555 -- -- 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: pattern of func
That is due to the "greedy" nature of ".*". Replace ".*" with ".\{-}". Anycase, for a preview of what your pattern would match, you could surround your expression of interest within \zs and \ze like /^.*\zs\(\S\+()\)\ze If you have "incsearch" set, you could immediately see what your pattern matches. Regards, -Arun On Mon, Feb 19, 2018 at 12:40 PM, Ni Vawrote: > Hi, > > 1/Got a list mirror of file read that contains these kind of lines: > 19 févr. 2018 15:49:09.301 Foo.BarFoo() - FIN TOTAL temps : 0,013ms > > > 2/ attempt to map( the list and retrieve func and time > > let patfunc = '\(\S\+()\)' > let pattime = '\(\d\+\,\d\+\)' > let linepat = '^.*'.patfunc.'.*'.pattime.'.*$' > > let minitestlist = map(totaltimelist[0:10], 'substitute(v:val, linepat, > "\\1 : \\2", "")') > > > > 3/ It results in > > ['o():0,013', > > Why for the first backward ref I got only last char. > > Thank you > Niva > > -- > -- > 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. > -- -- 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.
pattern of func
Hi, 1/Got a list mirror of file read that contains these kind of lines: 19 févr. 2018 15:49:09.301 Foo.BarFoo() - FIN TOTAL temps : 0,013ms 2/ attempt to map( the list and retrieve func and time let patfunc = '\(\S\+()\)' let pattime = '\(\d\+\,\d\+\)' let linepat = '^.*'.patfunc.'.*'.pattime.'.*$' let minitestlist = map(totaltimelist[0:10], 'substitute(v:val, linepat, "\\1 : \\2", "")') 3/ It results in ['o():0,013', Why for the first backward ref I got only last char. Thank you Niva -- -- 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.