Re: [Fwd: Re: $HOME inconsistent in Windows?]
Forward to list Sorry, forgot to check the To field in the reply... Cheers! Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
$HOME inconsistent in Windows?
Hey All, I've defined a HOME environment variable as %HOMEDRIVE%%HOMEPATH%. In a command prompt, if get the following: echo %HOME% C:\Documents and Settings\ In gvim, I get the following: :e $HOME\ which expands to :e c:\Documents\ and\ Settings\\Application\ Data\ Is there some reason why vim is ignoring the HOME variable I've set? What is interesting is that my _viminfo is being read from C:\Documents and Settings\ just fine. Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Re: Problem with spaces in the makeprg command
:setlocal mp=\"C:\\Program\ Files\\NSIS\\makensis.exe\" Works perfect! I tried to escape the quotes before but I didn't escape the backslashes inside the quotes. Thanx! Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Problem with spaces in the makeprg command
Hey All, I'm having an issue with spaces in the makeprg command. When setting it to: :setlocal mp=C:\Program\ Files\NSIS\makensis.exe I get an error: shell returned 1 (1 of 2): 'C:\Program' is not recognized as an internal or external command Can someone please let me know how I go about getting this to work? Thanx! Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Re: Perltidy,VIM for C/C++ visual block cleanup
Sent to the list this time... sorry Tony! On 9/12/06, Chris Sutcliffe <[EMAIL PROTECTED]> wrote: > My Linux box indeed hasn't got "cb", but it has got "indent" which is > meant to beautify and reformat C code, e.g. by adding and removing > spaces, tabs, linefeeds and blank lines, according to various parameters > on a command-line and/or in a config file; GNU indent supports > "original", "K&R" and "GNU" styles in addition to custom style. See > "info indent" (where installed) for details. There is also Astyle (http://astyle.sourceforge.net/) which also happens to have a Windows port. Cheers! Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
completeopt issue
Hey All, I'm not sure if this is a bug or if I'm missing something. In my _vimrc file I have: completeopt=preview because I would like to have the preview window to see the function arguments and the return types, but I don't want to have the menu popup (I prefer to cycle through the available choices in the command window). With completeopt set the way I have I don't get the menu, but unfortunately I don't get the preview window either. I'm running version 7.0.90 (compiling .91 shortly) on Windows XP compiled from source with MinGW. Any help would be greatly appreciated, thanx! Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Re: Printing in Windows
Solved!!! Strangely, I get an error about pexpr not being available in my default win32 build (I don't have +postscript built in). Maybe having +postscript precludes the use of the Win32 common print dialog? That is indeed the issue. I disabled postscript and now the print dialog displays when I do a ':ha'. I'm not sure if this is by design or if this is a bug, anyone? Thanx! Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Re: Printing in Windows
Though you didn't specify whether you're using vim or gvim, I don't know if using non-gvim would exhibit odd behaviors like you describe. Additionally, are you using the default build, or perhaps something like a cygwin build? Don't know if that has anything to do with it. I'm using gvim compiled from source with MinGW. I've tried using 'Print' from the 'File' menu as well as ':ha' and they both behave the same. FWIW, ':browse w' and ':browse e' work fine. Additionally helpful information would include the results of :set pdev? printdevice= popt? printoptions= pexpr? printexpr=system('copy' . ' ' . v:fname_in . (&printdevice == '' ? 'LPT1:' : (' "' . &printdevice . '"'))) . delete(v:fname_in) pfn? printfont=Courier_New:h10 pheader? printheader=%<%f%h%m%=Page %N Thanx! Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Re: Printing in Windows
> According to ':help ha' a dialog is supposed to be displayed to allow > selection of printer, paper size, etc. Unfortunately this isn't > happening, is there something I'm missing? Go to your printer and fax settings. Right-click on the printer and select properties. Click the Ports tab. Click on LPT1 and save your settings. Now it should work just fine. It will work. The problem is I have mulitple network printers and depending on where I am I will have to set the LPT1 port each time. I'm just curious since the help states that the print dialog should be displayed why it is not. Thanx! Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Printing in Windows
I'm using vim 7.0.076 on Windows and I'm trying to print the current buffer. Doing a ':ha' doesn't work because it is trying to copy the file to LPT1: C:\WINDOWS\system32\cmd.exe /c copy C:\WINDOWS\TEMP\VIp1C.tmp LPT1: C:\WINDOWS\TEMP\VIo1D.tmp 2>&1 which on my system doesn't work because I use a networked printer. According to ':help ha' a dialog is supposed to be displayed to allow selection of printer, paper size, etc. Unfortunately this isn't happening, is there something I'm missing? Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Using !
Is it possible to execute a Windows based app in vim without having a command box? When I type '!explorer' for example, I get a command box that executes explorer. I was wondering if I could have it execute explorer without the command box being displayed. Thanx! Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Disable bold font in gvim on Windows
Is there a quick way to disable the bold font in gvim on Windows (i.e. use non-bold font for all highlight items)? Thanx! Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Changing spell check colors
Using spell check in a terminal window hightlights some words with a bright green background and white text. I find this hard to read (I'm using a dark background and I have set background=dark in my .vimrc). Is it possible to override the the spell check color scheme, and if so, can someone please point me in the direction of what I need to look at? Thanx! Chris -- Chris Sutcliffe http://ir0nh34d.blogspot.com http://emergedesktop.org
Re: CVS service resumed?
I'm checking in the patches one by one. Not sure if that is really needed, but if I do all patches at once it can't be undone when it turns out it was not a good idea. In terms of getting the latest and greatest source, is the Subversion repository generally the 'main' source with the cvs repository being updated from there? Or is it now that CVS is more or less in working order again at SF will it become the 'main' source? Cheers! Chris -- Chris Sutcliffe http://ir0nh34d.blogspot.com http://emergedesktop.org
Command completion menu
Hey All, I'm using vim 7.0 for windows and I was wondering if it was possible to have the command completion menu (Ctrl-N / Ctrl-P) show up as a mouse style menu (i.e. the right click menu) as opposed to what appears to be a curses based text menu. Can this be done? Thanx! Chris -- Chris Sutcliffe http://ir0nh34d.blogspot.com http://emergedesktop.org