Re: Improving vim startup time for very large files

2013-07-17 Fir de Conversatie Ingo Karkat
On 17-Jul-2013 07:58 +0200, Ron Aaron wrote: I (and my colleagues) often need to view extremely large log files ( 1G). From force of habit we use vim; but vim takes a very long time to open huge files. Even turning off the swap etc only partially mitigates the load time. I would like to

Patch 7.4a.025

2013-07-17 Fir de Conversatie Bram Moolenaar
Patch 7.4a.025 Problem:Get the press-Enter prompt even after using :redraw. Solution: Clear need_wait_return when executing :redraw. Files: src/ex_docmd.c *** ../vim-7.4a.024/src/ex_docmd.c 2013-07-05 19:44:02.0 +0200 --- src/ex_docmd.c 2013-07-17 11:42:57.0

[request] Events for some internal function calls

2013-07-17 Fir de Conversatie curist
Say, delete(), mkdir(), writefile(), and other functions that will alter file system state I'm not aware of. Emitting ShellCmdPost or even a new event would makes life easier. -- -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text you are

Re: Gap between scrollbar and window border when compiled with Visual Studio 2012

2013-07-17 Fir de Conversatie Andre Sihera
On 17/07/13 18:32, Mike Williams wrote: On 16/07/2013 09:28, Mike Williams wrote: On 15/07/2013 22:19, Andre Sihera wrote: Actually, come to think of it, the best logical place to start looking would be at any window size or decoration calculations that *don't* use GetSystemMetrics().

[patch] Win32: moving mouse won't make it appear

2013-07-17 Fir de Conversatie Ken Takata
Hi, I have fixed the following issue from the todo.txt: 8 Win32: When mouse is hidden and in the toolbar, moving it won't make it appear. (Sami Salonen) It was the same for the tabline. HandleMouseHide() is called inside the main WndProc. However, when moving mouse in the toolbar or

[patch] Win32: tabline may flicker

2013-07-17 Fir de Conversatie Ken Takata
Hi, The tabline may flicker when opening a new tab after 7.3.759 on Win32. How to reproduce: gvim -u NONE -U NONE :tabe Open a new tab. The tabline will appear. :tabe Open the third tab. The tabline may flicker. (Some extra tabs appear a moment.) It seems to be caused by

Re: BUG: 2dd does not delete on last line

2013-07-17 Fir de Conversatie Bram Moolenaar
On 07/16/13 18:30, Adri Verhoef wrote: Ik ben het met je eens, Bram, je schreef op 2013-07-16 17:21: Maybe it's a bug that when you tell Vim to delete lines that don't exist it doesn't beep and do nothing. But it's always been that way and there is no reason why it's more of a problem

Patch 7.4a.026

2013-07-17 Fir de Conversatie Bram Moolenaar
Patch 7.4a.026 Problem::diffoff does not remove folds. (Ramel) Solution: Do not restore 'foldenable' when 'foldmethod' is manual. Files: src/diff.c *** ../vim-7.4a.025/src/diff.c 2013-07-03 15:23:18.0 +0200 --- src/diff.c 2013-07-17 13:43:15.0 +0200 ***

Re: BUG: folding is not cleared after :diffo! 7.4a

2013-07-17 Fir de Conversatie Bram Moolenaar
Ramel wrote: I'm running Vim 7.4a BETA and have an issue with diff mode -When trying to exit diff mode with :diffoff! the folding is not cleared as it was in older versions. To reproduce: gvim -u NONE -c for i in range(1,100) | call setline(i,i) | endfor inside Vim: ggyG :vnew P

Re: [patch] Win32: moving mouse won't make it appear

2013-07-17 Fir de Conversatie Bram Moolenaar
Ken Takata wrote: I have fixed the following issue from the todo.txt: 8 Win32: When mouse is hidden and in the toolbar, moving it won't make it appear. (Sami Salonen) It was the same for the tabline. HandleMouseHide() is called inside the main WndProc. However, when moving

Re: Patch: Very minor doc fix

