Re: Why the MACRO I defined can not highlight?

2009-09-11 Thread Matt Wozniski
Please bottom post (post replies below the quoted message) on this list. I've reformatted your message accordingly. stone wrote: A. S. Budden wrote: stone wrote: Hi. vim_use I use GVIM in windows to edit C/C++ program, But the MACRO and ENUM I have defined can not highlight. I have

Using enviroment variableswith set command

2009-09-11 Thread Pablo Giménez
Hi there. I have a script that set some environment variables using let, like: let $TAB_WIDTH=4 Then another script use this environment variable to setup some options in vim, I am trying to use: set tabstop=$TAB_WIDTH But I always get an error that a number is expected after the equal sign. Is

Re: Using enviroment variableswith set command

2009-09-11 Thread Tim Chase
I have a script that set some environment variables using let, like: let $TAB_WIDTH=4 Then another script use this environment variable to setup some options in vim, I am trying to use: set tabstop=$TAB_WIDTH You can use :let instead, using a setting-variable: :let tabstop=$TAB_WIDTH

Re: Using enviroment variableswith set command

2009-09-11 Thread Charles Campbell
Tim Chase wrote: I have a script that set some environment variables using let, like: let $TAB_WIDTH=4 Then another script use this environment variable to setup some options in vim, I am trying to use: set tabstop=$TAB_WIDTH You can use :let instead, using a setting-variable:

Re: Using enviroment variableswith set command

2009-09-11 Thread Tim Chase
Charles Campbell wrote: :let tabstop=$TAB_WIDTH As an alternative, exe set tabstop=.$TAB_WIDTH Using all those extra characters...and in this economy, you should be ashamed at the profligate extravagance. ;-) -tim --~--~-~--~~~---~--~~ You received

Re: Why the MACRO I defined can not highlight?

2009-09-11 Thread A. S. Budden
2009/9/11 Matt Wozniski m...@drexel.edu: Please bottom post (post replies below the quoted message) on this list. I've reformatted your message accordingly. stone wrote: A. S. Budden wrote: stone wrote: Hi. vim_use I use GVIM in windows to edit C/C++ program, But the MACRO and ENUM

Re: Using enviroment variableswith set command

2009-09-11 Thread Charles Campbell
Tim Chase wrote: Charles Campbell wrote: :let tabstop=$TAB_WIDTH As an alternative, exe set tabstop=.$TAB_WIDTH Using all those extra characters...and in this economy, you should be ashamed at the profligate extravagance. ;-) Moderation is a fatal thing.

RE: printing with :hardcopy

2009-09-11 Thread Greg Klein
On Sep 10, 6:52 pm, Greg Klein gkl...@uascwa.com wrote: With :hardcopy I can select lines from a file and print just those lines. The printoptions (popt) option includes a parameter wrap:y/n described as: wrap:y (default)  Wrap long lines. wrap:n               Truncate long lines.

Re: RFE/RFC?:desired enhancement or 'already in there'? backups fonts for unmapped chars, families and Unicode blocks

2009-09-11 Thread Glen Pfeiffer
On Thu Sep 10, 2009 at 07:58:03PM -0700, Linda W wrote: (If you can't read this *_in HTML_*, you are deprived, and maybe, in the internet 3rd world, my condolences, as documents structure can't be properly represented in plain text, (unless your eyes have built-in XML/HTML or LaTeX code

use vim function from an external shell command

2009-09-11 Thread Joseph Boiteau
Hi, I would like to use the reindenting functionality (ie: gg=G) based on vim indent files, but without getting into vim.. I recently discover /usr/share/vim/vim72/macros/less.sh, which use the vim power to make a less-like command with syntax highlighting. I'm pretty sure the same is possible

Re: use vim function from an external shell command

2009-09-11 Thread Gary Johnson
On 2009-09-11, Joseph Boiteau wrote: Hi, I would like to use the reindenting functionality (ie: gg=G) based on vim indent files, but without getting into vim.. I recently discover /usr/share/vim/vim72/macros/less.sh, which use the vim power to make a less-like command with syntax

wrong ArgLead to custom command line completion function

2009-09-11 Thread Hari Krishna Dara
It seems like Vim passes a wrong ArgLead when you try to complete in the middle of a command-line. E.g., try this: command! -nargs=* -complete=custom,ComplTest Test : function! ComplTest(ArgLead, CmdLine, CursorPos) return a:ArgLead endfunction Now try this (Cursor signifies the position of