% jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Suresh Govindachar
Hello, Version: VIM - Vi IMproved 7.0 (2006 May 7, compiled Dec 7 2006 07:33:35) MS-Windows 32 bit GUI version with OLE support Included patches: 1-178 Huge version with GUI. Start gvim via command: c:\opt\vim\vim70\gvim.exe --noplugin -u NONE

Re: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread A.J.Mechelynck
Suresh Govindachar wrote: Hello, Version: VIM - Vi IMproved 7.0 (2006 May 7, compiled Dec 7 2006 07:33:35) MS-Windows 32 bit GUI version with OLE support Included patches: 1-178 Huge version with GUI. Start gvim via command:

Re: Mac Questions

2007-01-08 Thread striker
I believe both versions of Vim get its initial info from ~/.bashrc. In my ~/.vimrc I have the following entry: make sure Vim uses the bash shell set shell=bash Which verion(s) are you using? I have OS X 10.4.8 and the command line version of Vim is 6.3.82. The GUI version is 7.0. Other

Re: Mac Questions

2007-01-08 Thread Alan G Isaac
On Mon, 8 Jan 2007, Brett Calcott apparently wrote: I have just got a Macbook (switching from windows) and have downloaded and compiled the latest version of Vim on it. It all works fine, but I have a few questions. Would you mind outlining the steps you took for someone who is making the

RE: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Suresh Govindachar
A.J.Mechelynck wrote Suresh Govindachar wrote: Hello, Version: VIM - Vi IMproved 7.0 (2006 May 7, compiled Dec 7 2006 07:33:35) MS-Windows 32 bit GUI version with OLE support Included patches: 1-178 Huge version with GUI. Start gvim

