Re: What might cause .vimrc not to be read

2006-06-23 Thread reader
"A.J.Mechelynck" <[EMAIL PROTECTED]> writes: > :silent unlet g:colors_name > :hi clear Normal > :set bg=dark > :hi clear > :syntax reset > > (i.e., forcing Vim to use its "dark" defaults) gives you > "good-looking" colors reliably, then Vim had probably guessed wrong,

RE: Script to create automatic case statements

2006-06-23 Thread Gerald Lai
On Fri, 23 Jun 2006, Max Dyckhoff wrote: If there are many values for the enum then I will generally jump to the tag and do as you do; copy the values and do an :s on them. What I was wondering though was basically "can I make vim insert every entry from the ^N popup menu?", which is listing all

Re: How to recognize different matching classes

2006-06-23 Thread Gerald Lai
On Fri, 23 Jun 2006, Peter Slizik wrote: Hello Vimmers, I'd like to write a mapping that would expand to a function call. I want this function to return a meaningful text in a normal context, but nothing at all, if it's called from a comment or string context. I know this has been done many ti

Re: How to recognize different matching classes

2006-06-23 Thread Dr Bean
On Fri, 23 Jun 2006, [EMAIL PROTECTED] wrote: > > I'd like to write a mapping that would expand to a function > > call. I want this function to return a meaningful text.. > > contains what you are looking for, and a few other things (li

Re: What might cause .vimrc not to be read

2006-06-23 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: "A.J.Mechelynck" <[EMAIL PROTECTED]> writes: I don't know Emacs, but Vim comes bundled with a number of "standard" colorschemes (in $VIMRUNTIME/colors). Some are light, others are dark. Try them out (using ":colorscheme ", where is the filename without the .vim extensi

Re: What might cause .vimrc not to be read

2006-06-23 Thread reader
"A.J.Mechelynck" <[EMAIL PROTECTED]> writes: > I don't know Emacs, but Vim comes bundled with a number of "standard" > colorschemes (in $VIMRUNTIME/colors). Some are light, others are > dark. Try them out (using ":colorscheme ", where is the > filename without the .vim extension), maybe you'll fi

Re: What might cause .vimrc not to be read

2006-06-23 Thread Friedrich Strohmaier
Hallo [EMAIL PROTECTED], *, [EMAIL PROTECTED] schrieb am Freitag, 23. Juni 2006 21:43: [..] >Is there something in vim similar to emacs where you can just say >`dark background' or `light bg' and get a default setup that is not >bad? Well, up to now I was quite happy doing vim :set bg=light/d

ANN: new plugin lookupfile 1.0

2006-06-23 Thread Hari Krishna Dara
I just uploaded a new plugin to vim.org called lookupfile. This is a very simple yet powerful plugin to make finding files much easier and faster using the new Vim7 completion menu. You can download the plugin from: http://www.vim.org/scripts/script.php?script_id=1581 Please note that this requi

Re: What might cause .vimrc not to be read

2006-06-23 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: "A.J.Mechelynck" <[EMAIL PROTECTED]> writes: Am I wrong in thinking calling `:so ~/.vimrc' should not change anything? Maybe it's time you put all your ":hi" commands into a separate colour scheme (a script in ~/.vim/colors). I am attaching, as a simple easy-to-unde

Re: What might cause .vimrc not to be read

2006-06-23 Thread reader
"A.J.Mechelynck" <[EMAIL PROTECTED]> writes: >> Am I wrong in thinking calling `:so ~/.vimrc' should not change anything? >> >> >> > > Maybe it's time you put all your ":hi" commands into a separate colour > scheme (a script in ~/.vim/colors). I am attaching, as a simple > easy-to-understand examp

Re: What might cause .vimrc not to be read

2006-06-23 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] writes: I don't think I posted my commented note about 99 but it says if you use 99 it's supposed to cause the default (font) or foreground color to happen I'm not real sure of the notes vintage, but it appears to be from 2003 # [HP 07/08/03 21:18 Us

Re: What might cause .vimrc not to be read

2006-06-23 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: "A.J.Mechelynck" <[EMAIL PROTECTED]> writes: 99 is not a normal color for a cterm (color terminals have mostly 8 or 16 colors, or maybe 8 background and 16 foreground) so maybe it doesn't give reliable results. Replace "ctermfg=99" by "ctermfg=DarkYellow" or "ctermfg=Br

Re: Bug in chaining dictionary function calls