2013-07-17 Fir de Conversatie Bram Moolenaar
glts wrote: Spotted this very minor error in index.txt. Thanks. diff -r c015eedb9b4a runtime/doc/index.txt --- a/runtime/doc/index.txtSun Jul 14 15:06:50 2013 +0200 +++ b/runtime/doc/index.txtMon Jul 15 20:07:27 2013 +0200 @@ -1191,7 +1191,7 @@ |:digraphs|:dig[raphs]show

Re: [patch] Win32: tabline may flicker

2013-07-17 Fir de Conversatie Bram Moolenaar
Ken Takata wrote: The tabline may flicker when opening a new tab after 7.3.759 on Win32. How to reproduce: gvim -u NONE -U NONE :tabe Open a new tab. The tabline will appear. :tabe Open the third tab. The tabline may flicker. (Some extra tabs appear a moment.) It seems to be

Re: BUG: :new ++opt does not work

2013-07-17 Fir de Conversatie Bram Moolenaar
Ingo Karkat wrote: The help states: ,[ :help :new ] | If 'fileformats' is not empty, the first format given will be | used for the new buffer. If 'fileformats' is empty, the | 'fileformat' of the current buffer is used. This can be | overridden with the |++opt| argument. `

Re: Gap between scrollbar and window border when compiled with Visual Studio 2012

2013-07-17 Fir de Conversatie Mike Williams
On 17/07/2013 11:38, Andre Sihera wrote: On 17/07/13 18:32, Mike Williams wrote: On 16/07/2013 09:28, Mike Williams wrote: On 15/07/2013 22:19, Andre Sihera wrote: Actually, come to think of it, the best logical place to start looking would be at any window size or decoration calculations

[path] Win32: fix gui calculations for VS2012 builds

2013-07-17 Fir de Conversatie Mike Williams
Hi, Attached is a first pass at a patch to fix various issues with the GVIM Window on Windows when building with Visual Studio 2012. I have tested that VS2010 are still ok, but it needs testing with other Windows compilers - VC6, 7, 8 and 9, Borland C, Mingw and so on. TTFN Mike -- There

Re: [PATCH] ftplugin/man.vim

2013-07-17 Fir de Conversatie Bram Moolenaar
SungHyun Nam wrote: I noticed ftplugin/man.vim has problem if user set nu or rnu. I'm not sure disabling the nu/rnu is a good idea. I just follow the rule of VIM's help page. If someone wants to set nu/rnu in man page, we can change like: let $MANWIDTH = winwidth(0) - nu - rnu I'm

Re: [patch] fixed 2 errors runtime/doc/spell.txt

2013-07-17 Fir de Conversatie Bram Moolenaar
Dominique wrote: Attached patch fixes 2 errors in runtime/doc/spell.txt. Thanks! -- Engineers are always delighted to share wisdom, even in areas in which they have no experience whatsoever. Their logic provides them with inherent insight into any field of expertise. This can be a problem

Re: Patch: Very minor doc fix

2013-07-17 Fir de Conversatie Jürgen Krämer
Hi, Bram Moolenaar wrote: glts wrote: Spotted this very minor error in index.txt. Thanks. diff -r c015eedb9b4a runtime/doc/index.txt --- a/runtime/doc/index.txtSun Jul 14 15:06:50 2013 +0200 +++ b/runtime/doc/index.txtMon Jul 15 20:07:27 2013 +0200 @@ -1191,7 +1191,7 @@

Re: Vim development process is utterly broken (Was: Re: [patch] test98 stops when using gvim)

2013-07-17 Fir de Conversatie Ben Fritz
On Tuesday, July 16, 2013 9:16:09 PM UTC-5, MarcWeber wrote: Excerpts from Tony Mechelynck's message of Wed Jul 17 03:45:35 +0200 2013: You can share them in diff format, just like the patches that I see on vim_dev. I'm talking about hg pull like sharing. URL? still the

Re: Patch: Very minor doc fix

2013-07-17 Fir de Conversatie glts
On Wed, Jul 17, 2013 at 4:32 PM, Jürgen Krämer jottka...@googlemail.com wrote: Bram Moolenaar wrote: glts wrote: Spotted this very minor error in index.txt. Thanks. diff -r c015eedb9b4a runtime/doc/index.txt --- a/runtime/doc/index.txtSun Jul 14 15:06:50 2013 +0200 +++

Patch 7.4a.028

2013-07-17 Fir de Conversatie Bram Moolenaar
Patch 7.4a.028 Problem:Crash when spell checking in new buffer. Solution: Set the b_p_key field. (Mike Williams) Files: src/spell.c, src/testdir/test58.in *** ../vim-7.4a.027/src/spell.c 2013-06-08 16:10:52.0 +0200 --- src/spell.c 2013-07-17 17:28:28.0 +0200

Re: Improving vim startup time for very large files

2013-07-17 Fir de Conversatie Ben Fritz
On Wednesday, July 17, 2013 1:20:15 AM UTC-5, Ingo Karkat wrote: On 17-Jul-2013 07:58 +0200, Ron Aaron wrote: I (and my colleagues) often need to view extremely large log files ( 1G). From force of habit we use vim; but vim takes a very long time to open huge files. The best

Patch 7.4a.027

2013-07-17 Fir de Conversatie Bram Moolenaar
Patch 7.4a.027 Problem:When Python adds lines to another buffer the cursor position is wrong, it might be below the last line causing ml_get errors. (Vlad Irnov) Solution: Temporarily change the current window, so that marks are corrected properly. Files:

Re: [request] Events for some internal function calls

2013-07-17 Fir de Conversatie curist
On Wednesday, July 17, 2013 10:06:26 PM UTC+8, Bram Moolenaar wrote: Curist wrote: Say, delete(), mkdir(), writefile(), and other functions that will alter file system state I'm not aware of. Emitting ShellCmdPost or even a new event would makes life easier. This will cause a

Re: Issue 150 in vim: same normal cmds on linux and windows

2013-07-17 Fir de Conversatie Ben Fritz
On Tuesday, July 16, 2013 9:29:19 PM UTC-5, v...@googlecode.com wrote: I tested with vim 7.3.822 on win7 this config: :ver VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul 17 2013 03:39:13) MS-Windows 32-bit console version Included patches: 1-822 Compiled by g_user7@win7-PC

Re: Improving vim startup time for very large files

2013-07-17 Fir de Conversatie Mike Williams
On 17/07/2013 16:22, Ben Fritz wrote: On Wednesday, July 17, 2013 1:20:15 AM UTC-5, Ingo Karkat wrote: On 17-Jul-2013 07:58 +0200, Ron Aaron wrote: I (and my colleagues) often need to view extremely large log files ( 1G). From force of habit we use vim; but vim takes a very long time

Re: Patch: Very minor doc fix

2013-07-17 Fir de Conversatie Bram Moolenaar
Jürgen Krämer wrote: Bram Moolenaar wrote: glts wrote: Spotted this very minor error in index.txt. Thanks. diff -r c015eedb9b4a runtime/doc/index.txt --- a/runtime/doc/index.txtSun Jul 14 15:06:50 2013 +0200 +++ b/runtime/doc/index.txtMon Jul 15 20:07:27 2013 +0200

Re: [path] Win32: fix gui calculations for VS2012 builds

2013-07-17 Fir de Conversatie Bram Moolenaar
Mike Williams wrote: Attached is a first pass at a patch to fix various issues with the GVIM Window on Windows when building with Visual Studio 2012. I have tested that VS2010 are still ok, but it needs testing with other Windows compilers - VC6, 7, 8 and 9, Borland C, Mingw and so on.

Problems with make autoconf

2013-07-17 Fir de Conversatie björn
Hi, Whenever I type make autoconf (on Mac OS X 10.6, GNU Make 3.81), the 'auto/configure' script is run instead of begin generated by autoconf. The problem seems to be the src/Makefile target: config auto/config.mk: auto/configure config.mk.in config.h.in This target gets run instead of the

Re: Improving vim startup time for very large files

2013-07-17 Fir de Conversatie Benjamin Fritz
On Wed, Jul 17, 2013 at 10:49 AM, Mike Williams mike.willi...@globalgraphics.com wrote: Does anyone have hard numbers? I have just loaded an ~900MB PDF file in ~7s (Win7 x64, 8GB, Core2Duo 2.3GHz), my normal VIM config (although I do have maxmem always set to maximum). Now try writing it. I

Re: Patch 7.4a.027

2013-07-17 Fir de Conversatie Chris Sutcliffe
On 17 July 2013 11:15, Bram Moolenaar wrote: Patch 7.4a.027 Problem:When Python adds lines to another buffer the cursor position is wrong, it might be below the last line causing ml_get errors. (Vlad Irnov) Solution: Temporarily change the current window, so

Re: [path] Win32: fix gui calculations for VS2012 builds

2013-07-17 Fir de Conversatie Mike Williams
On 17/07/2013 16:56, Bram Moolenaar wrote: Mike Williams wrote: Attached is a first pass at a patch to fix various issues with the GVIM Window on Windows when building with Visual Studio 2012. I have tested that VS2010 are still ok, but it needs testing with other Windows compilers - VC6, 7,

build failure

2013-07-17 Fir de Conversatie tooth pik
I just updated and tried to build, yeilding: objects/if_python.o: In function `InsertBufferLines': /home/name/.build/vim/vim/src/if_py_both.h:4018: undefined reference to `find_win_for_buf' /home/name/.build/vim/vim/src/if_py_both.h:4076: undefined reference to `find_win_for_buf' collect2:

Build failure OS X 10.8.4 for 7.4a.28

2013-07-17 Fir de Conversatie Manuel Ortega
Hello, Just pulled 7.4a28, after having successfully build 7.4a.24. Build failed with this at the end: Undefined symbols for architecture x86_64: _find_win_for_buf, referenced from: _RBAppend in if_python.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit

Re: Build failure OS X 10.8.4 for 7.4a.28

2013-07-17 Fir de Conversatie Manuel Ortega
On Wed, Jul 17, 2013 at 12:36 PM, Manuel Ortega mannyvim...@gmail.comwrote: Hello, Just pulled 7.4a28, after having successfully build 7.4a.24. Build failed with this at the end: Undefined symbols for architecture x86_64: _find_win_for_buf, referenced from: _RBAppend in

Re: Improving vim startup time for very large files

2013-07-17 Fir de Conversatie Mike Williams
On 17/07/2013 17:13, Benjamin Fritz wrote: On Wed, Jul 17, 2013 at 10:49 AM, Mike Williams mike.willi...@globalgraphics.com wrote: Does anyone have hard numbers? I have just loaded an ~900MB PDF file in ~7s (Win7 x64, 8GB, Core2Duo 2.3GHz), my normal VIM config (although I do have maxmem

Patch 7.4a.029

2013-07-17 Fir de Conversatie Bram Moolenaar
Patch 7.4a.029 Problem:Can't build with MzScheme on Ubuntu 13.04. Solution: Add configure check for the ffi library. Files: src/configure.in, src/auto/configure *** ../vim-7.4a.028/src/configure.in2013-07-12 20:07:17.0 +0200 --- src/configure.in2013-07-17

Patch 7.4a.030

2013-07-17 Fir de Conversatie Bram Moolenaar
Patch 7.4a.030 (after 7.4.027) Problem:Missing find_win_for_buf(). (toothpik) Solution: Add missing changes. Files: src/buffer.c *** ../vim-7.4a.029/src/buffer.c2013-07-03 15:58:36.0 +0200 --- src/buffer.c2013-07-17 16:39:00.0 +0200 *** ***

Re: Vim 7.4a ready for beta testing (test96 FAILED)

2013-07-17 Fir de Conversatie Nicolas Goles Domic
On Sunday, July 7, 2013 8:51:04 PM UTC-4, raf wrote: Bram Moolenaar wrote: Announcing: Vim (Vi IMproved) version 7.4a BETA This is the first BETA release of Vim 7.4. Please check that the distribution is OK. I haven't done one for a long time. Report anything that

Re: Patch 7.4a.027

2013-07-17 Fir de Conversatie Taro MURAOKA
This patch has caused a linking failure under Cygwin: objects/if_python.o: In function `InsertBufferLines': /usr/src/vim/src/if_py_both.h:4018: undefined reference to `find_win_for_buf' /usr/src/vim/src/if_py_both.h:4076: undefined reference to `find_win_for_buf' objects/if_python3.o: In

Re: Improving vim startup time for very large files

2013-07-17 Fir de Conversatie Ben Fritz
On Wednesday, July 17, 2013 11:54:59 AM UTC-5, Mike Williams wrote: On 17/07/2013 17:13, Benjamin Fritz wrote: On Wed, Jul 17, 2013 at 10:49 AM, Mike Williams mike.willi...@globalgraphics.com wrote: Does anyone have hard numbers? I have just loaded an ~900MB PDF file in ~7s

Re: Problems with make autoconf

2013-07-17 Fir de Conversatie James McCoy
On Jul 17, 2013 11:04 AM, björn bjorn.winck...@gmail.com wrote: Hi, Whenever I type make autoconf (on Mac OS X 10.6, GNU Make 3.81), the 'auto/configure' script is run instead of begin generated by autoconf. The problem seems to be the src/Makefile target: config auto/config.mk:

Patch 7.4a.031

2013-07-17 Fir de Conversatie Bram Moolenaar
Patch 7.4a.031 Problem:Compiler warnings. (Charles Campbell) Solution: Initialize variables even when not needed. Files: src/regexp_nfa.c, src/search.c *** ../vim-7.4a.030/src/regexp_nfa.c2013-07-14 12:34:52.0 +0200 --- src/regexp_nfa.c2013-07-17 19:19:10.0

Patch 7.4a.032

2013-07-17 Fir de Conversatie Bram Moolenaar
Patch 7.4a.032 Problem:New regexp engine: Does not match shorter alternative. (Ingo Karkat) Solution: Do not drop a new state when the PIM info is different. Files: src/regexp_nfa.c *** ../vim-7.4a.031/src/regexp_nfa.c2013-07-17 19:22:04.0 +0200 ---

Questions, Thoughts, and Experiments with `main_syntax` and html.vim

2013-07-17 Fir de Conversatie Amadeus Demarzi
This is probably going to be a bit long winded, so bear with me. As a preface, I do a lot of HTML/CSS/Javascript development in vim. I use both a special Javascript ( https://github.com/amadeus/vim-javascript ) and CSS ( https://github.com/amadeus/Better-CSS-Syntax-for-Vim ) plugin that

Re: Patch 7.4a.027

2013-07-17 Fir de Conversatie Bram Moolenaar
Taro Muraoka wrote: This patch has caused a linking failure under Cygwin: objects/if_python.o: In function `InsertBufferLines': /usr/src/vim/src/if_py_both.h:4018: undefined reference to `find_win_for_buf' /usr/src/vim/src/if_py_both.h:4076: undefined reference to

