Re: problem compiling vim70.

2006-10-18 Thread A.J.Mechelynck
Anupam Srivastava wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 1. Forget that shortcut dirname `locate curses.h` thing. It was just to give the idea to Ajay about how to compile by redefinign CPPFLAGS and LDFALGS. Well, you made it sound like an actual shell script that ought to work.

svn updates

2006-10-18 Thread Mark Guzman
I hate to report problems w/o having solutions, but the svn repos is currently only up to patch 132. I'm wondering if whatever update script was maintaining it is broken... Hopefully someone with access can take a look at it. --mark -- sic transit gloria et adulescentia blog |

Re: svn updates

2006-10-18 Thread Georg Dahn
Hi! Mark Guzman wrote: I hate to report problems w/o having solutions, but the svn repos is currently only up to patch 132. I'm wondering if whatever update script was maintaining it is broken... Hopefully someone with access can take a look at it. As far as I know, the SVN repository is kept

Re: svn updates

2006-10-18 Thread Bill McCarthy
On Wed 18-Oct-06 4:13pm -0600, Mark Guzman wrote: I hate to report problems w/o having solutions, but the svn repos is currently only up to patch 132. I'm wondering if whatever update script was maintaining it is broken... Hopefully someone with access can take a look at it. That's updated

Re: Mapping doesn't work in putty.

2006-10-18 Thread Peter Hodge
Perhaps you could use: map [ctrl-v][ctrl-left] :tabpCR map [ctrl-v][ctrl-right] :tabnCR Except instead of typing 'ctrl-v' and 'ctrl-left' literally, you type those combinations instead. This will map the exact escape sequences that your terminal is sending. regards, Peter --- J A G P R

Re: Mapping doesn't work in putty.

2006-10-18 Thread A.J.Mechelynck
J A G P R E E T wrote: Hi There, I have these mappings defined in my .vimrc file. map C-t :tabnew map C-left :tabpCR map C-right :tabnCR I'm using putty(terminal emulator) to access the unix server. The fist mapping works absolutely fine. The other two doesn't work at all and gives the

Automatically adding header into file with specific extension

2006-10-18 Thread Gundala Viswanath
Hi, I want to be able to have VIM automatically insert this line: #!/usr/bin/python Whenever I open a NEW file with *.py or *.egg extension for example under bash $ vi mycode.py or $ vi mycode.egg or under VI : e mycode.py Is it possible? -- Gundala Viswanath

Re: Automatically adding header into file with specific extension

2006-10-18 Thread ymc014
hi, please take a look at vim tip #434 the example there is for *.h and *.cpp files but you might find some idea from it. hth, ymc - Original Message - From: Gundala Viswanath [EMAIL PROTECTED] To: vim@vim.org Sent: Wednesday, October 18, 2006 4:19 PM Subject: Automatically adding

Re: Automatically adding header into file with specific extension