2006-06-23 Thread Hari Krishna Dara
On Thu, 22 Jun 2006 at 2:50pm, James Vega wrote: > On Thu, Jun 22, 2006 at 11:11:51AM -0700, Hari Krishna Dara wrote: > > > > On Thu, 22 Jun 2006 at 5:46am, Richard Emberson wrote: > > > > > I reported this as bug number 1492165, > > > https://sourceforge.net/tracker/?atid=391887&group_id=27891&f

Re: What might cause .vimrc not to be read

2006-06-23 Thread reader
[EMAIL PROTECTED] writes: > I don't think I posted my commented note about 99 but it says if you > use 99 it's supposed to cause the default (font) or foreground color > to happen I'm not real sure of the notes vintage, but it appears to > be from 2003 > # [HP 07/08/03 21:18 Using 99 means it us

Re: What might cause .vimrc not to be read

2006-06-23 Thread reader
"A.J.Mechelynck" <[EMAIL PROTECTED]> writes: > 99 is not a normal color for a cterm (color terminals have mostly 8 or > 16 colors, or maybe 8 background and 16 foreground) so maybe it > doesn't give reliable results. Replace "ctermfg=99" by > "ctermfg=DarkYellow" or "ctermfg=Brown" to get brown. O

Re: What might cause .vimrc not to be read

2006-06-23 Thread reader
"Yakov Lerner" <[EMAIL PROTECTED]> writes: > Are you using hpterm here ? Is this some hpterm weirdness > you're experiencing ? If not, which terminal is this ? xterm

Re: Patches

2006-06-23 Thread A.J.Mechelynck
Rick Hogg wrote: Tony, Mathias, Thanks for all the help. Starting VIM gives me version 7.0.034, and all is well. And actually, I was using Mac OS X, but I installed it without GUI support. I actually installed it with these options: --enable-gui=no --prefix=/usr --with-features=huge --enab

Re: How to translate between windows file and linux file ?

2006-06-23 Thread stri ker
From a great vim site that has a ton of really useful info. The second line under #substitution :%s/\r//g# delete dos returns ^M(for a return sub nothing) Kevin On Jun 23, 2006, at 12:16 PM, victor NOAGBODJI wrote: Hello, I usually write on both win and linux. Whenever I op

Re: How to translate between windows file and linux file ?

2006-06-23 Thread A.J.Mechelynck
victor NOAGBODJI wrote: Hello, I usually write on both win and linux. Whenever I open win edited files in linux, I've got ^M at end of each line. Is there anything to automatically change that? ^M (control-M) is the carriage-return (CR) control character. Typically, lines of ASCII text are

Re: How to recognize different matching classes

2006-06-23 Thread hermitte
Hello, Peter Slizik <[EMAIL PROTECTED]> wrote: > I'd like to write a mapping that would expand to a function call. I want this > function to return a meaningful text in a normal context, but nothing at all, > if it's called from a comment or string context. I know this has been done > many times

Re: Patches

2006-06-23 Thread Diwaker Gupta
--enable-gui=no --prefix=/usr --with-features=huge --enable-multibyte Do I need to run ./configure (with options), make, and make install after every patch to keep these options going? Usually just doing 'make' and 'make install' will suffice. However, there might be cases where you may need to

Re: Patches

2006-06-23 Thread Rick Hogg
Tony, Mathias, Thanks for all the help. Starting VIM gives me version 7.0.034, and all is well. And actually, I was using Mac OS X, but I installed it without GUI support. I actually installed it with these options: --enable-gui=no --prefix=/usr --with-features=huge --enable-multibyte Do I n

Re: Patches

2006-06-23 Thread Mathias Michaelis
Tony, Rick >> patch -s -t -d vim70 -p0 -i patches/7.0.001 >> patch -s -t -d vim70 -p0 -i patches/7.0.001 >> patch -s -t -d vim70 -p0 -i patches/7.0.001 >> patch -s -t -d vim70 -p0 -i patches/7.0.001 >> etc... >> > I suppose you ment 001, 002, 003, 004, ... at the end of the lines > aehm ... yes,

How to translate between windows file and linux file ?

2006-06-23 Thread victor NOAGBODJI
Hello, I usually write on both win and linux. Whenever I open win edited files in linux, I've got ^M at end of each line. Is there anything to automatically change that?

Re: What might cause .vimrc not to be read

2006-06-23 Thread Yakov Lerner
On 6/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: "A.J.Mechelynck" <[EMAIL PROTECTED]> writes: > Well, if you get no enlightenment from running Vim with the "-D" > switch then using "s" repeatedly at the ">" prompt to step through all > lines of all scripts that get run during startup, th

Re: Patches

