Re: JavaScript indentation
On Sun, Jan 28, 2007 at 01:12:00AM +0100, Bram Moolenaar wrote: > > Hope that gets added to the default vim 7.1 distribution, because it's > > quite the best working omni complete script I have seen so far. > > Can you mention on what points cppcomplete.vim works better than the > ccomplete.vim scripts? > > If it's overal better I can replace the script. First, it checks return types of functsion (where possible). Lets assume this C code: typedef struct POINT { int x; float y; } _POINT; POINT func() { // POINT foo = ... return foo; } int main() { func(). } --- cppcomplete lists me: x and y as members since func() returns a struct of type POINT. ccomplete does nothing but searching for a long time. I have a 125MB tags file in /usr/include with --foldcase, but cppcomplete is instant, and ccomplete takes some seconds, and still doesn't find something. Second, I am not sure, if ccomplete can follow typedefs, cppcomplete can. These are my main 2 concerns, and probably a unified codebase for c/c++ completion is easier to maintain. But I have not worked with ccomplete that much, so please check, if cppcomplete also works for your usage szenarios when coding C. -- Martin
Re: 7.0.188 - problem with directory browser?
On Sat 27-Jan-07 2:09pm -0600, you wrote: > It appears that this plugin comes pre-installed. Maybe > this should be made into a patch for extra? Bram? Runtime files are kept fairly well updated at the Vim FTP site. You can update those files from there. Scripts have been provided for 'nix and Windows to update local files. For Windows, using 4nt, this one-liner will do the update: copy /[!*~]/u/s ftp://ftp.vim.org/pub/vim/runtime/dos vrt: where vrt: is a directory alias for my $VIMRUNTIME. Dr Chip's plugins, included in the $VIMRUNTIME, are usually kept fairly recent. I prefer not to see patches included for $VIMRUNTIME because they usually generate error messages for those of us who keep fairly current - since they patch older versions. Sometimes changes to source require changes to, say, .vim files in runtime - in which case uploads to the patches site should, ideally, be accompanied by uploads to the runtime site. -- Best regards, Bill
Re: JavaScript indentation
Martin Stubenschrott wrote: > On Sat, Jan 27, 2007 at 07:35:16PM +0100, Bram Moolenaar wrote: > > Whatever this ends up to be: Please send me the best javascript indent > > script, so that I can include it with the runtime files. A "best guess" > > is better than nothing. > > Full ack. > > BTW: The last time I browsed the updated runtime/ repository, there was > no cppcomplete.vim in the autoload/ directory. I really recommend this > omnicomplete script from vim.org's script repository for all C++ > code editing, I even use it for coding C, because (in my opinion) it > works better there than ccomplete.vim. > > Hope that gets added to the default vim 7.1 distribution, because it's > quite the best working omni complete script I have seen so far. Can you mention on what points cppcomplete.vim works better than the ccomplete.vim scripts? If it's overal better I can replace the script. -- Creating the world with Emacs: M-x let-there-be-light Creating the world with Vim: :make world /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\help me help AIDS victims -- http://ICCF-Holland.org///
Re: JavaScript indentation
Martin Stubenschrott wrote: On Sat, Jan 27, 2007 at 07:35:16PM +0100, Bram Moolenaar wrote: Whatever this ends up to be: Please send me the best javascript indent script, so that I can include it with the runtime files. A "best guess" is better than nothing. Full ack. BTW: The last time I browsed the updated runtime/ repository, there was no cppcomplete.vim in the autoload/ directory. I really recommend this omnicomplete script from vim.org's script repository for all C++ code editing, I even use it for coding C, because (in my opinion) it works better there than ccomplete.vim. Hope that gets added to the default vim 7.1 distribution, because it's quite the best working omni complete script I have seen so far. -- Martin For all file types which have no specific omnicomplete script, I recommend to enable "syntax" omni-completion, as followed (inspired from ":help ft-synrax-omni"): --- 8< --- start $VIM/vimfiles/after/plugin/syntaxcomplete.vim if has("autocmd") && exists("+omnifunc") augroup syntaxcomplete autocmd Filetype * \ if &omnifunc == "" | \ setlocal omnifunc=syntaxcomplete#Complete | \ endif augroup END endif --- >8 --- end $VIM/vimfiles/after/plugin/syntaxcomplete.vim The idea of placing it in an "after-directory" is so its autocommand gets defined (and, therefore, executed) as late as possible. Best regards, Tony.
Re: 7.0.188 - problem with directory browser?
Bill, thanks! On Sat, 27 Jan 2007 01:35:12 -0600, "Bill McCarthy" <[EMAIL PROTECTED]> said: > > http://mysite.verizon.net/astronaut/vim/index.html > > That site contains an older version. I've copied Chip on > this note. Hopefully he will update his site (unless other > problems were discovered with that fix). It appears that this plugin comes pre-installed. Maybe this should be made into a patch for extra? Bram? -denis -- // mailto: Denis Perelyubskiy // icq : 12359698
Re: JavaScript indentation
On Sat, Jan 27, 2007 at 07:35:16PM +0100, Bram Moolenaar wrote: > Whatever this ends up to be: Please send me the best javascript indent > script, so that I can include it with the runtime files. A "best guess" > is better than nothing. Full ack. BTW: The last time I browsed the updated runtime/ repository, there was no cppcomplete.vim in the autoload/ directory. I really recommend this omnicomplete script from vim.org's script repository for all C++ code editing, I even use it for coding C, because (in my opinion) it works better there than ccomplete.vim. Hope that gets added to the default vim 7.1 distribution, because it's quite the best working omni complete script I have seen so far. -- Martin
Re: JavaScript indentation
Ilya Bobir wrote: > I have a pretty working JS indentation script - javascript.vim, but it > handles only most common cases. It uses the build in C indentation > rules and does a bit of correction. Really much more corrections is > required in order to indent JavaScript correctly for all the cases. > Maybe C indent is a bad starting point for a complete JavaScript > indentation solution. I've also tried using syntax in order to > calculate indentation but this attempt lead me to even worth results - > javascript.vim.bad. Maybe you can fix the syntax based version, as it > is more promising. IIRC some changes were required in the syntax script > in order to get better indentation results... > > Currently I'm not programming in JavaScript, so I doubt I can devote > much time to fixing its indentation script. But probably I will be, > so I am interested in having a complete JavaScript indentation > solution in Vim. Whatever this ends up to be: Please send me the best javascript indent script, so that I can include it with the runtime files. A "best guess" is better than nothing. -- hundred-and-one symptoms of being an internet addict: 56. You leave the modem speaker on after connecting because you think it sounds like the ocean wind...the perfect soundtrack for "surfing the net". /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\help me help AIDS victims -- http://ICCF-Holland.org///
Re: 7.0.188 - problem with directory browser?
Hi, After sending my response, I received the following alien language (probably German from the .de) email. I copied no recipient at @youngs.de. Perhaps a member of this list is sending "away from office" responses to the list? From: [EMAIL PROTECTED] Die von Ihnen genutzte eMail-Adresse ([EMAIL PROTECTED]) existiert nicht oder existiert nicht mehr. For what it's worth, the text above says "The email address you used ([EMAIL PROTECTED]) doesn't exist or doesn't exist anymore". Bye, Nico
Re: VC8 makefile patch
Hi >> Alas, your patch doesn't work on my machine for three reasons: >> >> 1) I use VCExpress version to build vim. This is VC8, but there is >>no SDK. > > I didn't think the Express version of the compilers supported optimized > code generation. And I am surprised VCExpress comes without nmake. > I don't know either if Express optimizes well -- at least it doesn't issue any warnings about unrecognised compiler options since I applied your patch. The VCExpress version have an own version of nmake. But it doesn't have an SDK. So I have to install this separately. I thought the best thing is to use a batch file located at %ProgramFiles%\Microsoft Platform SDK\SetEnv.Cmd to set up the environment, but may be I'm wrong. With this batch script first the path of the SDK is searched, and after that the path of the VCExpress tools. So the nmake of SDK is found first. >>..., but since version 7.0 of the VC toolset there >>exists a environment variable MSVCVer which IMHO should be used >>when it is defined. >> > I don't believe this is the case. For my install of VC8 there is no > MSVCVER variable defined. Could this may be a feature of VCExpress? > It's a feature of the SDK, not of the Visual Tools. MSVCVer is defined by the mentioned batch application SetEnv.Cmd. > So there are now two issues. Non-SDK build environments don't have > MSVCVER variable, while SDK build environments have version numbers that > can be out of synch with the version of Visual C. > Not exactly: The SDK script mentioned above searches for a VC environment. If it finds one, it sets the MSVCVer environment variable appropriate to the C compiler it has found. > It would be nice to keep the makefile handle its environment > automatically without developers having to define variables to > get it to build "out of the box". Perhaps it should first check > for MSVCVER and if not defined fallback on _NMAKE_VER. Thoughts? > This would be fine! Best regards Mathias
Re: 7.0.188 - problem with directory browser?
After sending my response, I received the following alien language (probably German from the .de) email. I copied no recipient at @youngs.de. Perhaps a member of this list is sending "away from office" responses to the list? From: [EMAIL PROTECTED] Die von Ihnen genutzte eMail-Adresse ([EMAIL PROTECTED]) existiert nicht oder existiert nicht mehr. -- Best regards, Bill