mswin: problem with C-S after C-X,C-O

2012-06-18 Thread philipmat
In Vim 7.3 mswin.vim defines `inoremap C-S C-O:updateCR`, which causes problems when pressed shortly after a C-XC-O combination because the auto-completed text will now read :update + newline instead of saving the file. The problem is caused by the C-O which undoes the autocomplete item

Re: macvim

2012-06-18 Thread Bogdan Manole
On Tuesday, June 12, 2012 12:17:30 PM UTC+2, bjorn.winckler wrote: On Jun 10, 1:56 am, John Little wrote: FWIW,your SimpleBalloon function works in my GTK2 vim 7.3.524 on linux. I can confirm that the same works on MacVim snapshot 64 on OS X 10.7.4. Have you checked that 'beval' and

Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-18 Thread skeept
experts: this might be an old topic...but surprisingly I don#39;t get a good answer from google easily... in my work I use linux and I already swapped the esc/caps with xmodmap, so I don#39;t have issue to do it for the whole computer (not just for vim). but from time to time I need

Re: Error starting gvim and using diff

2012-06-18 Thread skeept
On Sunday, June 17, 2012 9:53:43 PM UTC-5, AndyHancock wrote: On Jun 17, 10:13 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 18/06/12 03:44, AndyHancock wrote: On Jun 17, 8:16 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 17/06/12 22:14, AndyHancock wrote: I'm

Re: pydoc an run python snippets integration problems

2012-06-18 Thread Pablo Giménez
2012/6/6 Pablo Giménez pablog...@gmail.com: Hello. I am using a set of scripts to integrate Python in VIM done by Kirill Klenov know as Python mode Klen: http://www.vim.org/scripts/script.php?script_id=3770 I am having trouble with pydoc and run python code. For pydoc it uses the next

Re: Some VAM bundles with '%' in their names causing problems

2012-06-18 Thread Pablo Giménez
2012/6/14 Marc Weber marco-owe...@gmx.de: You should be more specific about 'some issues'. Which kind of issues do you observe exactly? Well I think the % symbol confuse some string evaluations. I use a function like this: function! SetLocalPath () Current basename for the buffer let

Re: syntax highlighting question

2012-06-18 Thread Ben Schmidt
On 24/05/12 9:29 AM, Kartik Agaram wrote: Lisp symbols can usually contain ':', but I'm using a dialect where ':' is special syntax. I'd like to highlight it like parens. A) My first attempt was the following: au BufReadPost *.lisp syntax match Delimiter /:/ (The autocmd is to apply this

Re: Some VAM bundles with '%' in their names causing problems

2012-06-18 Thread Christian Brabandt
Hi Pablo! On Mo, 18 Jun 2012, Pablo Giménez wrote: Well I think the % symbol confuse some string evaluations. I use a function like this: function! SetLocalPath () Current basename for the buffer let baseName = expand(%:p:h) if isdirectory(baseName) exe 'lcd ' .

Compiling MacVim

2012-06-18 Thread Eric Weir
I posted this earlier on vim_mac, but it's not very active at the moment. I thought I'd give it a try here. -- I've encountered a problem with a plugin that the developer has determined is due to a vim

Re: folding regions in php

2012-06-18 Thread Ben Schmidt
On 13/04/12 9:59 PM, André Rodier wrote: Thanks for your answer, Basically, I want to fold portions of code, encoded by #region / #endregion blocks, but I don't want to loose the ability to fold classes and methods as well. This need is crucial when you have a class with 15-20 methods, and you

Re: Compiling MacVim

2012-06-18 Thread Ben Schmidt
I've encountered a problem with a plugin that the developer has determined is due to a vim bug. He recommended that I get a more up to date version of vim. Currently I have MacVim 73 (53). I gather that to get the most up to date version it is necessary to compile it. Note that even compiling

Re: mswin: problem with C-S after C-X,C-O

2012-06-18 Thread Bram Moolenaar
Philip Mat (?) wrote: In Vim 7.3 mswin.vim defines `inoremap C-S C-O:updateCR`, which causes problems when pressed shortly after a C-XC-O combination because the auto-completed text will now read :update + newline instead of saving the file. The problem is caused by the C-O which undoes

Re: mswin: problem with C-S after C-X,C-O

2012-06-18 Thread philipmat
I've been running for a few days with inoremap C-S Esc:updateCRa and I didn't run into any issues. I typically have inoremap C-S Esc:wCR because I'm a compulsive saver and I want to be in normal mode as much as possible. I can see your point though, but all I can offer is anecdotal

Re: mswin: problem with C-S after C-X,C-O

2012-06-18 Thread Tim Chase
On 06/18/12 16:55, philipmat wrote: I've been running for a few days with inoremap C-S Esc:updateCRa and I didn't run into any issues. I suspect you'll hit weird behaviors on the first character of a line. I'd recommend gi instead of a to resume insertion where you left off. -tim --

Re: Some VAM bundles with '%' in their names causing problems

2012-06-18 Thread Pablo Giménez
2012/6/18 Christian Brabandt cbli...@256bit.org: Hi Pablo! On Mo, 18 Jun 2012, Pablo Giménez wrote: Well I think the % symbol confuse some string evaluations. I use a function like this: function! SetLocalPath ()     Current basename for the buffer     let baseName = expand(%:p:h)    

vimdiff: displaying the total number of changes

2012-06-18 Thread Jonathan Fudger
Hi everyone, When diffing two files, I have been wondering if is it possible to display the total number of differences between the files (i.e. the number of ]c motions required to get to the end). Ideally I would like a statusline (or simply an echoed message) that says something like This

Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-18 Thread ping
thanks! I don' know autohotkey... to what file I need to put these lines in? If you can use autohotkey paste this into your autohotkey script, it will only replace caps lock for esc in vim and a few other apps: ; use shift+capslock for the default capslock +Capslock::Capslock #IfWinActive,

Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-18 Thread ping
no luch trying this in windows/dygwin... turn to some xwin issue (complaining no DISPLAY or something..) will give up on this win crap.. 于 2012/6/17 3:30, Erik Christiansen 写道: On 17.06.12 11:25, ping song wrote: On Sun, Jun 17, 2012 at 10:18 AM, ping song songpingem...@gmail.com wrote: I

Re: Error starting gvim and using diff

2012-06-18 Thread AndyHancock
On Jun 18, 11:35 am, skeept ske...@gmail.com wrote: On Sunday, June 17, 2012 9:53:43 PM UTC-5, AndyHancock wrote: Any further suggestions are welcome. I'll wait a bit before posting in the cygwin forum. This is not a vim problem, I think this happens a lot with cygwin. Take Tony's sugestion

Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-18 Thread ping
于 2012/6/18 9:59, skeept 写道: #IfWinActive, ahk_class Vim *CapsLock::Esc I finally installed an autohotkey and add following line: Capslock::Esc in C:\Users\ping\Documents\AutoHotkey.ahk according to: http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows -- You received this message