Patch 7.4a.033

2013-07-17 Fir de Conversatie Bram Moolenaar
Patch 7.4a.033 Problem:Test 98 always passes. Solution: Include test98a.in in test98.in, execute the crucial command in one line. (Yukihiro Nakadaira) Files: src/testdir/test98.in, src/testdir/test98a.in *** ../vim-7.4a.032/src/testdir/test98.in 2013-07-09

Re: Issue 150 in vim: same normal cmds on linux and windows

2013-07-17 Fir de Conversatie Zulox4
On Wednesday, July 17, 2013 5:47:09 PM UTC+2, Ben Fritz wrote: On Tuesday, July 16, 2013 9:29:19 PM UTC-5, v...@googlecode.com wrote: I tested with vim 7.3.822 on win7 this config: :ver VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul 17 2013 03:39:13)

Patch 7.4a.034

2013-07-17 Fir de Conversatie Bram Moolenaar
Patch 7.4a.034 Problem:The tabline may flicker when opening a new tab after 7.3.759 on Win32. Solution: Move call to TabCtrl_SetCurSel(). (Ken Takata) Files: src/gui_w48.c *** ../vim-7.4a.033/src/gui_w48.c 2013-07-09 17:42:42.0 +0200 --- src/gui_w48.c

Patch 7.4a.035

