Bug in completion

2007-05-16 Thread Gautam Iyer
Hi All, I see the following bug: 1. Open Vim, and vertically split into two windows. 2. File name complete something with very long file names (longer than the width of the window you're typing into). The screen is hodge podge. There are uncleared pieces of the completion menu

Re: [Announcement] Subversion repository location changed

2007-05-09 Thread Gautam Iyer
On Wed, May 09, 2007 at 02:20:52PM -0700, Micah Cowan wrote: If you had checked out a copy of the sources before, please run this command in your source root directory to switch into the current branch: svn switch https://vim.svn.sourceforge.net/svnroot/vim/branches/vim7.1

Re: vim_is_xterm() and screen

2007-05-08 Thread Gautam Iyer
On Tue, May 08, 2007 at 03:04:10PM -0700, Micah Cowan wrote: It's about time termcap/terminfo gets updated to support the features we need, instead of hacking solutions in all programs. I'm afraid I don't have time for this (the original development of termcap was closely related to the

Re: Highlighting keywords from C libraries

2007-02-21 Thread Gautam Iyer
On Thu, Feb 22, 2007 at 03:19:24AM +0900, Kazunobu Kuriyama wrote: snip I attach a modified c.vim syntax file (minor changes to accommodate the modular structure above), and glibc.vim, xlib.vim (which should be put inside syntax/clibs/) to highlight functions and constants from glibc

Re: Highlighting keywords from C libraries

2007-02-21 Thread Gautam Iyer
On Wed, Feb 21, 2007 at 10:07:22AM -0600, Bill McCarthy wrote: I find it useful to have standard functions and constants in C libraries highlighted. I attach syntax files for this purpose. This is a nice addition that I would like to see included. I noticed that you patched c.vim against

Re: Highlighting keywords from C libraries

2007-02-21 Thread Gautam Iyer
On Thu, Feb 22, 2007 at 07:39:50AM +0900, Kazunobu Kuriyama wrote: snip I attach a modified c.vim syntax file (minor changes to accommodate the modular structure above), and glibc.vim, xlib.vim (which should be put inside syntax/clibs/) to highlight functions and constants

Re: Quickfix window not working anymore

2007-02-19 Thread Gautam Iyer
On Mon, Feb 19, 2007 at 02:21:49PM +0100, A.J.Mechelynck wrote: I just upgraded to Vim-7.0.195, and found that my quick fix bindings don't work any more. For instance :vimgrep /pattern/ *.c :copen Then pressing Enter on a particular error does not move to that error

Keyword completion

2006-09-20 Thread Gautam Iyer
Hi All, Maybe this has been discussed already: When pressing Ctrl-P / Ctrl-N, can we get vim to complete from the list of syntax keywords? Better still say from a specified group? Or does one have to write out these keywords separately in a completion file? Thanks, GI -- A hangover is the

Re: [vim-dev] Re: Keyword completion

2006-09-20 Thread Gautam Iyer
On Wed, Sep 20, 2006 at 10:41:58PM +0200, Martin Stubenschrott wrote: Maybe this has been discussed already: When pressing Ctrl-P / Ctrl-N, can we get vim to complete from the list of syntax keywords? You can do that by setting: :set omnifunc=syntaxcomplete#Complete and then use

Re: vim mailing lists

2006-09-02 Thread Gautam Iyer
On Fri, Sep 01, 2006 at 10:18:35PM +0200, Bram Moolenaar wrote: Apparently the sorbs blacklist mechanism is still being used, causing trouble for some people. I have asked the mail server maintainer to remove sorbs a few times now... Twice recently, sorbs has bounced my

Re: better recognising of tex vs plaintex filetype

2006-08-30 Thread Gautam Iyer
On Wed, Aug 30, 2006 at 07:17:16PM +0200, Stefano Zacchiroli wrote: I agree with the comment that plain TeX users may also define such sectioning commands. Maybe it would be safe if you check for such definitions, using an include-file search ... but of course, that is more convenient

Re: vim mailing lists

2006-08-30 Thread Gautam Iyer
On Wed, Aug 30, 2006 at 10:12:44PM +0200, Bram Moolenaar wrote: Apparently the sorbs blacklist mechanism is still being used, causing trouble for some people. I have asked the mail server maintainer to remove sorbs a few times now... Twice recently, sorbs has bounced my mails to

folding error for C files

2006-08-24 Thread Gautam Iyer
Hi Bram, I noticed the following problem when typing C files: If you enter a { on the last line of a file, and press enter, then the last two lines become a closed fold *CONTAINING* the cursor. You can not see the cursor, or the { in the previous line, until you type some text. At that point the

Re: How to trigger a screen update from RealWaitForChar

2006-08-18 Thread Gautam Iyer
On Thu, Aug 17, 2006 at 11:35:09PM -0700, Brad Beveridge wrote: Hi all, I'm working with a Vim that has been hacked so that you can get callbacks when data appears on a socket. Basically, our callback system works in pretty much the same way as the code in FEAT_SNIFF. We add the

Re: foldmethod=expr very slow

2006-07-24 Thread Gautam Iyer
On Mon, Jul 24, 2006 at 12:30:07PM -0500, Thore B. Karlsen wrote: I use foldmethod=expr with the following foldexpr: set foldexpr=GetFoldLevel(v:lnum) function! GetFoldLevel(line) let line_text = getline(a:line) if (line_text =~ '\%({.*}\)\|\%(}.*{\)') return '='

Re: [BUG] Swap file searched for in the wrong place

2006-05-19 Thread Gautam Iyer
On Fri, May 19, 2006 at 08:29:48PM +0200, A.J.Mechelynck wrote: Now when you type vim /tmp/bar it reports that a .swp file is found and asks you about recovery. However when you press R for recovering the file, vim complains saying it can not find the swap file (probably

[BUG] Swap file searched for in the wrong place

2006-05-17 Thread Gautam Iyer
Hi All, I found the following bug: $ mkdir /tmp/foo $ touch /tmp/foo/bar $ cd /tmp/ $ ln -s foo/bar . $ vim bar Now type some text into bar, and then kill vim (say with kill -9) from a different terminal. Now when you type vim /tmp/bar it reports that a .swp file is found

Re: [BUG] Swap file searched for in the wrong place

2006-05-17 Thread Gautam Iyer
On Wed, May 17, 2006 at 10:31:55AM -0400, James Vega wrote: On Tue, May 16, 2006 at 11:19:57PM -0500, Gautam Iyer wrote: Now when you type vim /tmp/bar it reports that a .swp file is found and asks you about recovery. However when you press R for recovering the file, vim complains saying

Re: Vim 7 pre-announcement

2006-05-07 Thread Gautam Iyer
On Sun, May 07, 2006 at 05:58:08PM +0200, Bram Moolenaar wrote: Before announcing it everywhere I'll wait until the Subversion repository has it. And I need to update the website. Ooh. Subversion repository! Thanks using the SourceForge subversion facilities. The CVS is *still* broken, and

mrxvtrc filetype and syntax files

2006-04-27 Thread Gautam Iyer
. Created : Wed 26 Apr 2006 01:20:53 AM CDT Modified : Thu 27 Apr 2006 03:21:09 AM CDT Author: Gautam Iyer [EMAIL PROTECTED] Description : Syntax file for mrxvtrc Quit when a syntax file was already loaded if exists(b:current_syntax) finish endif Define options. let s:boolOpts

Re: mrxvtrc filetype and syntax files

2006-04-27 Thread Gautam Iyer
On Thu, Apr 27, 2006 at 11:35:52AM +0200, Nikolai Weibull wrote: On 4/27/06, Gautam Iyer [EMAIL PROTECTED] wrote: Attached are the filetype, syntax and ftdetect files for mrxvt config files. Sorry I couldn't make your April 20th deadline ... but maybe you can stick these in Vim-7.1

Re: mrxvtrc filetype and syntax files

2006-04-27 Thread Gautam Iyer
On Thu, Apr 27, 2006 at 09:40:56PM +0200, Nikolai Weibull wrote: On 4/27/06, Gautam Iyer [EMAIL PROTECTED] wrote: On Thu, Apr 27, 2006 at 11:35:52AM +0200, Nikolai Weibull wrote: Just a comment on the syntax definition. You could be using :syn-keyword for quite a few of the things

C syntax folding #if-0 omission

2006-04-24 Thread Gautam Iyer
Hi Bram, I just checked out C folding in Vim 7. Thanks a TON, it works great. Just one request though -- The #if 0 constructs don't get folded as comments do. I would suggest enabling / disabling folding of #if 0 constructs independently of the c_no_comment_fold variable, since some people use

Re: Moderator for Vim Tips

2006-04-20 Thread Gautam Iyer
On Wed, Apr 19, 2006 at 08:21:49PM -0400, Jeremy Conlin wrote: A few weeks (months?) ago a suggestion was made that the submissions to Vim tips be moderated. This is due to the address being used by spammers. Apparently nobody volunteered to do this because there are still inappropriate