2006-10-18 Thread Gundala Viswanath
Thanks Yakov, It works! au BufNewFile *.py,*.egg :call setline(1, #!/usr/bin/python) But, how can we insert more than 1 lines? For example I want: #!/usr/bin/python import os import sys To be inserted. -- Gundala Viswanath

RE: Mapping doesn't work in putty.

2006-10-18 Thread J A G P R E E T
Hi Peter, It doesn't work in this case either. But I got the solution from Tony. Thanks a lot for your efforts. Regards, Jagpreet -Original Message- From: Peter Hodge [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 18, 2006 12:18 PM To: J A G P R E E T; Vim mailing list Subject:

RE: Mapping doesn't work in putty.

2006-10-18 Thread J A G P R E E T
Thanks a ton Tony. I checked how putty is treating to left and C-left. The new settings which is working(for putty and xterm as well) in my case is. map C-t :tabnew if has(gui_running) || (term == win32) || (term == pcterm) || (term == xterm) map C-left : tabprevCR map C-right : tabnextCR

Re: Automatically adding header into file with specific extension

2006-10-18 Thread Tim Chase
au BufNewFile *.py,*.egg :call setline(1, #!/usr/bin/python) But, how can we insert more than 1 lines? For example I want: #!/usr/bin/python import os import sys To build on Yakov's suggestion, you should be able to put whatever lines you want in a file (called, say ~/.python_template)

Re: search visual block

2006-10-18 Thread Robert Cussons
Jean-Rene David wrote: * Lev Lvovsky [2006.10.17 17:15]: Is it possible to search for a string by selecting that string in visual mode? Meaning, if I highlight something, and then want to search for that thing which is highlighted in the rest of the doc? You already got lots of good

Wrapping by substitution

2006-10-18 Thread Steve Hall
I'm having a mental block, how can I wrap a string via substitute() ? I've been trying something like: let str = 123456789012345678901234567890 let str = substitute(str, '\n\([[:print:]]\{-10,}\)', '\n\1\n', '') echo str to produce: 1234567890 1234567890 1234567890 -- Steve Hall

Re: Automatically adding header into file with specific extension

2006-10-18 Thread Mikolaj Machowski
Dnia środa, 18 października 2006 10:19, Gundala Viswanath napisał: Hi, I want to be able to have VIM automatically insert this line: :help skeleton m.

Re: search visual block

2006-10-18 Thread Benji Fisher
On Wed, Oct 18, 2006 at 12:28:28PM +0200, Robert Cussons wrote: Jean-Rene David wrote: [snip] -- cut here --- Search for visually selected text {{{ From an idea by Michael Naumann, Jürgen Krämer. function! VisualSearch(direction) range let

Re: search visual block

2006-10-18 Thread Jean-Rene David
* Robert Cussons [2006.10.18 06:30]: I did notice that between the if and else there are which just act as comments as they are on newlines, Sorry, I should have known that wouldn't come out right. There's a literal newline between the quotes. You can enter it by pressing CTRL-VCTRL-M.

Re: search visual block

2006-10-18 Thread Robert Cussons
Benji Fisher wrote: On Wed, Oct 18, 2006 at 12:28:28PM +0200, Robert Cussons wrote: Jean-Rene David wrote: [snip] -- cut here --- Search for visually selected text {{{ From an idea by Michael Naumann, Jürgen Krämer. function! VisualSearch(direction)

Re: search visual block

2006-10-18 Thread A.J.Mechelynck
Jean-Rene David wrote: * Robert Cussons [2006.10.18 06:30]: I did notice that between the if and else there are which just act as comments as they are on newlines, Sorry, I should have known that wouldn't come out right. There's a literal newline between the quotes. You can enter it by

Re: search visual block

2006-10-18 Thread Robert Cussons
Jean-Rene David wrote: * Robert Cussons [2006.10.18 06:30]: I did notice that between the if and else there are which just act as comments as they are on newlines, Sorry, I should have known that wouldn't come out right. There's a literal newline between the quotes. You can enter it by

Re: search visual block

2006-10-18 Thread Jean-Rene David
* Benji Fisher [2006.10.18 09:15]: I try to avoid such problems by not including raw CR, ESC, etc. characters in my vim scripts. I suggest replacing the two :execute lines with execute normal ? . l:pattern . \CR and execute normal / . l:pattern . \CR I was looking for a way

Re: split vertically at a tag

2006-10-18 Thread Charles E Campbell Jr
Kamaraju Kusumanchi wrote: If I do ctrl-W ctrl-] in normal mode, vim splits the current window horizontally. Is there any way to achieve the same functionality but with window being split vertically instead of horizontally? Here's another solution: nmap silent F9 :exe 'vert sta

Re: problem compiling vim70.

2006-10-18 Thread Anupam Srivastava
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ajay Gupta wrote: On 10/18/06, Gary Johnson [EMAIL PROTECTED] wrote: Note that the messages say that configure is checking for tgetent in termlib, termcap and curses. They say nothing about checking in ncurses. If you want to use ncurses, you

Re: www.vim.org down?

2006-10-18 Thread Yongwei Wu
On 10/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I don't think it is happen recently. During the past two years I'd never sucess in visiting www.vim.org, only vim.sf.net works -- Sincerely, Pan, Shi Zhu. ext: 2606 Really? A year ago or so www.vim.org was blocked from China, but

Re: search visual block

2006-10-18 Thread Jean-Rene David
* Robert Cussons [2006.10.18 09:29]: Everything seems to work fine now, except the searched for items aren't highlighted like they normally are when I search Whether or not search items are highlighted depends on the value of the 'hlsearch' option. The search item gets highlighted on my end

Possible feature request

2006-10-18 Thread Brian McKee
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, Was playing with the new built in sort this morning. Found what I thought was an inconsistency. Forgive the stilted explanation, I had trouble putting this in words. I often work out my pattern match using /mypattern/ and observe the

Re: Contextual 'iskeyword'?

2006-10-18 Thread A.J.Mechelynck
Benji Fisher wrote: On Wed, Oct 18, 2006 at 01:21:31AM +0200, A.J.Mechelynck wrote: After reading this thread, I've seen requests for improvement to the Vim source; but let's try to find (for the time being) something which works in the current Vim version. 1. Em dashes should normally be

Re: search visual block

2006-10-18 Thread Robert Cussons
Jean-Rene David wrote: * Robert Cussons [2006.10.18 09:29]: Everything seems to work fine now, except the searched for items aren't highlighted like they normally are when I search Whether or not search items are highlighted depends on the value of the 'hlsearch' option. The search item

Re: problem compiling vim70.

2006-10-18 Thread A.J.Mechelynck
Anupam Srivastava wrote: [...] (Vim does compile on my system) Try to do this. locate curses.h (or ncurses.h) locate curses.h /usr/include/curses.h /usr/include/curses/curses.h /usr/include/ncurses.h /usr/include/python2.4/py_curses.h /usr/include/slcurses.h locate libncurses (or

Re: VIM as C++ IDE

2006-10-18 Thread Peng Yu
On 10/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Peng Yu [EMAIL PROTECTED] 写于 2006-10-14 05:59:29: map F12 ESC:wkEnter:makekEnter Can some body provide some script to satisfy my more general requirement? I want press F12, then make is called. The error window will not be closed

keymap files for Bulgarian

2006-10-18 Thread Boyko Bantchev
Hello all, To most of you this is of no interest, but anyway ... :) I've created keymap files for the two keyboard layouts used in Bulgaria: http://www.math.bas.bg/softeng/bantchev/misc/vim/bulgarian-phonetic.vim and http://www.math.bas.bg/softeng/bantchev/misc/vim/bulgarian-bds.vim . Both can

Re: problem compiling vim70.

2006-10-18 Thread Anupam Srivastava
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A.J.Mechelynck wrote: Anupam Srivastava wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 1. Forget that shortcut dirname `locate curses.h` thing. It was just to give the idea to Ajay about how to compile by redefinign CPPFLAGS and LDFALGS.

color schemes same fg and bg on vimdiff

2006-10-18 Thread Ben K.
Vimmers, I use vimdiff in gnome-terminal and sometimes in GUI, but the default color scheme (I found somehow it's not the same as the colors/default.vim) sometimes use the same color for both foreground and background. Most of the color schemes in the colors directory do the same (same or

follow up - colorscheme on vimdiff

2006-10-18 Thread Ben K.
The previous setting gave me white on white in some cases so I added guibg. highlight cConstant ctermfg=white ctermbg=grey guifg=white guibg=grey highlight cString ctermfg=white ctermbg=grey guifg=white guibg=grey highlight cNumber ctermfg=white ctermbg=grey guifg=white guibg=grey

Re: color schemes same fg and bg on vimdiff

2006-10-18 Thread A.J.Mechelynck
Ben K. wrote: Vimmers, I use vimdiff in gnome-terminal and sometimes in GUI, but the default color scheme (I found somehow it's not the same as the colors/default.vim) sometimes use the same color for both foreground and background. Most of the color schemes in the colors directory do the

automatically going from header file to implementation file

2006-10-18 Thread Naim Far
Hi, Does any body know a way of automatically going from header file to its implementation file?! and vice versa?!

Fighting with comments

2006-10-18 Thread eric1235711
Hello I´m PHP programmer and I started programming in gVim last weak, and I´m liking it very much But I got a trouble... When I´m commenting (// or /* or #) and I type SPACE it breaks the line automatically. Always I start a comment, i have to go to normal mode and type :set nostaCR :set

RE: Wrapping by substitution

2006-10-18 Thread Steve Hall
From: Tim Chase, Wed, October 18, 2006 12:00 pm The application is this :version pretty-fier: function! Str_wrap(str, len) return substitute(a:str, '[[:print:]]\{,'.a:len.'}','\n','g') endfunction I must be missing something...in your original post, you didn't have any linebreaks

Re: automatically going from header file to implementation file

2006-10-18 Thread Jean-Rene David
* Naim Far [2006.10.18 13:00]: Does any body know a way of automatically going from header file to its implementation file?! and vice versa?! a.vim : Alternate Files quickly (.c -- .h etc) http://vim.sourceforge.net/scripts/script.php?script_id=31 -- JR

Re: Fighting with comments

2006-10-18 Thread Yakov Lerner
On 10/18/06, eric1235711 [EMAIL PROTECTED] wrote: Hello I´m PHP programmer and I started programming in gVim last weak, and I´m liking it very much But I got a trouble... When I´m commenting (// or /* or #) and I type SPACE it breaks the line automatically. Always I start a comment, i have

Re: Fighting with comments

2006-10-18 Thread eric1235711
Hello Yakov I can fix it when I´m programming, i´m doing it... but I´m getting tired of doing that. I want to alter the syntax file (or what ever else) to fix it permanently. Yakov Lerner-3 wrote: On 10/18/06, eric1235711 [EMAIL PROTECTED] wrote: Hello I´m PHP programmer and I started

Re: Fighting with comments

2006-10-18 Thread Gary Johnson
On 2006-10-18, eric1235711 [EMAIL PROTECTED] wrote: Yakov Lerner-3 wrote: On 10/18/06, eric1235711 [EMAIL PROTECTED] wrote: Hello I´m PHP programmer and I started programming in gVim last weak, and I´m liking it very much But I got a trouble... When I´m commenting (// or

locked window

2006-10-18 Thread Kim Schulz
Hi I was wondering if there is a way to lock a window such that the content can only be changed by scripting/commands. Like a preview window or somthing like that. is that possible to make in Vim or should I make a feature request to get it :-) -- Kim Schulz| Private :

Re: locked window

2006-10-18 Thread Tim Chase
I was wondering if there is a way to lock a window such that the content can only be changed by scripting/commands. Like a preview window or somthing like that. is that possible to make in Vim or should I make a feature request to get it :-) Well, as an atrocious hack, assuming you have a

Re: keymap files for Bulgarian

2006-10-18 Thread Bram Moolenaar
Boyko Bantchev wrote: To most of you this is of no interest, but anyway ... :) I've created keymap files for the two keyboard layouts used in Bulgaria: http://www.math.bas.bg/softeng/bantchev/misc/vim/bulgarian-phonetic.vim and

vimdiff same bg and fg colors

2006-10-18 Thread Ben K.
Thanks Tony and Brady. I got sufficient answers. Happy vimming, Ben K. Developer http://benix.tamu.edu

Re: search visual block

2006-10-18 Thread David Thompson
--- Robert Cussons [EMAIL PROTECTED] wrote: Jean-Rene David wrote: * Robert Cussons [2006.10.18 09:29]: Everything seems to work fine now, except the searched for items aren't highlighted like they normally are when I search Whether or not search items are highlighted depends on

Re: Fighting with comments

2006-10-18 Thread Peter Hodge
--- Gary Johnson [EMAIL PROTECTED] wrote: On 2006-10-18, eric1235711 [EMAIL PROTECTED] wrote: Yakov Lerner-3 wrote: On 10/18/06, eric1235711 [EMAIL PROTECTED] wrote: Hello I´m PHP programmer and I started programming in gVim last weak, and I´m liking it very much

Re: locked window

2006-10-18 Thread Yegappan Lakshmanan
Hello, On 10/18/06, Kim Schulz [EMAIL PROTECTED] wrote: Hi I was wondering if there is a way to lock a window such that the content can only be changed by scripting/commands. Like a preview window or somthing like that. is that possible to make in Vim or should I make a feature request to get

BUG: formatoptions+=t makes comments wrap (incorrectly) when they shouldn't

2006-10-18 Thread Peter Hodge
Hello, When I have formatoptions=t, it makes comment lines wrap when they shouldn't, and it also ignores whatever comment leader is defined in 'comments'. To reproduce: :set formatoptions=roc :set comments=b:% :set textwidth=30 % type these lines of text % as one line, and notice

Match something that not in the pattern

2006-10-18 Thread Peng Yu
Hi, I have the following file segments. I want to concatenate all the lines with their next lines, except that it ends with }}. I want to use the pattern \(}}\)[EMAIL PROTECTED]. It seems not working. Would you please help me to figure out how to match the lineend without }}? Thanks, Peng

Re: Match something that not in the pattern

2006-10-18 Thread Anupam Srivastava
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peng Yu wrote: Hi, I have the following file segments. I want to concatenate all the lines with their next lines, except that it ends with }}. I want to use the pattern \(}}\)[EMAIL PROTECTED]. It seems not working. Would you please help me