2013-07-17 Fir de Conversatie Bram Moolenaar
Patch 7.4a.035 Problem:Fix in patch 7.4a.032 is not tested. Solution: Add test. Files: src/testdir/test64.in, src/testdir/test64.ok *** ../vim-7.4a.034/src/testdir/test64.in 2013-06-29 12:02:33.0 +0200 --- src/testdir/test64.in 2013-07-17 20:50:17.0 +0200

:set show values when it shouldn't

2013-07-17 Fir de Conversatie Dimitar DIMITROV
Hi all, According to :h:se, :se isn't supposed to output anything at all when in default mode but it does when started like this: command vim -nNX -u NONE   Dimitar --- GPG Key: 2048R/160C6FA8 2012-10-11 Dimitar Dimitrov (kurkale6ka) mitk...@yahoo.fr -- -- You received this message from

Re: :set show values when it shouldn't

2013-07-17 Fir de Conversatie Gary Johnson
On 2013-07-17, Dimitar DIMITROV wrote: Hi all, According to :h:se, :se isn't supposed to output anything at all when in default mode but it does when started like this: command vim -nNX -u NONE Actually, :help :set doesn't say that--it says it shows all options that differ from their

Re: Issue 150 in vim: same normal cmds on linux and windows

2013-07-17 Fir de Conversatie Ben Fritz
On Wednesday, July 17, 2013 2:51:24 PM UTC-5, Zulox4 wrote: I think that the problem is result of fileencoding or utf8 encoding options. I found another problem: 1. I have 1 line in the buffer: s\x6fme\tt\x65xt\n\Sa\155ba\u201d: net\\share 2.After these commands