2006-06-23 Thread A.J.Mechelynck
Mathias Michaelis wrote: Rick Am I supposed to put 2 and 3 into the original? Am I supposed to move the contents of each /src directory into the one in the Unix archive? Yes. Here is how I do it: bunzip2 -qck vim-7.0.tar.bz2 | tar x gunzip -qc vim-7.0-lang.tar.gz | tar x gunzip -qc vim-7.0-

Re: Patches

2006-06-23 Thread A.J.Mechelynck
Rick Hogg wrote: Tony, I've unpackaged all three archives, so now the contents of the directory they are in looks contains these files: vim70, vim70 2, and vim70 3. vim70 is the regular Unix directory, 2 is extra, and 3 is language. Am I supposed to put 2 and 3 into the original? Am I supposed

RE: Script to create automatic case statements

2006-06-23 Thread Max Dyckhoff
If there are many values for the enum then I will generally jump to the tag and do as you do; copy the values and do an :s on them. What I was wondering though was basically "can I make vim insert every entry from the ^N popup menu?", which is listing all the values that I want to enter. Salman, y

How to recognize different matching classes

2006-06-23 Thread Peter Slizik
Hello Vimmers, I'd like to write a mapping that would expand to a function call. I want this function to return a meaningful text in a normal context, but nothing at all, if it's called from a comment or string context. I know this has been done many times before, I need only a hint to know wh

Re: What might cause .vimrc not to be read

2006-06-23 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: "A.J.Mechelynck" <[EMAIL PROTECTED]> writes: Well, if you get no enlightenment from running Vim with the "-D" switch then using "s" repeatedly at the ">" prompt to step through all lines of all scripts that get run during startup, then you might try ":verbose hi groupna

RE: Script to create automatic case statements

2006-06-23 Thread Halim, Salman
If you use bracketing macros (I do), you can do the following: imap switch switch ( <> ){<>}<>^%k imap case case <>:<>;break;<>k$"_xk^ imap default default:<>0 This allows me to hit ,switch (my leader is the comma) to get: switch ( | ) { <> }<> And the cursor ends up wher

Re: Script to create automatic case statements

2006-06-23 Thread Tom Purl
> The number of times that I write something like this in a day is > ridiculous: > > switch (some_variable) > { > case _some_root_wibble: > case _some_root_wobble: > case _some_root_jelly: > case _some_root_on_a_stick: > } > ... > > Has anyone seen something to do this befor

Re: Patches

2006-06-23 Thread Mathias Michaelis
Rick > Am I supposed to put 2 and 3 into the original? Am I > supposed to move the contents of each /src directory > into the one in the Unix archive? > Yes. Here is how I do it: bunzip2 -qck vim-7.0.tar.bz2 | tar x gunzip -qc vim-7.0-lang.tar.gz | tar x gunzip -qc vim-7.0-extra.tar.gz | tar x

Re: Patches

2006-06-23 Thread Rick Hogg
Tony, I've unpackaged all three archives, so now the contents of the directory they are in looks contains these files: vim70, vim70 2, and vim70 3. vim70 is the regular Unix directory, 2 is extra, and 3 is language. Am I supposed to put 2 and 3 into the original? Am I supposed to move the conten

Re: Errors when editing via FTP (netrw -- ?)

2006-06-23 Thread Charles E Campbell Jr
Marv Boyes wrote: When editing files via FTP under Mandrake and Windows, I'm getting some strage behavior that I didn't see in the 6.x series. As soon as I connect, I get this error: ***netrw*** This security scheme is not implemented This is a message coming from your ftp client; netrw

Re: Errors when editing via FTP (netrw -- ?)

2006-06-23 Thread Benji Fisher
On Fri, Jun 23, 2006 at 12:05:35AM -0400, Marv Boyes wrote: > Hello, all. I've combed the list for references to this problem and > found nothing, but please forgive a short-sighted newbie if I've > overlooked something pertinent. > > I'm using Vim 7 in three different places: > Mandrake Linux 9.2

Re: Branches

2006-06-23 Thread Gerhard Siegesmund
Ups. Sorry. Ignore the posting. Used the wrong maillist-address. -- cu --== Jerri ==-- Homepage: http://www.jerri.de/ ICQ: 54160208 Public PGP Key: http://www.jerri.de/jerris_public_key.asc signature.asc Description: Digital signature

Re: Branches

2006-06-23 Thread Gerhard Siegesmund
> I'm a little unclear on the implications of a merge between a branch and > the trunk. If I merge, does the branch become part of the trunk from > then on? Take a look at http://cvsbook.red-bean.com/cvsbook.html#Branches Merging merely creates a patch from the root of the branch (if you tagg

