How to make inoremap 's filetype depend

2007-03-09 Thread Eric Leenman
Hi, How do you making inoremap filetype depend? What I want is if (filetype == vim) then inoremap @a A else if (filetype == c) inoremap @a aa else if (filetype == vhdl) inoremap @a AAAaaa else inoremap @a aaaAAA end if Best regards, Eric

Re: command to indent file

2007-03-09 Thread cga2000
On Sat, Mar 10, 2007 at 01:43:50AM EST, Michael Wookey wrote: > > In the path I often used command to indent my php file or C# file: > > gg ... G > > mean go to the top of file and indent code until the end of file. > > But Unfortunately I forgot. > > Could anyone tell me what I forgot? > > :help

RE: command to indent file

2007-03-09 Thread Michael Wookey
> In the path I often used command to indent my php file or C# file: > gg ... G > mean go to the top of file and indent code until the end of file. > But Unfortunately I forgot. > Could anyone tell me what I forgot? :help = For example: gg=G

command to indent file

2007-03-09 Thread Vu The Cuong
In the path I often used command to indent my php file or C# file: gg ... G mean go to the top of file and indent code until the end of file. But Unfortunately I forgot. Could anyone tell me what I forgot? Thanks

visual selection and X11/xterm clipboard (vim7)

2007-03-09 Thread Joel Brobecker
Hello fellow vimmers, I am working on an x86-linux machine running Debian testing. I have switched to vim7 soon after it came out, and it's been awesome. There is just one thing that changed and causes me some trouble: When I select a visual region, the text region gets copied into the X11 clipboa

HTML and tidy

2007-03-09 Thread Simon Jackson
Is it possible to use tidy to clean up my html in the current document?

input gets repeated when having a break in input mode

2007-03-09 Thread petern
Hi dear vim lovers. When I type some text in input mode and for example go to make a coffee without leaving the input mode, and then get back to my computer, vim has exited input mode. That's OK. But what confuses me is that some parts of my input has been repeated and been inserted twice to my d

Re: after compile VIM 7.0, I get error in running it...

2007-03-09 Thread Gary Johnson
On 2007-03-09, lin q <[EMAIL PROTECTED]> wrote: > Hi, > I downloaded the vim 7.0 package to my RedHat Enterprise 3 machine. > I do not have administrator previlidge, so I setup the env like this: > > export DESTDIR= > export prefix= > > Then I run > make > make install > > But when I run v

after compile VIM 7.0, I get error in running it...

2007-03-09 Thread lin q
Hi, I downloaded the vim 7.0 package to my RedHat Enterprise 3 machine. I do not have administrator previlidge, so I setup the env like this: export DESTDIR= export prefix= Then I run make make install But when I run vim, /usr/local/bin/vim, I get this error: Error detected while process

Re: buffer ring behaviour - how do I make it an MRU ring?

2007-03-09 Thread Christian Ebert
* Keith Hanlan on Friday, March 09, 2007 at 12:48:49 -0500: > I want :bprev to take me to the most-recently-used buffer but I can't > see a way to do that. It always follows the order in which the buffers > where loaded. > > I use :bnext and :bprev (mapped to cntl--> and cntl-<-) to cycle through

Re: Why does VimResized get triggered 4 times per resize

2007-03-09 Thread A.J.Mechelynck
Bram Moolenaar wrote: Tony Mechelynck wrote: Marius Roets wrote: Hi everybody, Can somebody explain the following behaviour to me. In my .vimrc I put the following: " --START -- function ResizeEvent() let &lines = &lines - 1 execute '!echo "resizing "'.&lines . ' >> test.txt' e

Re: need help with xml.vim plugin

2007-03-09 Thread A.J.Mechelynck
Lev Lvovsky wrote: On Mar 9, 2007, at 12:36 PM, A.J.Mechelynck wrote: ":ftplugin type on" should get you "E492: Not an editor command: ftplugin type on". It ought to be ":filetype plugin on". sorry, meant the latter. Where exactly did you drop the script? xml plugins are sourced in the fo

Re: new tabs and ultraMon

2007-03-09 Thread Afton Lewis
It does indeed. Of course my tabs are then slightly less spiffy, but such is life. thanks. Afton. On 3/9/07, Bram Moolenaar <[EMAIL PROTECTED]> wrote: Afton Lewis wrote: > I"m using gVim 7.0 on windows XP, with dual monitors and ultraMon installed. > > When I go from no-tabs to one (or is tha

Re: need help with xml.vim plugin

2007-03-09 Thread Lev Lvovsky
From: [EMAIL PROTECTED] Subject:Re: need help with xml.vim plugin Date: March 9, 2007 1:00:00 PM PST To: [EMAIL PROTECTED] On Mar 9, 2007, at 12:36 PM, A.J.Mechelynck wrote: ":ftplugin type on" should get you "E492: Not an editor command:

Re: Why does VimResized get triggered 4 times per resize