Re: VIM as C++ IDE

2006-10-18 Thread panshizhu
Peng Yu [EMAIL PROTECTED] 写于 2006-10-18 23:18:14: On 10/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: for that simple, don't need any plugin: map F12 ESC:wkEnter:makekEnter:copekEnter You see, just add the :cope will do the trick. Note that the cursor will be in :cope window

RE: search visual block

2006-10-18 Thread David Fishburn
-Original Message- From: Lev Lvovsky [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 17, 2006 5:04 PM To: vim@vim.org Subject: search visual block Is it possible to search for a string by selecting that string in visual mode? Meaning, if I highlight something, and then

Re: VIM as C++ IDE

2006-10-18 Thread Peng Yu
On 10/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Peng Yu [EMAIL PROTECTED] 写于 2006-10-18 23:18:14: On 10/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: for that simple, don't need any plugin: map F12 ESC:wkEnter:makekEnter:copekEnter You see, just add the :cope will do the

Fwd: Match something that not in the pattern

2006-10-18 Thread Peng Yu
-- Forwarded message -- From: Peng Yu [EMAIL PROTECTED] Date: Oct 18, 2006 9:19 PM Subject: Re: Match something that not in the pattern To: Bill McCarthy [EMAIL PROTECTED] On 10/18/06, Bill McCarthy [EMAIL PROTECTED] wrote: On Wed 18-Oct-06 8:03pm -0600, Peng Yu wrote: I have

Re: Match something that not in the pattern

2006-10-18 Thread Peter Hodge
--- Peng Yu [EMAIL PROTECTED] wrote: Hi, I have the following file segments. I want to concatenate all the lines with their next lines, except that it ends with }}. I want to use the pattern \(}}\)[EMAIL PROTECTED]. It seems not working. [EMAIL PROTECTED] is the look-ahead assersion, you

