Re: Issue 326 in vim: filetype plugin not loaded when file opened from within vim rather than from command line

2015-02-08 Fir de Conversatie vim
Comment #2 on issue 326 by fmerci...@gmail.com: filetype plugin not loaded when file opened from within vim rather than from command line https://code.google.com/p/vim/issues/detail?id=326 According to https://www.python.org/dev/peps/pep-0008/#tabs-or-spaces - Spaces are the preferred indent

Re: Issue 326 in vim: filetype plugin not loaded when file opened from within vim rather than from command line

2015-02-08 Fir de Conversatie vim
Comment #1 on issue 326 by fritzoph...@gmail.com: filetype plugin not loaded when file opened from within vim rather than from command line https://code.google.com/p/vim/issues/detail?id=326 Why do you expect typing tab to insert 4 spaces? Where do you define this rule? One of the big cha

Issue 326 in vim: filetype plugin not loaded when file opened from within vim rather than from command line

2015-02-08 Fir de Conversatie vim
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 326 by fmerci...@gmail.com: filetype plugin not loaded when file opened from within vim rather than from command line https://code.google.com/p/vim/issues/detail?id=326 What steps will reproduce the problem? 1. Use the foll

Re: some coverity fixes

2015-02-08 Fir de Conversatie Justin M. Keyes
On Sun, Feb 8, 2015 at 8:56 PM, Justin M. Keyes wrote: > In addition to what Eliseo said, we will make an effort to label > relevant coverity issues, etc., with the vim-bug label. At any time, > you can see all vim-bug issues via this URL: > > https://github.com/neovim/neovim/issues?q=label%3Abug-

Re: some coverity fixes

2015-02-08 Fir de Conversatie Justin M. Keyes
On Sun, Feb 8, 2015 at 12:54 PM, Bram Moolenaar wrote: > > Eliseo wrote: > >> Hi, I'm the author of those commits. >> >> As I said to Christian, I try to send patches, or at least report, the >> important issues we find. >> I can't guarantee doing it always (for minor issues), though. For, >> fran

Re: vim bug?

2015-02-08 Fir de Conversatie Marc Weber
I hit similar once as well. Also note that wfoo means write foo or such - thus spaces can be omitted. > export VIM_CMD_REINTERPRETE=":;wq!#:wq!" You can implement this on your own, but such into your .vimrc let l = split('#", $VIM_CMD_REINTERPRETE) exec 'cnoremap '.l[0].' '.l[1] or similar -

Re: vim bug?

2015-02-08 Fir de Conversatie Toan Pham
​Erik, Thank you for the explanation. Maybe we should change the interpretation of that ***particular*** command, not to replace the entire file with the current line. I know that it is a feature; but i looks like it does more harm than good. When I ever need to do something like that, i would m

[bug] outcome of delete "inner tag block" changes with indent of closing tag

2015-02-08 Fir de Conversatie Jan Parthey
Hi, I see inconsistent results when typing "dit" to delete content of an XML element. Result depends on whether the closing XML tag is indented or not. Observed: Opening and closing tag end up ... - on different lines when closing tag had no indent (see Case_A below) - on same line when closing

Re: Fix crash/memory leak in some low memory situations

2015-02-08 Fir de Conversatie Bram Moolenaar
Mike Williams wrote: > There are some uses of vim_realloc() that can lead to a memory leak and > possibly an immediate crash if the call to vim_realloc() fails. A > little ironic to be leaking memory when failing trying to allocate some. > > Attached is a diff against 7.4.622. Thanks. It's

Fix crash/memory leak in some low memory situations

2015-02-08 Fir de Conversatie Mike Williams
Hi, There are some uses of vim_realloc() that can lead to a memory leak and possibly an immediate crash if the call to vim_realloc() fails. A little ironic to be leaking memory when failing trying to allocate some. Attached is a diff against 7.4.622. There is one occurrence I didn't fix, in

Re: Netrw and Patch592 problem

2015-02-08 Fir de Conversatie Bram Moolenaar
Xavier de Gaye wrote: > On 02/07/2015 03:59 PM, Bram Moolenaar wrote: > >> Charles Campbell wrote: > >> > >>> Looks like patch#592 stops netrw from working with remote files: vim > >>> scp://hostname/ no longer works. > >> > >> What this patch does is that when ":e filename" is used when

Re: some coverity fixes

2015-02-08 Fir de Conversatie Bram Moolenaar
Eliseo wrote: > Hi, I'm the author of those commits. > > As I said to Christian, I try to send patches, or at least report, the > important issues we find. > I can't guarantee doing it always (for minor issues), though. For, > frankly, as code diverges, it becomes more and more difficult to stat

Re: Fix potential NULL pointer dereference in if_py_both.h

2015-02-08 Fir de Conversatie Bram Moolenaar
Mike Williams wrote: > In if_py_both.h there is code there is code that dereferences a pointer > before checking if it is NULL. Attached patch against .622 fixes. Thanks! -- Some of the well known MS-Windows errors: ETIME Wrong time, wait a little while ECRASH

Re: Ctrl_L behave like Ctrl_P while pum_visible.

2015-02-08 Fir de Conversatie h_east
Hi Bram and Nice Vim developers, 2015/1/6(Tue) 4:58:27 UTC+9 Bram Moolenaar: > Yasuhiro Matsumoto wrote: > > > bug.vim > > --- > > set nocompatible > > > > inoremap =ListMonths() > > > > func! ListMonths() > > call complete(col('.'), ['January', 'February', 'March', > >

Re: Netrw and Patch592 problem

2015-02-08 Fir de Conversatie Xavier de Gaye
On 02/07/2015 03:59 PM, Bram Moolenaar wrote: >> Charles Campbell wrote: >> >>> Looks like patch#592 stops netrw from working with remote files: vim >>> scp://hostname/ no longer works. >> >> What this patch does is that when ":e filename" is used when the >> 'buftype' is not a file, it does no

Re: Fix potential NULL pointer dereference in if_py_both.h

2015-02-08 Fir de Conversatie Mike Williams
One asterisk too many, compilable patch now attached. Mike -- Just when you thought you were winning the rat race, along comes a faster rat. -- -- 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, v

Fix potential NULL pointer dereference in if_py_both.h

2015-02-08 Fir de Conversatie Mike Williams
Hi, In if_py_both.h there is code there is code that dereferences a pointer before checking if it is NULL. Attached patch against .622 fixes. Mike -- Just when you thought you were winning the rat race, along comes a faster rat. -- -- You received this message from the "vim_dev" maillist.

Re: Warning in huge compile of eval.c

2015-02-08 Fir de Conversatie Mike Williams
On 07/02/2015 18:00, James McCoy wrote: On Sat, Feb 07, 2015 at 03:42:50PM +, Mike Williams wrote: I have looked through the potentially uninitialised variables reported for my usual Windows builds and they all look benign. It seems the compiler is just spotting branches in the code where t

Re: vim bug?

2015-02-08 Fir de Conversatie Erik Falor
On Sat, Feb 07, 2015 at 12:26:46PM -0800, Toan Pham wrote: > > > Hi, i am not sure if this is a bug; but when i use vim, and depending on the > keyboard settings, i usually type the command below to exit. > > :wq! > > however, because of the keyboard settings, sometimes it will be entered as >