2007-03-09 Thread Bram Moolenaar
Tony Mechelynck wrote: > Marius Roets wrote: > > Hi everybody, > > Can somebody explain the following behaviour to me. In my .vimrc I put > > the following: > > " --START -- > > function ResizeEvent() > > let &lines = &lines - 1 > > execute '!echo "resizing "'.&lines . ' >> test.t

Re: new tabs and ultraMon

2007-03-09 Thread Bram Moolenaar
Afton Lewis wrote: > I"m using gVim 7.0 on windows XP, with dual monitors and ultraMon installed. > > When I go from no-tabs to one (or is that one tab to two?) gvim jumps > to my primary monitor. Further tab creations don't cause this. I > created tabs with > :tabe > :tabnew > > If the instanc

Re: missing menubar

2007-03-09 Thread stevecanfield
>A last possibility, after that I'm out of my wits: > >At the shell prompt, do you get the same answer to > >which vim >which gvim > >when logged in as steve and as root? I do get the same answer: /usr/bin/vim and /usr/bin/gvim But you inspired me to look around for other gvim related fil

Re: need help with xml.vim plugin

2007-03-09 Thread Lev Lvovsky
On Mar 9, 2007, at 12:08 PM, [EMAIL PROTECTED] wrote: Lev, (I should probably know, but...) Can I use this with Vim 6.x? I'm one of those who takes forever to get around to sharpening the saw and just haven't bothered with 7 yet. Russ You know, it looks like it's specified for version 6.0

Re: need help with xml.vim plugin

2007-03-09 Thread A.J.Mechelynck
Lev Lvovsky wrote: I'm hoping someone can help me with this problem, as it would be really nice to get the XML plugin working. I've downloaded the plugin described here: http://www.vim.org/scripts/script.php?script_id=301 I've put the file both in my local ftplugin, and plugin directory, and

Re: missing menubar

2007-03-09 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Aha! Running gvim as root should source all the scripts above _except_ /home/steve/.vimrc and /home/steve/.gvimrc -- however -u NONE should forbid loading any vimrc. Well, let's use what we have: - What do /home/steve/.vimrc and /home/steve/.gvimrc contain? /home/ste

RE: need help with xml.vim plugin

2007-03-09 Thread russ
> Original Message > Subject: need help with xml.vim plugin > From: Lev Lvovsky <[EMAIL PROTECTED]> > Date: Fri, March 09, 2007 12:33 pm > To: vim users list > > I'm hoping someone can help me with this problem, as it would be > really nice to get the XML plugin working. > >

Re: missing menubar

2007-03-09 Thread stevecanfield
>Aha! Running gvim as root should source all the scripts above _except_ >/home/steve/.vimrc and /home/steve/.gvimrc -- however -u NONE should forbid >loading any vimrc. Well, let's use what we have: > >- What do /home/steve/.vimrc and /home/steve/.gvimrc contain? /home/steve/.vimrc contains:

Re: missing menubar

2007-03-09 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: - Does the output of ":scriptnames" show $VIMRUNTIME/menu.vim and/or $VIMRUNTIME/delmenu.vim ? (or their expanded equivalents) Yes. Output below: 1: /usr/share/vim/vimrc 2: /usr/share/vim/vim64/filetype.vim 3: /usr/share/vim/vim64/menu.vim 4: /usr/share/vim/vim6

need help with xml.vim plugin

2007-03-09 Thread Lev Lvovsky
I'm hoping someone can help me with this problem, as it would be really nice to get the XML plugin working. I've downloaded the plugin described here: http://www.vim.org/scripts/script.php?script_id=301 I've put the file both in my local ftplugin, and plugin directory, and set ':ftplugin ty

Re: missing menubar

2007-03-09 Thread stevecanfield
>- Does the output of ":scriptnames" show $VIMRUNTIME/menu.vim and/or >$VIMRUNTIME/delmenu.vim ? (or their expanded equivalents) Yes. Output below: 1: /usr/share/vim/vimrc 2: /usr/share/vim/vim64/filetype.vim 3: /usr/share/vim/vim64/menu.vim 4: /usr/share/vim/vim64/ftplugin.vim 5: /home

new tabs and ultraMon

2007-03-09 Thread Afton Lewis
Greetings all. I"m using gVim 7.0 on windows XP, with dual monitors and ultraMon installed. When I go from no-tabs to one (or is that one tab to two?) gvim jumps to my primary monitor. Further tab creations don't cause this. I created tabs with :tabe :tabnew If the instance is already on my pri

Re: missing menubar

2007-03-09 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Forgot to mention, I'm using gvim 6.4.6 (the one installed by Ubuntu). Vim 6.4 is not very recent but it ought to give menus normally. You may still want to compile Vim 7.0 (current patchlevel is 215) for yourself (see http://users.skynet.be/antoine.mechelynck/vim/com

Re: missing menubar

2007-03-09 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: I'm not sure how long this has been happening, but I noticed yesterday that I no longer have a menubar. The toolbar is there and I've tried every set guioption that I can think of. Here's my current settings: :set guioptions guioptions=agimrLtT The $VIMRUNTIM/

Re: missing menubar

2007-03-09 Thread stevecanfield
Forgot to mention, I'm using gvim 6.4.6 (the one installed by Ubuntu). Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=list&sid=396

missing menubar

2007-03-09 Thread stevecanfield
I'm not sure how long this has been happening, but I noticed yesterday that I no longer have a menubar. The toolbar is there and I've tried every set guioption that I can think of. Here's my current settings: :set guioptions guioptions=agimrLtT The $VIMRUNTIM/menu.vim file is there and

buffer ring behaviour - how do I make it an MRU ring?

2007-03-09 Thread Keith Hanlan
I want :bprev to take me to the most-recently-used buffer but I can't see a way to do that. It always follows the order in which the buffers where loaded. I use :bnext and :bprev (mapped to cntl--> and cntl-<-) to cycle through my buffer ring. However, it always cycles the same way; I would like :

Re: Why does VimResized get triggered 4 times per resize

2007-03-09 Thread A.J.Mechelynck
Marius Roets wrote: Hi everybody, Can somebody explain the following behaviour to me. In my .vimrc I put the following: " --START -- function ResizeEvent() let &lines = &lines - 1 execute '!echo "resizing "'.&lines . ' >> test.txt' endfunction autocmd VimResized * call ResizeEven

Parsing compiler output (errorformat)

2007-03-09 Thread Clive Anderson
I need some help to parse the following compiler output: (I have tried just about everything even converted the evil '|' into ':' with an error_file) runner: *E,NOPBIND (string_arrays.sv,3|20): Package string_package could not be bound. My attemp (which does not work properly) is: CompilerSet er

Why does VimResized get triggered 4 times per resize

2007-03-09 Thread Marius Roets
Hi everybody, Can somebody explain the following behaviour to me. In my .vimrc I put the following: " --START -- function ResizeEvent() let &lines = &lines - 1 execute '!echo "resizing "'.&lines . ' >> test.txt' endfunction autocmd VimResized * call ResizeEvent() " END --

Re: Only half a command line in GVim

2007-03-09 Thread Tim Chase
> I have been using GVim on X11 for years. Recently I have changed my > window manager to Compiz. Now, all (and I have many) sessions I have > created before the switch, shows only half the command line when I > load them. For instance when I type :q, I see only one . of the : and > the top half of

Re: Best way to repeat a sequence of keystrokes/commands with a single keypress ?

2007-03-09 Thread Tim Chase
> I sometimes want to repeat a sequence of operations > like I would repeat a single command. [cut] > The obvious choice to repeat multiple operations is to record > a macro (for example: qq02r/q ), and replay it with @q. > Unfortunately, '.' after @q only replays the last action > within the macr

Re: Best way to repeat a sequence of keystrokes/commands with a single keypress ?

2007-03-09 Thread Jürgen Krämer
Hi, Ivan Vecerina wrote: > > I sometimes want to repeat a sequence of operations > like I would repeat a single command. > For example, I can repeat with '.' something like: > gI//{is a single operation '.' repeats all} > But I cannot as easily repeat: > 02r/{ '.' will repeat the 2r/ ,

Best way to repeat a sequence of keystrokes/commands with a single keypress ?

2007-03-09 Thread Ivan Vecerina
Hi, I sometimes want to repeat a sequence of operations like I would repeat a single command. For example, I can repeat with '.' something like: gI//{is a single operation '.' repeats all} But I cannot as easily repeat: 02r/{ '.' will repeat the 2r/ , but not the move to 0 } [ Let's not

Re: replace upper-case with lower-case

2007-03-09 Thread Tom Whittock
> This does not seem to be a good way, consider if we want to change: > START -> STOP > Start -> Stop > start -> stop > STart -> STop > sTART -> sTOP I'm only personally concerned by the first three of those. This is the solution from my rc file. It moves the cursor, which I find annoying. Anyon

Re: Error when setting spellfile and spelllang?

2007-03-09 Thread Mark Woodward
2 seconds after sending the previous post I find :mkspell in help which shows how to combine up to 8 regions into a single spell file!!! Isn't it always the way! -- Mark On Fri, 2007-03-09 at 21:14 +1100, Mark Woodward wrote: > Hi again, > > I think I've found the solution. > I was setting

Re: Error when setting spellfile and spelllang?

2007-03-09 Thread Mark Woodward
Hi again, I think I've found the solution. I was setting spelllang to use 2 en_* languages. Australian and US, which looks like it was trying to load en.utf-8.spl twice?? (ie set spelllang=en_au,en_us) If I set it to 2 distinct languages (eg set spelllang=en_au,nl) then it works as expected. So

Automatically positioning cursor when opening a file

2007-03-09 Thread James Kanze
I'm having trouble automatically positionning the cursor when opening an existing file. Basically, all of my files have a standard header (copyright blurb, etc.), and I'd like to have the cursor positionned after it at the start of editing. When opening a new file, I have the following in my .vi