Re: VIM as C++ IDE

2006-10-18 Thread panshizhu
Peng Yu [EMAIL PROTECTED] 写于 2006-10-19 10:17:55: On 10/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Peng Yu [EMAIL PROTECTED] 写于 2006-10-18 23:18:14: Is it possible to not to press the last enter key? It is not very convenient. Thanks, Peng try this instead: map F12

Re: www.vim.org

2006-10-18 Thread A.J.Mechelynck
Bram Moolenaar wrote: SourceForge has fixed the VHOST service, www.vim.org is back! I confirm that. If anyone cannot reach this address, it means there is a block somewhere else along the line; and if (wherever you are) http://www.vim.org/ still draws a blank for you, you might be able to

Re: Can the mailing list owner set Reply-to field be [EMAIL PROTECTED]

2006-10-18 Thread A.J.Mechelynck
Peng Yu wrote: Hi, Can the mailing list owner set Reply-to field in every mail forward from this mailing list be vim@vim.org? I replied some mails to the original poster. But sometime I forget to reply the mails to the mailing list. Thanks, Peng If they do, you won't be able to (easily)

Re: VIM as C++ IDE

2006-10-18 Thread Yegappan Lakshmanan
Hi, On 10/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Peng Yu [EMAIL PROTECTED] 写于 2006-10-18 23:18:14: On 10/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: for that simple, don't need any plugin: map F12 ESC:wkEnter:makekEnter:copekEnter You see, just add the :cope will do