Re: using vimrc

2006-06-23 Thread Benji Fisher
On Thu, Jun 22, 2006 at 12:47:08PM +0200, Jansen of Lorkeers, Richard wrote: > Hello, > > I am a beginning user of vim and I just tried to create a .vimrc file. It is > oke when I use 1 command but if I use two commands I get a error. Any one > knows what the problem is. I can't find it in the doc

Re: Lisp indent help and copy/paste problem?

2006-06-23 Thread Benji Fisher
On Thu, Jun 22, 2006 at 09:57:04AM +0200, Pero Brbora wrote: > I wan ma lisp code to be indented like this > > (defun () > ) > > but vim gives me > > (defun () > ) > > How do I change this? The options for indenting are pretty complicated, and I do not mess with them much myself, so all

Re: Errors when editing via FTP (netrw -- ?)

2006-06-23 Thread Marv Boyes
Thanks, Tony. I don't _think_ that firewalling or permissions are the problem, as network reading and writing worked fine for me under Vim 6.4. The only thing that has changed is an upgrade to Vim 7. Honestly, the "faux" errors on my Mandrake machine don't bother me; annoying, perhaps, but despite

Re: What might cause .vimrc not to be read

2006-06-23 Thread reader
"A.J.Mechelynck" <[EMAIL PROTECTED]> writes: > Well, if you get no enlightenment from running Vim with the "-D" > switch then using "s" repeatedly at the ">" prompt to step through all > lines of all scripts that get run during startup, then you might try > ":verbose hi groupname" where "groupname

Re: feature request: priority=N in :match and in :syn match

2006-06-23 Thread Benji Fisher
On Sun, Jun 18, 2006 at 11:03:16AM +, Yakov Lerner wrote: > I found that it would be more satisfying to the user > if :match and :syn had additional attribute, 'priority=', > so that user could control what has higher prio and what > has higher prio. > > I find current rules of assigning prior

Re: What might cause .vimrc not to be read

2006-06-23 Thread reader
I found a solution... I have a section in vimrc like the code below. I'm not really sure what all it does ... one of the drawbacks of just stealing stuff from someone elses .vimrc... long ago. If I comment out the line with the two asterisks, vim comes up like I expect it to without the purple Sta

Re: Errors when editing via FTP (netrw -- ?)

2006-06-23 Thread A.J.Mechelynck
Marv Boyes wrote: Hello, all. I've combed the list for references to this problem and found nothing, but please forgive a short-sighted newbie if I've overlooked something pertinent. I'm using Vim 7 in three different places: Mandrake Linux 9.2 (built from aap, with all patches applied) Windows

Re: What might cause .vimrc not to be read

2006-06-23 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: "A.J.Mechelynck" <[EMAIL PROTECTED]> writes: Try running Vim as "vim -D" with your usual vimrc. Then when you see the ">" prompt, you may optionally run ":echo" commands to see what happens, then hit s (Step into) or n (Next line) until you see what goes wrong. (s steps

Re: What might cause .vimrc not to be read

2006-06-23 Thread reader
"Yakov Lerner" <[EMAIL PROTECTED]> writes: > 1. create this dir > $ mkdir -p ~/.vim/after/plugin > (Your &runtimepath is supposed to have ~/.vim/after as a last > component: :echo &runtimepath ) > > 2. create the file ~/.vim/after/plugin/zzz.vim > containing this line: >

Redirecting to open tabs.

2006-06-23 Thread Kyku
Hi, I wonder if following is possible. Let's say I have opened two tabs with file.c and file.h. I navigate through file.h, jump to some tag located in file.c, and the file.c replaces file.h in the current tab. 1) How to do that the tab with file.c became active instead? 2) Open new files in the

Re: What might cause .vimrc not to be read

2006-06-23 Thread Yakov Lerner
On 6/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I can't think what to echo to find out where the purple comes from. And why :so ~/.vimrc removes it and puts my normal setting in play. How about this workaround. 1. create this dir $ mkdir -p ~/.vim/after/plugin (Your &runtim

Re: spell: zw/zW doesn't work

2006-06-23 Thread Bram Moolenaar
Luis A. Florit wrote: > Are you able to make zw/zW work for the spell feature in Vim 7.0? > For me, they just do nothing. The spellfiles are not changed. > ':spellw[rong]! {word}' also doesn't work, it does nothing. > No changes in the spelling, nor in the spellfile. > There is no file permi