Re: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Jürgen Krämer
Hi, Suresh Govindachar wrote: A.J.Mechelynck wrote Suresh Govindachar wrote: Start gvim via command: c:\opt\vim\vim70\gvim.exe --noplugin -u NONE -U NONE :saveas boo.c :set filetype=c Enter following text: if(1) { /*

RE: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Suresh Govindachar
Jürgen Krämer wrote: Suresh Govindachar wrote: A.J.Mechelynck wrote Suresh Govindachar wrote: Start gvim via command: c:\opt\vim\vim70\gvim.exe --noplugin -u NONE -U NONE :saveas boo.c :set filetype=c Enter following text: if(1) {

Find and replace in visual area.

2007-01-08 Thread Silva, Paulo
Greetings, I'm trying to do a replace in a selection. After selecting the area, with v, directional keys, v again (or not - both give the same result). Then I type :%s/\%V20/21/ and I get: E71: Invalid character after \% This works the same with any caracter that I put after the \% even with

Re: Mac Questions

2007-01-08 Thread Axel Kielhorn
Am 08.01.2007 um 13:26 schrieb striker: I believe both versions of Vim get its initial info from ~/.bashrc. Well, actually they get the environment from the shell that starts Vim. When you start Vim from the bash, it will inherit the environment. When you start Vim from the Finder (or the

Re: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Jürgen Krämer
Hi, Suresh Govindachar wrote: Jürgen Krämer wrote: I don't see a place in the help files where % is documented to skip comments. You can only force it to skip strings by removing % from cpoptions (see :help cpo-%). In the steps I gave to reproduce the bug,

Re: Find and replace in visual area.

2007-01-08 Thread Jean-Rene David
* Silva, Paulo [2007.01.08 11:30]: I'm trying to do a replace in a selection. After selecting the area, with v, directional keys, v again (or not - both give the same result). Then I type :%s/\%V20/21/ Don't know why it doesn't work on your end. Works here. In any case, to do what you

Re: Find and replace in visual area.

2007-01-08 Thread Charles E Campbell Jr
Silva, Paulo wrote: Greetings, I'm trying to do a replace in a selection. After selecting the area, with v, directional keys, v again (or not - both give the same result). Then I type :%s/\%V20/21/ and I get: E71: Invalid character after \% This works the same with any caracter that I put

Re: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Bram Moolenaar
Suresh Govindachar wrote: Version: VIM - Vi IMproved 7.0 (2006 May 7, compiled Dec 7 2006 07:33:35) MS-Windows 32 bit GUI version with OLE support Included patches: 1-178 Huge version with GUI. Start gvim via command:

Re: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Charles E Campbell Jr
Suresh Govindachar wrote: (snip) Enter following text: if(1) { /* --- {{{3 */ } Now try to jump between { using %. Bug: The { in the manual fold-markers interferes with %-jumping. [comments on using the matchit plugin] % is a feature of Vim -- I am not

Re: Mac Questions

2007-01-08 Thread Mikolaj Machowski
On pon sty 8 2007, vim@vim.org wrote: I thought the same thing. But it does not appear to source my .bash_profile or .bashrc. Anyone out there got some clues...? /etc/profile /etc/bashrc ? This will be global for all users (if working :)). m.

Re: error in help on tag-highlight ?

2007-01-08 Thread Bram Moolenaar
Toon Knapen wrote: I'm looking into using ctags in combination with vim and was looking for highlighting the tags in vim. The :help tag-highlight explains how the necessary tags.vim file can be generated. I do have two questions regarding this info however: 1) It mentions a (make-)

Re: dictionary fun makes gvim crash

2007-01-08 Thread Bram Moolenaar
Kim Schulz wrote: I get gvim to crash every time I try the following: let mynumbers = {0:'zero',1:'one',2:'two',3:'three',4:'four', 5:'five',6:'six',7:'seven',8:'eight',9:'nine'} function mynumbers.convert(number) dict return join(map(split(a:number,'\zs'), 'get(self,

Re: Mac Questions

2007-01-08 Thread Brett Calcott
This does seem to be the case. No amount of fiddling with .profile .bashrc .bash_profile /etc/bashrc or whatever makes any difference to the environment that ends up in the GUI version that is started from the dock. For the moment I just do something like this: if has(gui_running) let

Re: Find and replace in visual area.

2007-01-08 Thread Mr. Shawn H. Corey
Charles E Campbell Jr wrote: Silva, Paulo wrote: Greetings, I'm trying to do a replace in a selection. After selecting the area, with v, directional keys, v again (or not - both give the same result). Then I type :%s/\%V20/21/ and I get: E71: Invalid character after \% This works

Quick start compiling on Mac (was Mac Questions)

2007-01-08 Thread Brett Calcott
Would you mind outlining the steps you took for someone who is making the same transition but is not used to compiling their own apps? (I have XCode installed.) I installed subversion and used it to get the latest version of the code. Get it from here : http://www.codingmonkeys.de/mbo/ Then

Re: Mac Questions

2007-01-08 Thread Dave Land
Hello, On Jan 8, 2007, at 2:31 PM, Brett Calcott wrote: This does seem to be the case. No amount of fiddling with .profile .bashrc .bash_profile /etc/bashrc or whatever makes any difference to the environment that ends up in the GUI version that is started from the dock. I don't know if the

Re: Mac Questions

2007-01-08 Thread Dave Land
On Jan 8, 2007, at 3:03 PM, Dave Land wrote: Happily, Apple provided a utility that handles it for you: defaults read ${HOME}/.MacOSX/environment Actually, making this work in bash (or other shell) requires a little more than just reading the file... Here's the relevant chunk from my

OS X color scheme issue

2007-01-08 Thread Panos Laganakos
Vim Version: 7.0.* OS X Version: 10.4.8 I am having a strange issue on Vim startup. on my .vimrc I specify: set background=dark colorscheme darktango though, every time I start Vim up, it turns out like this: http://panos.solhost.org/images/Picture%201.png the situation persist, even if I

Re: :sort by date

2007-01-08 Thread Vigil
I have a text file in the format: 01/04/2007,field1,field2,field3 01/03/2007,field1,field2,field3 12/30/2006,field1,field2,field3 etc... I need to sort by date, but the new dates in 2007 are placed first in the sort algorithm. How can I sort by the entire date in the format above? This works

Re: :sort by date

2007-01-08 Thread Bill McCarthy
On Mon 8-Jan-07 6:04pm -0600, Vigil wrote: I have a text file in the format: 01/04/2007,field1,field2,field3 01/03/2007,field1,field2,field3 12/30/2006,field1,field2,field3 etc... I need to sort by date, but the new dates in 2007 are placed first in the sort algorithm. How can I sort

Re: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Suresh Govindachar
Jürgen Krämer wrote: Suresh Govindachar wrote: Jürgen Krämer wrote: I don't see a place in the help files where % is documented to skip comments. You can only force it to skip strings by removing % from cpoptions (see :help cpo-%). I made two mistakes: mis-remembered

Upper casing a UTF-8 character

2007-01-08 Thread Przemyslaw Gawronski
Hi I've got csv file, with some text fields encoded in utf-8. I would like to upper case the first letter in a word. Normally I would just use '~' on that character, but it doesn't seem to work with utf-8 encoding. Thanks for suggestions Przemek -- AIKIDO TANREN DOJO - Poland - Warsaw -

Re: GNOME HIG compliance in gvim: button order in close confirmation dialogs (PATCH)

2007-01-08 Thread Trenton Schulz
On Jan 7, 2007, at 1:03 PM, Bram Moolenaar wrote: Edward Catmur wrote: This patch improves HIG compliance when compiled with FEAT_GUI_GNOME: * Close confirmation dialogs use Save/Discard/Cancel instead of Yes/No/Cancel * GTK_STOCK_SAVE used for Save * Default button placed at end of

Re: GNOME HIG compliance in gvim: button order in close confirmation dialogs (PATCH)

2007-01-08 Thread Martin Stubenschrott
On Mon, Jan 08, 2007 at 12:14:05PM +0100, Trenton Schulz wrote: I'll look into this later. Perhaps Save/Discard/Cancel is better for all GUIs, since you don't need to read the text to know whether yes means save or discard. But it will break the translations. Just being a lurker here, I

Re: GNOME HIG compliance in gvim: button order in close confirmation dialogs (PATCH)

2007-01-08 Thread Trenton Schulz
On Jan 8, 2007, at 12:39 PM, Martin Stubenschrott wrote: On Mon, Jan 08, 2007 at 12:14:05PM +0100, Trenton Schulz wrote: I'll look into this later. Perhaps Save/Discard/Cancel is better for all GUIs, since you don't need to read the text to know whether yes means save or discard. But it

Re: GNOME HIG compliance in gvim: button order in close confirmation dialogs (PATCH)

2007-01-08 Thread Martin Stubenschrott
On Mon, Jan 08, 2007 at 05:05:31PM +0100, Trenton Schulz wrote: Would you also vote for changing the console style dialogs? I mean, console users are normally used to press y or n, when answering these kind of questions. Well, don't you do that by typing :wq/:wq! or ZZ or whatever? Most of

Re: GNOME HIG compliance in gvim: button order in close confirmation dialogs (PATCH)

2007-01-08 Thread Nikolai Weibull
On 1/8/07, Trenton Schulz [EMAIL PROTECTED] wrote: On Jan 8, 2007, at 12:39 PM, Martin Stubenschrott wrote: Would you also vote for changing the console style dialogs? I mean, console users are normally used to press y or n, when answering these kind of questions. Well, don't you do that

Re: compile vim7 with different or without local prefix /usr/local

2007-01-08 Thread Bram Moolenaar
Michael Haubenwallner wrote: maybe I've overlooked something in configure.in, but to me it seems that it is impossible to compile vim7 without searching /usr/local/include and /usr/local/lib. Thing is, on solaris fex, if iconv.h is found in /usr/local/include, /usr/local/lib/libiconv.so

Re: compile vim7 with different or without local prefix /usr/local

2007-01-08 Thread Michael Haubenwallner
On Mon, 2007-01-08 at 22:16 +0100, Bram Moolenaar wrote: Michael Haubenwallner wrote: maybe I've overlooked something in configure.in, but to me it seems that it is impossible to compile vim7 without searching /usr/local/include and /usr/local/lib. Thing is, on solaris fex, if