Patch: virtcol([123,'$'])

2007-03-26 Thread Michael Schaap
Hi Bram, Here's a patch to make virtcol([123, '$']) do the right thing. If it looks good to you, can you include it? Alvast bedankt, – Michael Index: eval.c === --- eval.c (revision 238) +++ eval.c (working copy) @@

Re: Patch: virtcol([123,'$'])

2007-03-26 Thread Bram Moolenaar
Michael Schaap wrote: Here's a patch to make virtcol([123, '$']) do the right thing. If it looks good to you, can you include it? Looks good, I'll include it. Thanks! -- It is illegal to rob a bank and then shoot at the bank teller with a water pistol. [real standing law in

Experimental patch -- clipboardwatch for Win32

2007-03-26 Thread Ken Hirsch
Here is an experimental patch for a new feature for gvim on MS Windows. I'm glad to hear any feedback about the code or the feature itself. I've tried to follow the conventions in the vim source code. I call the feature ClipboardWatch. The new feature triggers an event ClipboardChanged

SR with dynamic range

2007-03-26 Thread Eric Leenman
Hi, In VHDL I many times need to change the following code: component AAA port ( i1 : in std_ulogic; i2 : in std_ulogic; o1 : out std_ulogic; o2 : out std_ulogic); end component AAA; into: inst_AAA : AAA port map ( i1 = in , i1 = in ,

VIM Spelling has broken me.

2007-03-26 Thread Keith Hellman
After numerous attempts I've declared Vim 7's spell support the victor. Perhaps someone can help me out, any suggestions would be helpful. I have Vim spelling working in general, but I would like to incorporate a rather special configuration. I'd like to use a personalized rare-word dictionary

VIM Spelling has broken me.

2007-03-26 Thread Cyril Slobin
Hi! On 3/26/07, Keith Hellman [EMAIL PROTECTED] wrote: Has anyone else setup such a configuration? Got any tips or hints on how to debug this? Or perhaps (probably :^( ) I've really misunderstood Vim spelling support. Try to end rare words with /? in *.add file. their/? they're/? lose/?

Re: VIM Spelling has broken me.

2007-03-26 Thread Yongwei Wu
On 3/26/07, Keith Hellman [EMAIL PROTECTED] wrote: The words I should be using are they're and lose. I'd like to have these highlighted as rare words (not because they are rare, rather because I rarely use rare words, so this seems a reasonable pigeon-hole to shoehorn this functionality) --- in

python omnicompletion with Python 2.5

2007-03-26 Thread Christian Ebert
Hello, I wanted to try out omnicompletion with Python 2.5, and I get the following: Error detected while processing function SNR62_DefPython: line 517: Traceback (most recent call last): Error detected while processing function SNR62_DefPython: line 517: File string, line 1, in module Error

Re: Customizing vim: How to change the char before commands

2007-03-26 Thread Tobia
A.J.Mechelynck wrote: fREW wrote: So is there a way we could swap the ; and : keys? I hardly ever use ; but it would be nice to still have it available as : The following lines in your vimrc should do it: noremap ; : noremap : ; Except that you still have to type : in

Re: SR with dynamic range

2007-03-26 Thread Tim Chase
In VHDL I many times need to change the following code: component AAA port ( i1 : in std_ulogic; i2 : in std_ulogic; o1 : out std_ulogic; o2 : out std_ulogic); end component AAA; into: inst_AAA : AAA port map ( i1 = in , i1 = in , o1

Re: SR with dynamic range

2007-03-26 Thread Eric Leenman
[deleted] You may have to clarify. I'm not sure how this mapping is taking place. It looks like you start with two inputs (i1 and i2) and two outputs (o1, and o2) and you want to map them to two inputs (i1 and i1 again) and *three* outputs (o1, o2, and o2 again). My stupidity I've made two

Re: SR with dynamic range

2007-03-26 Thread Eric Leenman
[deleted] component AAA port ( i1 : in std_ulogic; i2 : in std_ulogic; o1 : out std_ulogic; o2 : out std_ulogic); end component AAA; to become: inst_AAA : AAA port map ( i1 = in , i2 = in , o1 = out, o2 = out); [deleted]

Re: Intellisense/Omni-complete for C/C++

2007-03-26 Thread Zarko Coklin
I too had problems with omnicomplete in Vim. Built-in functionality was only good for function auto-completions but not for data members. However, all problems were gone after I started using following script (http://www.vim.org/scripts/script.php?script_id=1520). Read carefuly and follow

Re: VIM Spelling has broken me.

2007-03-26 Thread Michael Dunn
I'd like to add a question to Keith's: Once this is working, is there something like ]s that lets you go through the file just visiting the rare words, rather than all the spelling errors? Michael

Re: Can you create file dependend fold markers

2007-03-26 Thread Tom Whittock
:g/^component\s\+\w+/,/^end component/fold The use of regexps can give you more flexibility for nailing them down.[snip] Yes please explain, as I get the message: E486: Pattern not found ^component\s\+\w+ This is missing a \ before the final +, so unless your identifier is a word

Re: python omnicompletion with Python 2.5

2007-03-26 Thread Aaron Griffin
On 3/26/07, Christian Ebert [EMAIL PROTECTED] wrote: Hello, I wanted to try out omnicompletion with Python 2.5, and I get the following: Error detected while processing function Try the following in vim: :python import sys; print sys.version

search for one word and exclude another

2007-03-26 Thread Kamaraju S Kusumanchi
Hi I need to search for a word 'condition' (without quotes) and exclude hits containing 'condition number'. On a shell I can do grep -sir condition *F90 | grep -v 'condition number' How do I do it the vim way? thanks raju -- Kamaraju S Kusumanchi

Re: search for one word and exclude another

2007-03-26 Thread Mika Fischer
* Kamaraju S Kusumanchi [EMAIL PROTECTED] [2007-03-26 18:36]: I need to search for a word 'condition' (without quotes) and exclude hits containing 'condition number'. [...] How do I do it the vim way? /condition\( number\)[EMAIL PROTECTED] See also :help pattern-overview and :help /[EMAIL

Re: python omnicompletion with Python 2.5

2007-03-26 Thread Christian Ebert
* Aaron Griffin on Monday, March 26, 2007 at 10:39:24 -0500: On 3/26/07, Christian Ebert [EMAIL PROTECTED] wrote: I wanted to try out omnicompletion with Python 2.5, and I get the following: Error detected while processing function Try the following in vim: :python import sys; print

Re: python omnicompletion with Python 2.5

2007-03-26 Thread Christian Ebert
* Aaron Griffin on Monday, March 26, 2007 at 13:54:19 -0500: Hmmm, well, I don't really know what to say w.r.t. all that. The best I can do is push a new pythoncomplete out that isn't dependent on cStringIO. I think it may have been a pre-optimization anyway. But cStringIO is faster ;)

Keep cursor fixed when scrolling with mouse

2007-03-26 Thread Some user
Hello, I'm using gVim on Windows and like it so far. There is one minor annoyance: when I scroll with the mouse wheel (I'm trying to use only keyboard but it'll take me a lot of time trying to break habit of using mouse to scroll), the cursor moves with the screen. Is there a setting I can set

Re: autocmd bug?

2007-03-26 Thread Yakov Lerner
On 3/26/07, Michael Wookey [EMAIL PROTECTED] wrote: I have the following in my .vimrc: filetype plugin indent on autocmd FileType c,h,cpp,hpp,cs setlocal cindent number cursorline If I have a new buffer and set the filetype as follows, everything works just fine: :set filetype=c

Re: Keep cursor fixed when scrolling with mouse

2007-03-26 Thread Yakov Lerner
On 3/26/07, Some user [EMAIL PROTECTED] wrote: Hello, I'm using gVim on Windows and like it so far. There is one minor annoyance: when I scroll with the mouse wheel (I'm trying to use only keyboard but it'll take me a lot of time trying to break habit of using mouse to scroll), the cursor

RE: autocmd bug?

2007-03-26 Thread Michael Wookey
I have the following in my .vimrc: filetype plugin indent on autocmd FileType c,h,cpp,hpp,cs setlocal cindent number cursorline If I have a new buffer and set the filetype as follows, everything works just fine: :set filetype=c However, if I have a new buffer

Jump to tag opens VIM in a new Microsoft Windows XP window

2007-03-26 Thread Waters, Bill
It looks like it might take a script to do this. I would need to check if any open gvim window contains the tag being searched for. If so, I would make that window active and jump to the tag. If not and the tag reference exists, I would open a new gvim window at the tag location. Anyone have

Re: Keep cursor fixed when scrolling with mouse

2007-03-26 Thread Some user
Yakov Lerner-3 wrote: On 3/26/07, Some user [EMAIL PROTECTED] wrote: Hello, I'm using gVim on Windows and like it so far. There is one minor annoyance: when I scroll with the mouse wheel (I'm trying to use only keyboard but it'll take me a lot of time trying to break habit of using

Re: Help needed on pt_BR spell checking

2007-03-26 Thread Leonardo Fontenelle
Thanks for the reply. I'll work on it next weekend. Leonardo Fontenelle 2007/3/26, Bram Moolenaar [EMAIL PROTECTED]: Leonardo Fontenelle wrote: Er... does it make a big difference if I send a regular shell script? I don't know how to write scripts in any other language. That said, if

Re: python omnicompletion with Python 2.5

2007-03-26 Thread Christian Ebert
Hi Aaron, * Aaron Griffin on Monday, March 26, 2007 at 13:54:19 -0500: Hmmm, well, I don't really know what to say w.r.t. all that. The best I can do is push a new pythoncomplete out that isn't dependent on cStringIO. I think it may have been a pre-optimization anyway. I'll make a note of

Re: a simple mapping

2007-03-26 Thread Tim Chase
I attempted to map this code :set nobackup to an 'Fx' key, (as a line in my .vimrc) with no good results; the formats I attempted were: map F3 :set nobackup return map F3 :set nobackup return Actually, I just yanked/put the preceding line* (which I KNOW works), and modified it: *map

Re: a simple mapping

2007-03-26 Thread LandSurveyor
Thanks for the response. But, I gotta apologize... Reading over my original question, I realize that it was awfully obtuse and confusing. The 'nohlsearch' line is the one that is already in my .vimrc and works. I yanked/put it to the next line down to use it as a template, modifing it to:

Re: VIM Spelling has broken me.

2007-03-26 Thread Keith Hellman
Thanks for the replies. OK, I renamed my .add file to ~/.vim/spell/en.latin1.add, added '/?' to the end of my rare words, and ran :mkspell on it. Still no dice. I'm wondering, how do I make sure that the 'latin1' portion of the name is correct? I run ':setlocal spell spelllang=en', when

Re: a simple mapping

2007-03-26 Thread LandSurveyor
Forgive my obvious ineptitude here, on many fronts. Firstly, I don't know how to respond to previous responses correctly (capturing the preceding dialog) so I have to start from scratch each time. Secondly, of course it works...and for me also. Here is what I was doing wrong (somehow?).

Re: autocmd bug?

2007-03-26 Thread Jürgen Krämer
Hi, Michael Wookey schrieb: I have the following in my .vimrc: filetype plugin indent on autocmd FileType c,h,cpp,hpp,cs setlocal cindent number cursorline If I have a new buffer and set the filetype as follows, everything works just fine: :set filetype=c However, if