Re: Match something that not in the pattern

2006-10-18 Thread A.J.Mechelynck
Peng Yu wrote: Hi, I have the following file segments. I want to concatenate all the lines with their next lines, except that it ends with }}. I want to use the pattern \(}}\)[EMAIL PROTECTED]. It seems not working. Would you please help me to figure out how to match the lineend without }}?

Re: Can the mailing list owner set Reply-to field be [EMAIL PROTECTED]

2006-10-18 Thread panshizhu
Peng Yu [EMAIL PROTECTED] 写于 2006-10-19 10:22:31: Hi, Can the mailing list owner set Reply-to field in every mail forward from this mailing list be vim@vim.org? I replied some mails to the original poster. But sometime I forget to reply the mails to the mailing list. Thanks, Peng

What's the exact meaning of the set 'background'?

2006-10-18 Thread panshizhu
Hi Vimmers, Recently, I've been thinking what this option is designed for. The document saids that: when 'background' is set Vim will adjust the default color groups for the new value. But the colors used for syntax highlighting will not change. But in fact, I had tested and found that when

Re: Can the mailing list owner set Reply-to field be [EMAIL PROTECTED]

2006-10-18 Thread Jean-Rene David
* A.J.Mechelynck [2006.10.18 23:30]: Reply to Sender is meant to reply only to the author of an email. Reply to All is meant to reply to the author and all other recipients. Reply to All usually results in the author receiving duplicates. However since most mailers offer nothing but those two

Re: Can the mailing list owner set Reply-to field be [EMAIL PROTECTED]

2006-10-18 Thread Kamaraju Kusumanchi
On Wednesday 18 October 2006 22:22, Peng Yu wrote: Hi, Can the mailing list owner set Reply-to field in every mail forward from this mailing list be vim@vim.org? I replied some mails to the original poster. But sometime I forget to reply the mails to the mailing list. Use a decent email

Re: What's the exact meaning of the set 'background'?

2006-10-18 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Hi Vimmers, Recently, I've been thinking what this option is designed for. The document saids that: when 'background' is set Vim will adjust the default color groups for the new value. But the colors used for syntax highlighting will not change. But in fact, I had

Re: What's the exact meaning of the set 'background'?

2006-10-18 Thread Peter Hodge
Hello, If you change the background=light, Vim reloads the colorscheme so it has a chance to give you new colors. But if the colorscheme changes background=dark again, then Vim knows that the colorscheme isn't capable of picking colors for a light background. In that case, Vim will just ignore