Re: Why bottom-posting is prefered on Vim Mainling List?

2007-05-28 Thread Mark Woodward
Hi, TOP POST:--- On Tue, 2007-05-29 at 11:00 +0800, [EMAIL PROTECTED] wrote: Hi vimmers: I'll try and explain Slightly Off-topic, but I'm still wondering why bottom-posting is prefered on Vim Mainling List. Most do, but probably

Re: How to write a map for gcc?

2007-05-22 Thread Mark Woodward
Hi TJ, On Tue, 2007-05-22 at 21:56 -0500, Ting Jiang wrote: Hi, everyone: I am a beginner user of vim and I use it to write my C/C++ code in Ubuntu. Every time I finished a C code and I want to compile it, I have to type: :gcc -o mycfile.out mycfile.c How can I map this command to a

Re: VimWiki - again - but with a brand new option

2007-05-09 Thread Mark Woodward
On Wed, 2007-05-09 at 13:06 -0500, Tom Purl wrote: On Wed, May 9, 2007 11:37 am, Sebastian Menge wrote: First, im not sure about what you mean by a) formatting standard and b) a script that supports the standard is a) something like a template in mediawiki-speak? see:

Re: VimWiki - again - but with a brand new option

2007-05-09 Thread Mark Woodward
On Wed, 2007-05-09 at 13:06 -0500, Tom Purl wrote: On Wed, May 9, 2007 11:37 am, Sebastian Menge wrote: First, im not sure about what you mean by a) formatting standard and b) a script that supports the standard is a) something like a template in mediawiki-speak? see:

Re: Map Ctrl-Backspace to delete one word before cursor