Re: :set show values when it shouldn't

2013-07-17 Fir de Conversatie Gary Johnson
On 2013-07-17, Gary Johnson wrote: On 2013-07-17, Dimitar DIMITROV wrote: Hi all, According to :h:se, :se isn't supposed to output anything at all when in default mode but it does when started like this: command vim -nNX -u NONE Actually, :help :set doesn't say that--it says it

:set show values when it shouldn't

2013-07-17 Fir de Conversatie Dimitar DIMITROV
On 2013-07-17, Gary Johnson wrote: On 2013-07-17, Dimitar DIMITROV wrote: Hi all, According to :h:se, :se isn't supposed to output anything at all when in default mode but it does when started like this: command vim -nNX -u NONE Actually, :help :set doesn't say that--it says

Re: Improving vim startup time for very large files

2013-07-17 Fir de Conversatie Ernie Rael
On 7/17/2013 9:54 AM, Mike Williams wrote: ... Elapsed time is ~30s. Putting a profiler on VIM while it was writing the file it reported around ~5s CPU time driving the write to disk - the rest of it is waiting for file IO to complete. So both reading and writing of large files is (not too

Re: Issue 150 in vim: same normal cmds on linux and windows

2013-07-17 Fir de Conversatie Zulox4
On Wednesday, July 17, 2013 11:31:25 PM UTC+2, Ben Fritz wrote: On Wednesday, July 17, 2013 2:51:24 PM UTC-5, Zulox4 wrote: I think that the problem is result of fileencoding or utf8 encoding options. I found another problem: 1. I have 1 line in the buffer:

Syntax highlighting for PL1 (aka PL/1 or PL/I)

2013-07-17 Fir de Conversatie Alan Thompson
Hi all, Last year I had to work on 4.5 million lines of PL1 legacy code, and was quite distressed when GVim didn't seem to have any syntax highlighting support! So, I modified an existing syntax file by adding in PL1 keywords in order to create a PL1 syntax file. I saved the results here:

PL1 (aka PL/1 or PL/I) syntax highlighting

2013-07-17 Fir de Conversatie Alan Thompson
Hi all, Last year I had to work on 4.5 million lines of legacy PL1 code and felt lost when GVim didn't have any syntax highlighting. I modified an existing syntax file with appropriate PL1 keywords and saved the result here: http://www.vim.org/scripts/script.php?script_id=4329 What would be

Syntax highlighting for PL1 (aka PL/1 or PL/I)

2013-07-17 Fir de Conversatie Alan Thompson
Hi all, Last year I had to work on 4.5 million lines of PL1 legacy code, and was quite distressed when GVim didn't seem to have any syntax highlighting support! So, I modified an existing syntax file by adding in PL1 keywords in order to create a PL1 syntax file. I saved the results here: