Re: redraw on insert/visual mode leave

2012-10-04 Fir de Conversatie Christian Brabandt
Hi Josh! On Do, 04 Okt 2012, Josh . wrote: > Hello, > When I leave insert or visual mode with the visual > selection stays. I can move around normally (since I'm now in normal > mode), but the screen doesn't update until I move. Adding the > following mappings fixes the issue: > > imap

Re: Unique winnr()

2012-10-04 Fir de Conversatie Ben Fritz
On Thursday, October 4, 2012 7:06:22 PM UTC-5, Brandon Coleman wrote: > I had the idea of creating a command that would "link" two windows together > so that whatever buffer is loaded in window 1 would be in the window 5 on tab > 2. The problem with this idea is that there is not a unique ID for

Unique winnr()

2012-10-04 Fir de Conversatie Brandon Coleman
I had the idea of creating a command that would "link" two windows together so that whatever buffer is loaded in window 1 would be in the window 5 on tab 2. The problem with this idea is that there is not a unique ID for each window, So I came up with the proof of concept unique number patch b

[Bug] Segfault when editing a .c file (using clang_complete)

2012-10-04 Fir de Conversatie thomasg
Hi everyone, I'm not really sure if this is a bug in Vim directly because I'm using some extension scripts which directly trigger it; however, as Vim is segfaulting I assume the bug is is only triggered and not directly caused by the scripts. Environment: - vim-7.3.646 - clang_complete plugin - c

redraw on insert/visual mode leave

2012-10-04 Fir de Conversatie Josh .
Hello, When I leave insert or visual mode with the visual selection stays. I can move around normally (since I'm now in normal mode), but the screen doesn't update until I move. Adding the following mappings fixes the issue: imap :redraw vmap :redraw My `lazyredraw` option is off. For

[PATCH] add syntax file for apt.conf

2012-10-04 Fir de Conversatie bilibop project
Hi, This patch adds support for APT config files. Please let me know if it is in an appropriate format: --- a/runtime/filetype.vim 2012-10-04 23:57:11.704541092 +0200 +++ b/runtime/filetype.vim 2012-10-05 00:00:35.989972876 +0200 @@ -112,6 +112,11 @@ " Apache config file au BufNewFile

showing actually replacement when using the 'c' flag in subtitute?

2012-10-04 Fir de Conversatie skeept
If I am doing a substitution: :%s/\(a\|b\)\(c\|d\)/\2\1\gc then the message that shows is something like would you like to replace by '\2\1' ...?\ It would be nice to actually see what the new text would be (for more complicated substitutions of course). Is there such an option that would allo

Re: [PATCH] Redraws slow down proportionately to the number of open tabs in gvim/win32

2012-10-04 Fir de Conversatie Bram Moolenaar
Arseny Kapoulkine wrote: > gui_mch_update_tabline in Windows gvim is quadratic in the number of > tabs. This happens because the entire control is redrawn after every > InsertItem/SetItem/DeleteItem message. The delay starts to get > *really* noticeable at 60 open tabs or so (Windows 7). > > Not

Re: Duplicate -U_FORTIFY_SOURCE and -Wl,--as-needed after removing auto/config.cache

2012-10-04 Fir de Conversatie Bram Moolenaar
Tony Mechelynck wrote: > When there has been a change in the configuration files, make tries to > rerun configure, and fails, requesting that I remove auto/config.cache. > If I do, one more -U_FORTIFY_SOURCE is added in the compile and one more > -Wl,--as-needed in the link in addition to what

Re: [PATCH] add syntax file for dts/dtsi

2012-10-04 Fir de Conversatie Bram Moolenaar
Daniel Mack wrote: > >> This patch adds support for dts/dtsi (device-tree) files. > >> > >> Please let me know if that is an appropriate form of submission - I > >> never contributed to vim before :) > > > > The filetype detection looks good. > > > > For the syntax file, please add a header lik

Re: Bug: filetypes that rely on &sw fail after the patch which allows sw to be 0

2012-10-04 Fir de Conversatie Bram Moolenaar
So8res wrote: > Many filetypes use &sw in their indent files. Most prominent among > these is the vim indent file itself. > > If you use the new feature that allows sw to be 0 (causing it to fall > back to tabstop) then indentation in all of these filetypes breaks. > > According to a simple gre

Re: [patch] fix :!ls missing colon

2012-10-04 Fir de Conversatie Bram Moolenaar
Ken Takata wrote: > 2012/10/03 Wed 23:21:22 UTC+9 Bram Moolenaar: > > Thanks. I'll also update the translations that have this. > > Attached file updates Japanese translations. Thanks! -- Lawmakers made it obligatory for everybody to take at least one bath each week -- on Saturday night.

Patch 7.3.682

2012-10-04 Fir de Conversatie Bram Moolenaar
Patch 7.3.682 (after 7.3.677) Problem:Compiler complains about incompatible types. Solution: Remove type casts. (hint by Danek Duvall) Files: src/edit.c *** ../vim-7.3.681/src/edit.c 2012-08-08 18:01:00.0 +0200 --- src/edit.c 2012-10-04 22:33:22.0 +0200 ***

Re: Patch 7.3.677

2012-10-04 Fir de Conversatie Bram Moolenaar
Danek Duvall wrote: > On Wed, Oct 03, 2012 at 06:25:17PM +0200, Bram Moolenaar wrote: > > > Patch 7.3.677 > > Problem:buf_spname() is used inconsistently. > > Solution: Make the return type a char_u pointer. Check the size of the > > returned string. > > Files: src/buffer

[PATCH] Redraws slow down proportionately to the number of open tabs in gvim/win32

2012-10-04 Fir de Conversatie Arseny Kapoulkine
gui_mch_update_tabline in Windows gvim is quadratic in the number of tabs. This happens because the entire control is redrawn after every InsertItem/SetItem/DeleteItem message. The delay starts to get *really* noticeable at 60 open tabs or so (Windows 7). Note that disabling redraws during the

Re: cnoremap e maps within the expression register

2012-10-04 Fir de Conversatie Marcin Szamotulski
> > Thanks. Thus this fixes the reported problem without side effects? I have tested it and it works fine in general. I only found a strange behaviour in one case. I have a script which defines a cmap to and calls a function via e. When the function name is XX() everything works fine, when the

Re: Patch 7.3.677

2012-10-04 Fir de Conversatie Danek Duvall
On Wed, Oct 03, 2012 at 06:25:17PM +0200, Bram Moolenaar wrote: > > Patch 7.3.677 > Problem:buf_spname() is used inconsistently. > Solution: Make the return type a char_u pointer. Check the size of the > returned string. > Files:src/buffer.c, src/proto/buffer.pro, src