2007-03-25 Thread Mark Woodward
Hi, On Sat, 2007-03-24 at 20:09 -0700, Some user wrote: Hello, I want to bind Ctrl-Backspace in insert mode to deleting the word before it just like Wordpad or Visual Studio (it actually gobbles up whitespace and deletes the word before the whitespace and places cursor at location where

Re: Netrw go up dir command

2007-03-17 Thread Mark Woodward
Hi Steve, Dr Chip, Tony, On Sat, 2007-03-17 at 13:47 -0700, [EMAIL PROTECTED] wrote: Quoting Steve Hall [EMAIL PROTECTED]: -- $ ls -R1 ./* ./netrw.vba ./autoload: netrwFileHandlers.vim?[[[1 netrwSettings.vim?[[[1 netrw.vim?[[[1

Re: Netrw go up dir command

2007-03-16 Thread Mark Woodward
Hi all, On Thu, 2007-03-15 at 09:41 -0500, Brian Neal wrote: Hi - I just downloaded the non-Cream pre-built Vim for Windows (version 7.0.215). The go up command (-) in the Netrw plugin no longer seems to work. Neither the - command or putting the cursor over the ../ and hitting return does

Re: Maximize gvim at startup

2007-03-14 Thread Mark Woodward
Hi Shawn, On Tue, 2007-03-13 at 09:28 -0400, Mr. Shawn H. Corey wrote: Hi, I'm running Ubuntu 6.10 on a PowerBook 4 under GNOME. Is there any command I can put inn my .gvimrc that will maximize the window at startup? I tried: :autocmd GUIEnter * simalt F10 But simalt does not

Re: Error when setting spellfile and spelllang?

2007-03-09 Thread Mark Woodward
now the question is can I configure spelllang somehow to use 3 (en_au, en_us and en_gb) english variants?? I don't want either color or colour to show as errors for eg. cheers, -- Mark On Wed, 2007-03-07 at 21:56 +1100, Mark Woodward wrote: Hi all, This is probably not the appropriate

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

Error when setting spellfile and spelllang?

2007-03-07 Thread Mark Woodward
Hi all, This is probably not the appropriate mailing list but I'm not subscribed to the dev list. OS: ubuntu edgy 6.10 Vim: VIM - Vi IMproved 7.0 (2006 May 7, compiled Feb 25 2007 20:14:58) Included patches: 1-30, 32, 31-32, 32-201 Compiled by MarkWoodward Huge version with GTK2 GUI. Features

Re: hi Comment guifg=white guibg=black in ~/.vimrc ignored

2007-03-03 Thread Mark Woodward
Hi Tony, On Fri, 2007-03-02 at 10:52 +0100, A.J.Mechelynck wrote: Mark Woodward wrote: Hi alex, On Thu, 2007-03-01 at 16:33 +0100, Alexander Farber wrote: Hello Hugh, On 3/1/07, Hugh Sasse [EMAIL PROTECTED] wrote: :scriptnames 1: C:\Documents and Settings\afarber\.vimrc 2

Re: hi Comment guifg=white guibg=black in ~/.vimrc ignored

2007-03-02 Thread Mark Woodward
Hi alex, On Thu, 2007-03-01 at 16:33 +0100, Alexander Farber wrote: Hello Hugh, On 3/1/07, Hugh Sasse [EMAIL PROTECTED] wrote: :scriptnames 1: C:\Documents and Settings\afarber\.vimrc 2: C:\Program Files\Vim\vim70\syntax\syntax.vim 3: C:\Program Files\Vim\vim70\syntax\synload.vim

Re: Is _every_ command starting with a colon an ex command?

2007-02-17 Thread Mark Woodward
Hi Yakov, On Sat, 2007-02-17 at 19:06 +0200, Yakov Lerner wrote: On 2/17/07, Larry Alkoff [EMAIL PROTECTED] wrote: I know every ex command starts with a colon. Is the reverse true in every case? Is _every_ command that starts with a colon an ex command? Examples :help Is

Re: replace with a number sequence

2007-01-31 Thread Mark Woodward
On Mon, 2007-01-29 at 21:57 +1300, John Little wrote: Hi IMHO simpler and more flexible (works if there are lines not matching the pattern) is: :let n=0 | g/opIndex(\zs\d\+/s//\=n/|let n+=1 A useful idiom I learned here. Usually I muck around with ordinary searches until the

Re: omnicompletion vs. old Ctrl-n

2007-01-19 Thread Mark Woodward
On Thu, 2007-01-18 at 14:26 +0100, Daniel Nogradi wrote: Hi list, I'm using vim 6.3 and was thinking about upgrading to 7.0 especially because of the new omni completion feature. But at the moment I'm not quite sure what I would gain as there is the old Ctrl-n key in insert mode which does

Re: sorting columns alphabetically

2006-11-23 Thread Mark Woodward
Hi Pau, On Wed, 2006-11-22 at 11:20 +0100, Vim Visual wrote: sorry, I got it: sort -k 3 The problem now are midnames, like Mr Bla Blo Ms Ble Blu Dr Bli T. Blu but I have deleted them :) good idea ;-) If you're going to sort based on a specific column you'll need to make sure

Vim function to toggle Ruby block type

2006-10-24 Thread Mark Woodward
Hi everyone, has anyone written a vim function to toggle/convert ruby block types? ie: { |x| puts x } toggled becomes: do |x| puts x end toggled becomes: { |x| puts x } again So if the cursor is within the {} or between the do/end hitting a mapped 'toggle key' will

Re: Windows Batch file with Tabs

2006-10-03 Thread Mark Woodward
Hi all, On Tue, 03 Oct 2006 16:46:27 +0200 A.J.Mechelynck [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I thought that this would be easy, but I can not figure it out. I have had a simple Windows CMD file for a long time to open several files in VIM. Each one gets its own window.

Re: Colorschemes Need Updating

2006-10-03 Thread Mark Woodward
Hi all, On Tue, 03 Oct 2006 08:09:42 -0500 Tim Chase [EMAIL PROTECTED] wrote: ... snip Is there a Notepad.exe mailing list? Why is it so hard to write plugins for Notepad? ;) Vim...what an editor! :) -tim You can say that again Tim!!! I've been using it for 4-5yrs now and I'd call

Re: set vb t_vb=

2006-08-27 Thread Mark Woodward
I'll send you my vimrc privately as an example; no need to spam the list with it. spam away ;-) -- Mark

Finding a sub string

2006-08-12 Thread Mark Woodward
Hi all I'm sure I've asked this before but for the life of me can't find the answer. I'm trying to write a plugin and I'm stumped with how to get a substring from the current line. What I'm trying to do: get the current line- tick if the word 'function' is on the line -

Re: Finding a sub string

2006-08-12 Thread Mark Woodward
On Sat, 12 Aug 2006 19:32:20 +1000 an obvisouly dazed Mark Woodward wrote: if stridx(s:line,function) = 0 s:funcname = matchstr(s:line,function \zs\w\+) ^^^ s:funcname = matchstr(s:line, 'function \zs\w\+') single quotes!!! -- Mark

Emacs 22 'feature' - Can Vim do this?

2006-08-11 Thread Mark Woodward
Hi all, came across this [Emacs] link the other day and wondered if Vim can do this? http://steve-yegge.blogspot.com/ in summary... change these to Bob, Sue, Ralph etc (capitalised) bob sue ralph alice jimmy preston billy joe jim bob :s/\w\+/\u\0/g capitalise last letter (eg boB)

Re: Emacs 22 'feature' - Can Vim do this?

2006-08-11 Thread Mark Woodward
Thanks Jürgen, On Fri, 11 Aug 2006 11:54:50 +0200 Jürgen Krämer [EMAIL PROTECTED] wrote: snip... 1.) if this text starts at line 1 %s/^\d\+:/\=line('.') . '.) '/ 2.) for at most 26 lines %s/^\d\+:/\=nr2char(char2nr('a') + line('.') - 1) . ') '/ Regards, Jürgen Is is possible

Re: changed-yet-not-saved-lines highlighting feature

2006-08-11 Thread Mark Woodward
Hi Gary, On Fri, 11 Aug 2006 13:20:15 -0700 Gary Johnson [EMAIL PROTECTED] wrote: On 2006-08-10, Eddy Zhao [EMAIL PROTECTED] wrote: Hi, Very often, I open a lot of files to edit. When I exiting vim, vim prompt me to save every file which contain changes not saved yet. So, - Is

Re: Status line in gvim obscured when maximised

2006-08-02 Thread Mark Woodward
Hi James, not a solution but... On Wed, 2 Aug 2006 09:55:40 +0800 James Hales [EMAIL PROTECTED] wrote: Hi, When I maximize Gvim in Gnome, the status line is partially hidden by the gnome panel, which is really annoying. This is because of how Vim resizes itself, i.e. it is constrained to

Re: Automatic updating file content

2006-08-02 Thread Mark Woodward
Hi Tien, On Wed, 02 Aug 2006 12:09:39 +1000 Tien Pham [EMAIL PROTECTED] wrote: Hi all Is there any key stroke to update content of a currently open file when its content has been changed? Reason for this is that I want to look at my log file from a simulation, as I run simulation so

Re: Another regular expression substitute question

2006-07-27 Thread Mark Woodward
Hi Xiaoshen, On Wed, 26 Jul 2006 09:27:33 + Xiaoshen Li [EMAIL PROTECTED] wrote: Dear All, Thank you very much for all your responses. I am sorry. My file is a little different now. It is like following: 1 data_34.dat pre= -7872.11914060 post= -7812.80517600 diff= 59.31396460 2

Re: --enable-gui argument... no GUI support

2006-05-28 Thread Mark Woodward
Hi Bohdan, On Sun, 28 May 2006 12:19:11 +0200 Bohdan Ganický [EMAIL PROTECTED] wrote: Hi, I've just switched to SuSE 10.1 (and Gnome) recently and one of the first things I wanted to do was to compile Vim 7.0. But! While configuring, I always get the same line about GUI: --enable-gui

Remembering 'Fold State' across buffers

2006-05-26 Thread Mark Woodward
Hi all, The problem I'm having is I'll open all folds in a buffer, switch buffers, go back to the original and all folds are closed again. Is there a way to stop this? ie Vim remembers the 'fold state' of the buffer when I return to it? So if folds were open when I left they'll be open when I

Re: Remembering 'Fold State' across buffers

2006-05-26 Thread Mark Woodward
, you could consider adding your own mode lines to have the folding appropriate for your different files. On 5/26/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Mark Woodward wrote: Hi all, The problem I'm having is I'll open all folds in a buffer, switch buffers, go back

Re: Help: The html file generated with the command :TOhtml doesn't look like the same as in VIM.

2006-05-19 Thread Mark Woodward
Hi Japerlh, On Fri, 19 May 2006 18:13:21 +0800 Japerlh [EMAIL PROTECTED] wrote: The html file generated with the command :TOhtml doesn't look like the same as in VIM. Seems like font information is lost. Is there anybody having any idea about that? Thanks. stick something like the

Re: splitting windows

2006-05-11 Thread Mark Woodward
Hi Raphael, On Thu, 11 May 2006 13:22:54 +0200 (MEST) Raphael Brunner [EMAIL PROTECTED] wrote: dear users How can I open four files (eg: file1.txt, file2.txt, file3.txt and file4.txt) for a view as following: VIM ¦file1 ¦file2

Re: Can't compile gui version with xorg

2006-04-18 Thread Mark Woodward
Hi Anthony, On Mon, 17 Apr 2006 16:09:12 +0100 Anthony Campbell [EMAIL PROTECTED] wrote: I want to compile vim6.4 for my recently upgraded xorg. This is because the Debian packages all lack the help.txt file for some reason, even though I've installed vim-doc. But vim compiles without the

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Mark Woodward
On Tue, 18 Apr 2006 00:03:13 -0700 Yi Qiang [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Using gvim, I find it very irritating that the Open File dialog always defaults to $HOME instead of the last browsed directory. Is there a way to change this behavior

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Mark Woodward
Hi Yi Qiang, On Tue, 18 Apr 2006 00:03:13 -0700 Yi Qiang [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Using gvim, I find it very irritating that the Open File dialog always defaults to $HOME instead of the last browsed directory. Is there a way to change

Re: help.txt and debian (was: Re: Can't compile gui version with xorg)

2006-04-18 Thread Mark Woodward
Hi James, On Tue, 18 Apr 2006 12:35:28 +0200 James Oliver [EMAIL PROTECTED] wrote: Hi, On 4/17/06, Anthony Campbell [EMAIL PROTECTED] wrote: I want to compile vim6.4 for my recently upgraded xorg. This is because the Debian packages all lack the help.txt file for some reason, even

Re: Omnicomplete 7c

2006-04-10 Thread Mark Woodward
Georg Dahn wrote: not sure if this is just me or a bug? C-X C-O presents a list of completions. I scroll to the one I want and hit cr. The first item on the list is always inserted? By hitting 'enter' the highlighted entry was selected some versions ago. However, there were some problems with

Re: open file

2006-04-08 Thread Mark Woodward
Hi Linda, linda.s wrote: In the command mode, i typed :vim filename and got the error message: not an edit command why i can not use :vim to open the file? Linda from the *command line* use 'vim filename' from *within vim* use :e filename -- Mark

Re: restore function

2006-04-08 Thread Mark Woodward
Hi Linda, linda.s wrote: If I wrongly set nnoremap w k in my command mode, how to restore the function of w? Linda if I could make a suggestion. Help is your friend! The first thing I'd be doing is learning how to use it. If I had your problem above the things I'd do are: :h nnoremap if