setting the mouse pointer + phantom pointer?
I'm making a function which moves the mouse pointer using gui_mch_setmouse( x, y ); It does set the mouse pointer correctly, but I also end up with a second pointer, which is maintained at the last position, that I can't find out how to get rid of. Changing the hide setting, redrawing, setting mouse shape, etc. update_mouseshape( MSHAPE_HIDE); gui_mch_mousehide(TRUE); mch_set_mouse_shape( MSHAPE_HIDE ); don't help. Oddly, when I first start Vim, the second pointer isn't there, but as soon as I start/stop insert or other modes, it appears and returns every time I set the pointer position. Something is fighting me in the code, and it's driving me bonkers! Growwwl!
Patch: gvimext.dll don't find MSVCR80.dll when built with VC8. No context menu entries.
Patch 7.0.Make_GvimExt Problem:On Windows, when GvimExt is built with Microsoft Visual Studio 2005, the context menu item Edit with vim doesn't appear in Explorer. Reason: GvimExt.dll cannot be loaded, because it is not prepared to the Windows Side by Side Components subsystem and so cannot find the C Runtime library in MSVCR80.dll. Solution: A manifest file is created by the linker. Embed it into the resources of GvimExt.dll. Files: src/GvimExt/Makefile *** ..\vim-7.0.000\src\GvimExt\Makefile 2006-05-07 16:13:00.0 +0200 --- src\GvimExt\Makefile2006-05-30 14:42:37.168430400 +0200 *** *** 19,24 --- 19,25 # $(implib) /NOLOGO -machine:$(CPU) -def:gvimext.def $** -out:gvimext.lib # $(link) $(dlllflags) -base:0x1C00 -out:$*.dll $** $(olelibsdll) shell32.lib gvimext.lib comctl32.lib gvimext.exp $(link) $(lflags) -dll -def:gvimext.def -base:0x1C00 -out:$*.dll $** $(olelibsdll) shell32.lib comctl32.lib + if exist $*.dll.manifest mt -nologo -manifest $*.dll.manifest -outputresource:$*.dll;2 gvimext.obj: gvimext.h *** *** 34,36 --- 35,38 - if exist gvimext.exp del gvimext.exp - if exist gvimext.obj del gvimext.obj - if exist gvimext.res del gvimext.res + - if exist gvimext.dll.manifest del gvimext.dll.manifest -- Thanks a lot for the GvimExt project for Windows! I appreciate it very much. Greetings Mathias
Re: setting the mouse pointer + phantom pointer?
Blah. I spent two days looking for this, and it was the mouse driver's pointer trails option malfunctioning. :-( On 5/30/06, Eric Arnold [EMAIL PROTECTED] wrote: I'm making a function which moves the mouse pointer using gui_mch_setmouse( x, y ); It does set the mouse pointer correctly, but I also end up with a second pointer, which is maintained at the last position, that I can't find out how to get rid of. Changing the hide setting, redrawing, setting mouse shape, etc. update_mouseshape( MSHAPE_HIDE); gui_mch_mousehide(TRUE); mch_set_mouse_shape( MSHAPE_HIDE ); don't help. Oddly, when I first start Vim, the second pointer isn't there, but as soon as I start/stop insert or other modes, it appears and returns every time I set the pointer position. Something is fighting me in the code, and it's driving me bonkers! Growwwl!
thesaurus infercase -- dont work together. in vim6 and 7.
The thesaurus option doesn't work in vim6/7 when infercase is set. C-x C-t will do same as C-n/C-p completions. Is this by design? My ~/.vimrc set infercase set thesaurus=/doc/roget13a.txt thanks, - Mohsin.
[EMAIL PROTECTED]
Re: Deleting lines from L1 to L2 in Vim script
I would like to to delete line from L1 to L2, I try to script that but obviously commands are different for a script. What is the right thing to do ? Well, if L1 and L2 represent fixed line numbers, such as line 24 through line 38, you can just put 24,38d in your script. Quick, easy, clear...the way to go. If L1 and L2 represent strings/regexps for finding a given line, you can use let oldWS=wrapscan set wrapscan $/L1/,/L2/d let wrapscan=oldWS You can skip the 'wrapscan' stuff if you already have 'wrapscan' enabled (most folks do, only to turn it off selectively on an as-needed basis), or if you know that the L1 won't happen on the first line of the file. In the second case (L1 isn't on the 1st line of the file), you can just do 1/L1/,/L2/d It basically is searching from line 1 for the first instance of L1, and then deleting through the first instance of L2 that follows L1. Just a few ideas. I can expound on their magic further if you need, but you can start by reading in the help under :help :range :help :d which should get you off to a good start. -tim
Re: Deleting lines from L1 to L2 in Vim script
Today (Tue, 30 May 2006), Baha-Eddine MOKADEM wrote: I would like to to delete line from L1 to L2, I try to script that but obviously commands are different for a script. What is the right thing to do ? The easiest way to do it is with the :delete command (see :help :delete). For example: :4,8delete This would delete lines four through eight. However, I suspect your script has the start and end lines stored in variables, which necessitates using :execute (see :help :execute). For example, using L1 and L2 as variable names: :execute L1 . , . L2 . delete - Christian -- If your work speaks for itself, don't interrupt. Christian J. Robinson [EMAIL PROTECTED] http://infynity.spodzone.com/ PGP keys: 0x893B0EAF / 0xFB698360 http://infynity.spodzone.com/pgp
Re: Deleting lines from L1 to L2 in Vim script
Dnia wtorek, 30 maja 2006 11:43, Baha-Eddine MOKADEM napisał: Hi, I would like to to delete line from L1 to L2, I try to script that but obviously commands are different for a script. Why? Just place something like:: 5,10d in script and it will work. If you want to use variables:: let l1 = 5 let l2 = 10 exe l1.','.l2.'d' Checking if range exists may be tricky but not impossible. m.
Re: Deleting lines from L1 to L2 in Vim script
And how about deleting from line L1 for instance to the end of the file. And put it in a script file, since G don't appear like a regexp and $ represent end of line if I'm not wrong ? $ represents the end-of-line in *normal* mode. As an Ex command, it means the last line in the file. Thus, you'd use :42,$d to delete from line 42 to the end of the file. I highly recommend reading the help found at :help :range where you'll learn all sorts of handy ways for referring to lines in an ex command. Commands/addresses can be chained so you can end up with things like :1/APPENDIX/?CHAPTER?+2 which would refer to two lines after (+2) the line that contains CHAPTER that occurs before the first line containing the word APPENDIX. All sorts of complex references and ranges can be created from a few simple addressing schemes. -tim
detecting a readonly file and not doing something...
I currently have this: autocmd BufEnter * :%s/[ \t\r]\+$//e get rid of the pesky ^M However, it gives me an error I have to enter through when I open a readonly file. I want to be able to turn that off when the file is RO. :Robert
Detecting if I am on Windows
let MSWIN = has(win16) || has(win32) || has(win64) || has(win95) || has(win32unix) Is there a windows variable that has all these in it? :Robert
Re: detecting a readonly file and not doing something...
On Tue, May 30, 2006 at 09:04:15AM -0400, Robert Hicks wrote: I currently have this: autocmd BufEnter * :%s/[ \t\r]\+$//e get rid of the pesky ^M However, it gives me an error I have to enter through when I open a readonly file. Something along the lines of autocmd BufEnter * :if ro | %s/[ \t\r]\+$//e | endif should do the trick. :help expr-option shows the different ways you can access options in expressions. James -- GPG Key: 1024D/61326D40 2003-09-02 James Vega [EMAIL PROTECTED] signature.asc Description: Digital signature
Re: detecting a readonly file and not doing something...
On Tue, May 30, 2006 at 09:16:38AM -0400, James Vega wrote: On Tue, May 30, 2006 at 09:04:15AM -0400, Robert Hicks wrote: I currently have this: autocmd BufEnter * :%s/[ \t\r]\+$//e get rid of the pesky ^M However, it gives me an error I have to enter through when I open a readonly file. Something along the lines of autocmd BufEnter * :if ro | %s/[ \t\r]\+$//e | endif That should actually be autocmd BufEnter * :if !ro | %s/[ \t\r]\+$//e | endif since you want the replacement performed only when the buffer is not readonly. James -- GPG Key: 1024D/61326D40 2003-09-02 James Vega [EMAIL PROTECTED] signature.asc Description: Digital signature
Slightly off-topic: Using IRC freenode #vim
Hi, I'm having trouble using the #vim channel on irc.freenode.net and the Wiki FAQ isn't operational at the moment. I've registered my nick with nickserv but still I join #vim and I don't see any conversation happening, does anyone know if I have left something out? output of /whois toomuchphp: === toomuchphp [EMAIL PROTECTED] New Now Know How === toomuchphp: member of #vim === toomuchphp: attached to niven.freenode.net Corvallis, OR, US === toomuchphp is identified to services === toomuchphp: idle for 9 minutes, 36 seconds (on since Tuesday, 30 May 2006 11:51:02 PM) --- End of WHOIS information for toomuchphp. Thanks in advance, Peter On Yahoo!7 Answers: Real people ask and answer questions on any topic. http://www.yahoo7.com.au/answers
Has Plug Changed?
I try to use cvscommit.vim with NERD_comments, but they both use some \c mappings. The blurb in cvscommit.vim says I can use something like nnoremap ,ca PlugCVSAdd instead. I put all the cvscommit mappings in my ~/.vimrc, formatted in this new way, but it does not seem to recognise any of the ,c maps, neither does it give an error. I can use the \c maps as normal NERD_comments maps. I'm using vim 7 :) Thanks. -- .
Re: detecting a readonly file and not doing something...
James Vega wrote: On Tue, May 30, 2006 at 09:16:38AM -0400, James Vega wrote: On Tue, May 30, 2006 at 09:04:15AM -0400, Robert Hicks wrote: I currently have this: autocmd BufEnter * :%s/[ \t\r]\+$//e get rid of the pesky ^M However, it gives me an error I have to enter through when I open a readonly file. Something along the lines of autocmd BufEnter * :if ro | %s/[ \t\r]\+$//e | endif That should actually be autocmd BufEnter * :if !ro | %s/[ \t\r]\+$//e | endif since you want the replacement performed only when the buffer is not readonly. James I actually caught that. :-) :Robert
MRU, OS X, Vim 7 and too many files
When I try to use MRU (the Most Recently Used script) with Vim 7 on OSX, it throws the error that I can only use one filename. I think it's choking on the spaces in filenames. Is there any way I can fix this?
Re: Has Plug Changed?
On 5/30/06, Vigil [EMAIL PROTECTED] wrote: I try to use cvscommit.vim with NERD_comments, but they both use some \c mappings. The blurb in cvscommit.vim says I can use something like nnoremap ,ca PlugCVSAdd instead. I put all the cvscommit mappings in my ~/.vimrc, formatted in this new way, but it does not seem to recognise any of the ,c maps, neither does it give an error. I can use the \c maps as normal NERD_comments maps. Looks like a bug in the cvscommand documentation. Don't use the 'noremap' portion of that command, as that kills the functionality. Instead just do something like: nmap ,ca PlugCVSAdd Thank you, bob
sftp file browsing
Is it possible to browse a remote folder through FTP? Eg, if I enter ':e .' it'll display the directory browser for the current directory. How can I do the same for remote directories? I can run ':e sftp://sage/nessus_conf/nessusd.conf' to edit a particular file, but if I don't know the exact filename I'd like to be able to run something like ':e sftp://sage/nessus_conf/' to get a directory listing. Thanks. -- Jared
Re: Detecting if I am on Windows
On 5/30/06, Robert Hicks [EMAIL PROTECTED] wrote: let MSWIN = has(win16) || has(win32) || has(win64) || has(win95) || has(win32unix) Is there a windows variable that has all these in it? :Robert I don't see one, but here's the invidivual ones I found in the f_has() code: #ifdef WIN16 win16, #endif #ifdef WIN32 win32, #endif #if defined(UNIX) (defined(__CYGWIN32__) || defined(__CYGWIN__)) win32unix, #endif #ifdef WIN64 win64, #endif gui_win16, #endif #ifdef FEAT_GUI_W32 gui_win32, # ifdef FEAT_GUI_W32 else if (STRICMP(name, gui_win32s) == 0) n = gui_is_win32s(); #if defined(WIN3264) else if (STRICMP(name, win95) == 0) n = mch_windows95();
RE: sftp file browsing
I think you want to look at the netrw plugin for vim, which is (as far as I can remember) installed by default, although I remember that it is recommended that you download the latest version for full support. :help netrw http://www.vim.org/scripts/script.php?script_id=1075 Hope that helps! Max -Original Message- From: Jared [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 9:19 AM To: vim@vim.org Subject: sftp file browsing Is it possible to browse a remote folder through FTP? Eg, if I enter ':e .' it'll display the directory browser for the current directory. How can I do the same for remote directories? I can run ':e sftp://sage/nessus_conf/nessusd.conf' to edit a particular file, but if I don't know the exact filename I'd like to be able to run something like ':e sftp://sage/nessus_conf/' to get a directory listing. Thanks. -- Jared
Re: MRU, OS X, Vim 7 and too many files
Hello, On 5/30/06, Furash Gary [EMAIL PROTECTED] wrote: When I try to use MRU (the Most Recently Used script) with Vim 7 on OSX, it throws the error that I can only use one filename. I think it's choking on the spaces in filenames. Is there any way I can fix this? Which MRU Vim plugin are you using? - Yegappan
RE: MRU, OS X, Vim 7 and too many files
File: mru.vim Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com) -Original Message- From: Yegappan Lakshmanan [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 9:36 AM To: Furash Gary Cc: vim@vim.org Subject: Re: MRU, OS X, Vim 7 and too many files Hello, On 5/30/06, Furash Gary [EMAIL PROTECTED] wrote: When I try to use MRU (the Most Recently Used script) with Vim 7 on OSX, it throws the error that I can only use one filename. I think it's choking on the spaces in filenames. Is there any way I can fix this? Which MRU Vim plugin are you using? - Yegappan
Re: sftp file browsing
On Tue, May 30, 2006 at 11:19:11AM -0500, Jared wrote: Is it possible to browse a remote folder through FTP? Eg, if I enter ':e .' it'll display the directory browser for the current directory. How can I do the same for remote directories? I can run ':e sftp://sage/nessus_conf/nessusd.conf' to edit a particular file, but if I don't know the exact filename I'd like to be able to run something like ':e sftp://sage/nessus_conf/' to get a directory listing. If you are on Linux you can mount a remote filesystem via sshfs. Here's a tutorial: http://ubuntu.wordpress.com/2005/10/28/how-to-mount-a-remote-ssh-filesystem-using-sshfs/ Then you can work on the remote system as though it were local. -- yours, William signature.asc Description: Digital signature
Re: sftp file browsing
On Tue, May 30, 2006 at 11:19:11AM -0500, Jared wrote: Is it possible to browse a remote folder through FTP? Eg, if I enter ':e .' it'll display the directory browser for the current directory. How can I do the same for remote directories? [...] I'd like to be able to run something like ':e sftp://sage/nessus_conf/' to get a directory listing. This already works with newer versions of the netrw plugin. An upgrade would probably solve this issue for you. -- with kind regards Thor Andreassen
Re: sftp file browsing
Jared wrote: Is it possible to browse a remote folder through FTP? Eg, if I enter ':e .' it'll display the directory browser for the current directory. How can I do the same for remote directories? I can run ':e sftp://sage/nessus_conf/nessusd.conf' to edit a particular file, but if I don't know the exact filename I'd like to be able to run something like ':e sftp://sage/nessus_conf/' to get a directory listing. Yes, netrw supports browsing remote folders using ftp. However, sftp isn't ftp; fundamentally, its ssh. Netrw also supports browsing using ssh. So, what happens when you try: vim sftp://sage/nessus_conf/ Netrw will attempt to use ssh to do the browsing, and will use sftp to do file transfer. Regards, Chip Campbell
Syntax Highlighting: Vim 7, Debian
Hello all I've just worked on trying to get this to work a few hours with no luck, so I thought I'd consult the community. In short, my syntax highlighting doesn't work. Not in vim or vim -g/gvim. I've tried the easy things like :snytax enable or :syntax on and manually loading a colorscheme but to no effect. I recently did an apt-get upgrade which broke my X install. Once I had fixed that and returned to the world of GUI's I found my syntax highlighting didn't work. The color test shows all the colors properly however. (Select it from the syntax menu in gvim). At first I thought it might be because of my terminal, but changing that using tset and/or setting my TERM environment variable to xterm-color helped not in the least. It's not just a color problem anyhow, as bold and italics don't work on syntax either. It's not a colorscheme bug either, as I've tried using several colorschemes and get the same results (though it will change the bgcolor an fgcolor in gvim). I tried removing and reinstalling gvim as well, but the problem persists. Needless to say, now that I'm used to syntax highlighting being without it feels like losing an arm. The only error message I've ever seen regarding the syntax is when I opened up gvim and select on/off for This file under the syntax menu, it tells me that my colorscheme can not be found when parsing syntax/synload.vim. This error doesn't happen except when I first load vim, and only if I don't change the colorscheme before hand. This might be a clue for someone, but probably not. Also if I log into our server ssh -X and use gvim over the network, syntax highlighting does work, of course, that doesn't say a damn thing either. It just makes me think that it's probably a configuration file of some sort... I hope someone has an idea, I sure as hell don't. Thanks, Chisum Lindauer
Re: Syntax Highlighting: Vim 7, Debian
Chisum Lindauer wrote: Hello all I've just worked on trying to get this to work a few hours with no luck, so I thought I'd consult the community. In short, my syntax highlighting doesn't work. Not in vim or vim -g/gvim. I've tried the easy things like :snytax enable or :syntax on and manually loading a colorscheme but to no effect. What does vim --version say? If it happens to say, for example, ... -syntax ... (instead of +syntax), then the vim executable has been compiled so as to not support syntax highlighting. You'll need to Use The Source! or at least, perhaps something like vim-enhanced. Regards, Chip Campbell
Re: how will a plugin know if Vim is currently starting?
On Fri, 26 May 2006 at 10:15pm, Eric Arnold wrote: You could check: if bufnr($) == 1 !bufloaded(1) this seems to be the case when it's first sourcing .vimrc, anyway. I will check if this works nicely for plugins also. -- Thanks, Hari On 5/26/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: One of my plugins was using the VimEnter autocommand to initialize some of the values. The autocommand is added while the plugin is sourced, and is removed when the autocommand is triggered. The problem with this approach is that if the script is manually sourced *after* the vim session is completely started, the autocommand will never fire. My question is, is there a way for the plugin to detect if Vim is currently in startup mode? I haven't found any v: variable to do this (like v:dying), any there is no built-in function either. -- Thanks, Hari __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Syntax Highlighting: Vim 7, Debian
Charles E Campbell Jr wrote: Chisum Lindauer wrote: Hello all I've just worked on trying to get this to work a few hours with no luck, so I thought I'd consult the community. In short, my syntax highlighting doesn't work. Not in vim or vim -g/gvim. I've tried the easy things like :snytax enable or :syntax on and manually loading a colorscheme but to no effect. What does vim --version say? If it happens to say, for example, ... -syntax ... (instead of +syntax), then the vim executable has been compiled so as to not support syntax highlighting. You'll need to Use The Source! or at least, perhaps something like vim-enhanced. Regards, Chip Campbell I never thought of that :) $ vim --version | grep syntax -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static Unfortunately for me however that doesn't seem to be the problem :( Any other ideas? If all else fails I could as you say probably install from source. I think that's how I had it working before anyhow... But in that case I'll probably just restage the whole computer, this is an old clunker work computer anyhow, that probably had it's OS installed about 10 years ago, (and has many no longer used user accounts and uneeded files to boot). Thank You, Chisum Lindauer
vim7: redir not working inside -complete=custom function
I have a command with custom completion function that employs the :redir mechanism to determines the matches. This used to work fine in Vim6.3, but is broken in Vim7.0. I don't see any sandbox restrictions that could apply in this case, but even if they do, the command for which I am redirecting the output itself is very simple, it is just an :echo on a simple string, something like this: :Echo delete and the command Echo is defined as :command! -complete=file -nargs=* Echo :echo q-args Is this a bug in Vim7 or some change that is not backwards compatible? What would be the change that caused this to break? -- Thank you, Hari __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Vim for cingular 8125 running Windows mobile 5
On Thu, 25 May 2006 at 5:38pm, Suresh Govindachar wrote: Hello, Is there a vim for the Cingular 8125 running windows mobile 5 http://www.cingular.com/8125_consumer ? Thanks, --Suresh I don't know if you got any responses, but have you tried the VimCE version of Vim 6.0? This works fine (except for some bugs) in my Axim x50v (Windows Mobile 3) http://www.rainer-keuchel.de/wince/vim.html -- HTH, Hari __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Remembering 'Fold State' across buffers
Mark Woodward wrote: interestingly its not doing it this morning! It might have been a combination of factors causing this. I'll have to try and reproduce it. Tony- no, not sourcing vimrc_example.vim DrChip - I'll have to look into set hidden. Not sure how session would help though. This was happening during a session. ie I'd open a fold in a buffer of many folds, :bn to go to another buffer (single window, no tabs, no splits) do something, :bp to go back and the fold would be closed. Gerald - set foldlevelstart = -1 Eric- no modelines. If you use mkview MyView.vim (:mksession saves more), then the folding states are saved. You can then source the MyView.vim file (or Session.vim if you try :mksession) to restore viewing state. Setting hidden will hide instead of abandon buffers you leave behind, including all their state information. Then, when you return to them, they're there in all their glory (and warts). Regards, Chip Campbell
Re: [EMAIL PROTECTED]
Кулаков Анатолий wrote: If you want to unsubscribe, vim-unsubscribe should go in the To line, not the Subject line. Best regards, Tony. Если вы желаете изподписаться, вам следует писать vim-unsubscribe на строку ‘Для‚, не на строку ‘При‚. Всего хорошего, Тоня.
Re: Deleting lines from L1 to L2 in Vim script
Tim Chase wrote: And how about deleting from line L1 for instance to the end of the file. And put it in a script file, since G don't appear like a regexp and $ represent end of line if I'm not wrong ? $ represents the end-of-line in *normal* mode. As an Ex command, it means the last line in the file. Thus, you'd use :42,$d to delete from line 42 to the end of the file. I highly recommend reading the help found at :help :range where you'll learn all sorts of handy ways for referring to lines in an ex command. Commands/addresses can be chained so you can end up with things like :1/APPENDIX/?CHAPTER?+2 which would refer to two lines after (+2) the line that contains CHAPTER that occurs before the first line containing the word APPENDIX. All sorts of complex references and ranges can be created from a few simple addressing schemes. -tim Similarly, in a range, a dot means the cursor line. Thus, to delete from the cursor line to the end of the file, use .,$d (dot comma dollar d-for-delta). Or, from two lines above the cursor to three lines below the cursor: .-2,.+3d etc. Best regards, £Tony.
Re: sftp file browsing
On 05/30/2006 13:00, Thor Andreassen wrote: On Tue, May 30, 2006 at 11:19:11AM -0500, Jared wrote: Is it possible to browse a remote folder through FTP? Eg, if I enter ':e .' it'll display the directory browser for the current directory. How can I do the same for remote directories? This already works with newer versions of the netrw plugin. An upgrade would probably solve this issue for you. hmm... I just realized that I was trying this on 6.3. The only copy of Vim 7 I have available is on my Windows box, but of course there is no sftp command. I do have pftp from PuTTY, however. I can I change the command that netrw uses? I see from the docs that it's saved in the g:netrw_sftp_cmd variable, but I can't figure out how to change it. Thanks. -- Jared
Re: Syntax Highlighting: Vim 7, Debian
On Tue, May 30, 2006 at 02:44:17PM -0400, Chisum Lindauer wrote: Hello all I've just worked on trying to get this to work a few hours with no luck, so I thought I'd consult the community. In short, my syntax highlighting doesn't work. Not in vim or vim -g/gvim. I've tried the easy things like :snytax enable or :syntax on and manually loading a colorscheme but to no effect. I recently did an apt-get upgrade which broke my X install. Once I had fixed that and returned to the world of GUI's I found my syntax highlighting didn't work. The color test shows all the colors properly however. (Select it from the syntax menu in gvim). At first I thought it might be because of my terminal, but changing that using tset and/or setting my TERM environment variable to xterm-color helped not in the least. It's not just a color problem anyhow, as bold and italics don't work on syntax either. It's not a colorscheme bug either, as I've tried using several colorschemes and get the same results (though it will change the bgcolor an fgcolor in gvim). I tried removing and reinstalling gvim as well, but the problem persists. Needless to say, now that I'm used to syntax highlighting being without it feels like losing an arm. The only error message I've ever seen regarding the syntax is when I opened up gvim and select on/off for This file under the syntax menu, it tells me that my colorscheme can not be found when parsing syntax/synload.vim. This error doesn't happen except when I first load vim, and only if I don't change the colorscheme before hand. This might be a clue for someone, but probably not. Also if I log into our server ssh -X and use gvim over the network, syntax highlighting does work, of course, that doesn't say a damn thing either. It just makes me think that it's probably a configuration file of some sort... I hope someone has an idea, I sure as hell don't. Thanks, Chisum Lindauer If you have both vim-6 and vim-7 installed, there may be a conflict, especially if you try to share a ~/.vim directory. I'm running under Debian Stable, and have the default vim-6.3.82 installed, and have a locally compiled vim-7.0.15 installed also (with binary name 'vim7'). Syntax highlighting works find under either. However, I've kept them seperated with different .vimrc files, and different 'runtimepath' variables. Try this: in an xterm (version 4.3.0.dfsg.1-14sarge1) run /path/to/your/vim7 -u NONE. Now type :help - you should see black-n-white help text. Now type :syntax on - you should see the help with syntax highlighting. If does not work, it could be the color settings of the xterm itself. Since you mentioned breaking your X setup, could it be that you're running a bleeding edge Debian Unstable (etch) system? -- + Gregory H. Margo gmargo at yahoo/com, gmail/com, pacbell/net; greg at margofamily/org
Re: sftp file browsing
On Tue, 2006-05-30 at 16:36:23 -0500, Jared sent: hmm... I just realized that I was trying this on 6.3. The only copy of Vim 7 I have available is on my Windows box, but of course there is no sftp command. I do have pftp from PuTTY, however. I can I change the command that netrw uses? I see from the docs that it's saved in the g:netrw_sftp_cmd variable, but I can't figure out how to change it. This should work on v6.3: 20060318 using PSCP on Windows. N.B: Works best with Pageant. {{{ if ($OS =~Windows) let g:netrw_scp_cmd=\c:\\Program Files\\PuTTY\\pscp.exe\ -q Now with added SFTP: let g:netrw_sftp_cmd=\c:\\Program Files\\PuTTY\\psftp.exe\ endif }}} I don't have access to an sftp server to test it, but the scp line works. I hope this helps; --paj -- Pete Johns http://johnsy.com/ Tel/Fax numbers and IM information http://johnsy.com/contact/ Yet Another Blog Entry http://johnsy.com/20060525103459 pgppWEeDyqB4E.pgp Description: PGP signature
Syntax Highlighting: Vim 7, perl not working
Just started using vim7, quite happy so far. Major problem is that syntax highlighting doesn't work for *.pl files. I see filetype=conf rather than perl, which I don't understand. Here are the scripts loaded: 1: c:/vim/_vimrc 2: c:/vim/vimfiles/plugin/SpellChecker.vim 3: c:/vim/vimfiles/plugin/ccase.vim 4: c:/vim/vimfiles/plugin/closetag.vim 5: c:/vim/vimfiles/plugin/matchit.vim 6: c:/vim/vimfiles/plugin/mru.vim 7: c:/vim/_vim_mru_list 8: c:/vim/vimfiles/plugin/taglist.vim 9: c:/vim/vimfiles/plugin/TagsMenu.vim 10: c:/vim/vim70/plugin/getscript.vim 11: c:/vim/vim70/plugin/gzip.vim 12: c:/vim/vim70/plugin/matchparen.vim 13: c:/vim/vim70/plugin/netrwPlugin.vim 14: c:/vim/vim70/plugin/rrhelper.vim 15: c:/vim/vim70/plugin/spellfile.vim 16: c:/vim/vim70/plugin/tarPlugin.vim 17: c:/vim/vim70/plugin/tohtml.vim 18: c:/vim/vim70/plugin/vimballPlugin.vim 19: c:/vim/vim70/plugin/zipPlugin.vim 20: c:/vim/vim70/menu.vim 21: c:/vim/vim70/autoload/paste.vim 22: c:/vim/_gvimrc 23: c:/vim/abbreviations.vim 24: c:/vim/vim70/syntax/syntax.vim 25: c:/vim/vim70/syntax/synload.vim 26: c:/vim/vim70/syntax/syncolor.vim 27: c:/vim/vim70/filetype.vim 28: c:/vim/vim70/ftplugin.vim 29: c:/vim/vim70/indent.vim 30: c:/vim/jmd.vim 31: c:/vim/vim70/syntax/perl.vim 32: c:/vim/vimfiles/ftplugin/perl_jmd.vim 33: c:/vim/vim70/ftplugin/perl.vim 34: c:/vim/vim70/indent/perl.vim 35: c:/vim/vim70/scripts.vim 36: c:/vim/vim70/syntax/conf.vim 37: c:/vim/vim70/ftplugin/conf.vim 38: c:/vim/vim70/autoload/netrw.vim 39: c:/vim/vim70/syntax/netrw.vim 40: c:/vim/vim70/syntax/html.vim 41: c:/vim/vim70/syntax/javascript.vim 42: c:/vim/vim70/syntax/vb.vim 43: c:/vim/vim70/syntax/css.vim 44: c:/vim/vimfiles/ftplugin/html.vim 45: c:/vim/vimfiles/ftplugin/htm.vim 46: c:/vim/vimfiles/ftplugin/html_jmd.vim 47: c:/vim/vim70/ftplugin/html.vim 48: c:/vim/vim70/indent/html.vim 49: c:/vim/vim70/ftplugin/javascript.vim 50: c:/vim/vim70/syntax/help.vim 51: c:/vim/vim70/ftplugin/help.vim Anything there that could be causing problems? Thanks, Jack
Re: sftp file browsing
On Wed, 2006-05-31 at 09:19:09 +1000, Pete Johns sent: [A badly-formatted email] That should read: 20060318 using PSCP on Windows. N.B: Works best with Pageant. {{{ if ($OS =~Windows) let g:netrw_scp_cmd=\c:\\Program Files\\PuTTY\\pscp.exe\ -q Now with added SFTP: let g:netrw_sftp_cmd=\c:\\Program Files\\PuTTY\\psftp.exe\ endif }}} -- Pete Johns http://johnsy.com/ Tel/Fax numbers and IM information http://johnsy.com/contact/ Yet Another Blog Entry http://johnsy.com/20060525103459 pgpvw43hKOdlU.pgp Description: PGP signature
Re: spellcheck, and other spell checkers.
Dnia piątek, 26 maja 2006 15:19, Samuel Wright napisał: How compatible is the new vim 7 spellcheck with other spellcheckers (ispell, aspell, gtkspell, enchant)? Is it as simple as linking the spellfile to the good word list already in use by the other checker? No. You have to create binary data file from aspell compatible word list. m.
Re: Upgrading VIM on Ubuntu
1. Set a new source (such as Dapper version) in /etc/apt/sources.list 2. sudo apt-get update 3. sudo apt-get install vim gtk( I just missed it's name, you can just search it Synaptic Package Manager) Good luck! On 5/31/06, Adam Young [EMAIL PROTECTED] wrote: Hello, I would like to upgrade my version of gvim (6.3) to version 7. I am a Ubuntu newbie; does anyone have any advice on the easiest way to do this? -- A.T. Young, B.Sc. Laplink Software / Antibody Design Vancouver, BC www.antibodydesign.ca -- leal @ www.leal.cn
Re: MRU, OS X, Vim 7 and too many files
Hello, On 5/30/06, Furash Gary [EMAIL PROTECTED] wrote: File: mru.vim Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com) Try the latest version (2.2) of the MRU plugin. http://vim.sourceforge.net/scripts/script.php?script_id=521 - Yegappan -Original Message- From: Yegappan Lakshmanan [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 9:36 AM To: Furash Gary Cc: vim@vim.org Subject: Re: MRU, OS X, Vim 7 and too many files Hello, On 5/30/06, Furash Gary [EMAIL PROTECTED] wrote: When I try to use MRU (the Most Recently Used script) with Vim 7 on OSX, it throws the error that I can only use one filename. I think it's choking on the spaces in filenames. Is there any way I can fix this? Which MRU Vim plugin are you using? - Yegappan
Re: I sometimes have to double strike when using gvim7 over Hummingbird Exceed
Hi Eric, Please see my comments below. On Wed, May 24, 2006 at 04:03 PM PDT, Eric Arnold wrote: ... Text Deleted ... EA here's what was echoed: EA EA abdfgijkmoqsuvwyz EA EA But when I inserted the alphabet into the body of the file, all EA characters were present. Also, on the search line, if 'a' is not EA entered as the first character, then it won't display either. EA EA EA I asked the question because it sounds like the problem is either EA 1) something is not transmitting the key EA 2) something is eating the key EA EA First of all, I'll assume that you've checked that your keyboard isn't EA wonky. Correct; keyboard is not wonky. EA If the case is 2), the main culprits are usually mappings or EA abbreviations which are grabbing the key for something. EA EA If the a key is consistently not received except in the first EA column, then you have something non-intermittent to play with. I'm seeing behavior that is kind of all over the place when I compile with gtk. For example, some chars don't show up when typed as part of the search text; but they do show up if I type them as part of a command entry string. EA Interestingly, I just noticed that I typically see this behavior when EA the filetype is not set (filetype=). I set the filetype=mail on the EA problematic file, and the problem went away. I did not close and reopen EA the file either. So I guess it's not an Exceed or GTK issue after all. EA EA Possibly, if the problem is consistently fixed by changing the EA filetype. Sadly, new data shows that the changing the filetype to mail does not always work after all. At this time, I have no data correlating the issue to a specific filetype. EA In that scenario, I'd be logged in on my PC and start the Exceed X EA server. Then, I'd open a terminal on my Sun box and export the terminal EA to my PC. From that terminal I'd issue a vim -g command and export the EA vim window to my PC. EA EA Try starting an Xterm on the Sun, displayed to the pc, and running the EA non-gui vim through the Xterm. I'm currently trying to get my system updated to GTK-2, to see if that helps. Once I get the running, and if I still see the issue, I'll try your suggestion. EA But--as mentioned above--I no longer believe Exceed or GTK are possible EA suspects. Maybe I should be looking at my plugins or something. I'll EA EA I still hold out the possibility that you have a flow control problem EA somewhere in the stream. Since ^S / ^Q are flow control characters EA for some schemes, and ^Q in Vim will eat characters (if exchanged with EA ^V with the mswin behavior), it is a suspect. But then I would of expected the same issue when compiled with Motif. EA One thing you should try if you haven't already is EA EA gvim -u NONE -U NONE --noplugin EA EA which should give you a clean process to play with (annoying clean, EA actually...you probably want to set nocp at least). Another good idea; I haven't tried this yet simply because I almost can't use vim without all of my customizations. But I'll keep it in mind after the GTK-2 effort. Regards, -- Mun
Re: Syntax Highlighting: Vim 7, perl not working
On Tue, May 30, 2006 at 07:21:47PM -0400, Jack Donohue wrote: Just started using vim7, quite happy so far. Major problem is that syntax highlighting doesn't work for *.pl files. I see filetype=conf rather than perl, which I don't understand. Here are the scripts loaded: 1: c:/vim/_vimrc 2: c:/vim/vimfiles/plugin/SpellChecker.vim 3: c:/vim/vimfiles/plugin/ccase.vim 4: c:/vim/vimfiles/plugin/closetag.vim 5: c:/vim/vimfiles/plugin/matchit.vim 6: c:/vim/vimfiles/plugin/mru.vim 7: c:/vim/_vim_mru_list 8: c:/vim/vimfiles/plugin/taglist.vim 9: c:/vim/vimfiles/plugin/TagsMenu.vim 10: c:/vim/vim70/plugin/getscript.vim 11: c:/vim/vim70/plugin/gzip.vim 12: c:/vim/vim70/plugin/matchparen.vim 13: c:/vim/vim70/plugin/netrwPlugin.vim 14: c:/vim/vim70/plugin/rrhelper.vim 15: c:/vim/vim70/plugin/spellfile.vim 16: c:/vim/vim70/plugin/tarPlugin.vim 17: c:/vim/vim70/plugin/tohtml.vim 18: c:/vim/vim70/plugin/vimballPlugin.vim 19: c:/vim/vim70/plugin/zipPlugin.vim 20: c:/vim/vim70/menu.vim 21: c:/vim/vim70/autoload/paste.vim 22: c:/vim/_gvimrc 23: c:/vim/abbreviations.vim 24: c:/vim/vim70/syntax/syntax.vim 25: c:/vim/vim70/syntax/synload.vim 26: c:/vim/vim70/syntax/syncolor.vim 27: c:/vim/vim70/filetype.vim 28: c:/vim/vim70/ftplugin.vim 29: c:/vim/vim70/indent.vim 30: c:/vim/jmd.vim 31: c:/vim/vim70/syntax/perl.vim 32: c:/vim/vimfiles/ftplugin/perl_jmd.vim 33: c:/vim/vim70/ftplugin/perl.vim 34: c:/vim/vim70/indent/perl.vim 35: c:/vim/vim70/scripts.vim 36: c:/vim/vim70/syntax/conf.vim 37: c:/vim/vim70/ftplugin/conf.vim 38: c:/vim/vim70/autoload/netrw.vim 39: c:/vim/vim70/syntax/netrw.vim 40: c:/vim/vim70/syntax/html.vim 41: c:/vim/vim70/syntax/javascript.vim 42: c:/vim/vim70/syntax/vb.vim 43: c:/vim/vim70/syntax/css.vim 44: c:/vim/vimfiles/ftplugin/html.vim 45: c:/vim/vimfiles/ftplugin/htm.vim 46: c:/vim/vimfiles/ftplugin/html_jmd.vim 47: c:/vim/vim70/ftplugin/html.vim 48: c:/vim/vim70/indent/html.vim 49: c:/vim/vim70/ftplugin/javascript.vim 50: c:/vim/vim70/syntax/help.vim 51: c:/vim/vim70/ftplugin/help.vim Anything there that could be causing problems? Thanks, Jack Do you have a variable g:filetype_pl set? If so, this overrides the filetype default for perl. See :help filetype-overrule, and filetype.vim. -- + Gregory H. Margo gmargo at yahoo/com, gmail/com, pacbell/net; greg at margofamily/org
Trying to use GetLatestVimScripts on Mac OS X
Hi, Just discovered GetLatestVimScripts command, but it doesn't work on my Mac because I don't have the 'wget' tool. Does anyone know where I could get it from? regards, Peter regards, Peter On Yahoo!7 Dating: It's free to join and check out our great singles! http://www.yahoo7.com.au/personals
Setting up fonts for use with vim compiled with GTK-2
Hi, I've installed all the pieces (I think) to get GTK-2 running on my Sun Solaris 8 box. After doing so, I re-compiled vim7 and it seems to be running fine except that vim doesn't know about the fonts that I use most often. Specifically, the -misc-* and -adobe-* fonts. I looked at the help for fonts and gtk, but I wasn't able to resolve my issue. How can I get the gtk-2 version of vim to understand the fonts I use with the Motif version of vim? Thanks in advance. -- Mun
Re: Trying to use GetLatestVimScripts on Mac OS X
Quoting Peter Hodge [EMAIL PROTECTED]: Just discovered GetLatestVimScripts command, but it doesn't work on my Mac because I don't have the 'wget' tool. Does anyone know where I could get it from? Wget just comes with Linux; however, doing a Google search for wget source yields: http://www.gnu.org/software/wget/ I have no idea if it compiles ok with Mac OS/x, so best wishes! Regards, Chip Campbell
Re: Setting up fonts for use with vim compiled with GTK-2
Mun Johl wrote: Hi, I've installed all the pieces (I think) to get GTK-2 running on my Sun Solaris 8 box. After doing so, I re-compiled vim7 and it seems to be running fine except that vim doesn't know about the fonts that I use most often. Specifically, the -misc-* and -adobe-* fonts. I looked at the help for fonts and gtk, but I wasn't able to resolve my issue. How can I get the gtk-2 version of vim to understand the fonts I use with the Motif version of vim? Thanks in advance. GTK+2 uses a diffrent 'guifont' format than all other flavours of gvim. Here's how I solve the problem in my vimrc: if has(gui_running) if has(gui_gtk2) set guifont=BH\ LucidaTypewriter\ 15 elseif has(gui_kde) set guifont=BH\ LucidaTypewriter/15 elseif has(x11) set guifont=*-lucidatypewriter-medium-r-normal-*-*-210-*-*-m-*-* else set guifont=Lucida_Console:h15:cDEFAULT endif endif The relevant info can be found, but not easily, in the Vim help, and also (somewhat more easily) in a vimtip I wrote (currently the 2nd best-rated if you search for font). (Obviously, the first branch of the inner :if is for GTK+2, the second one for kvim, the third one for other X11 versions, and the last one for all the rest.) (Disregard any beautifying linebreaks added by my mail client or by yours.) You may also want to use :set guifont=* to select from a menu, or :set guifont=Tab (assuming 'nocompatible') to have gvim add the current value (with escaping backslashes where needed) so you can edit it /in loco/ then accept the new value by hitting Enter, or abandon the changes by hitting Esc. Don't forget to write the value you want (with its escaping bacslash or backslashes) into your vimrc when you're satisfied with how it looks. Best regards, Tony.
Re: Trying to use GetLatestVimScripts on Mac OS X
On 5/30/06, Peter Hodge [EMAIL PROTECTED] wrote: Just discovered GetLatestVimScripts command, but it doesn't work on my Mac because I don't have the 'wget' tool. Does anyone know where I could get it from? You should be able to install it via fink (fink.sf.net) Ricky
Re: Trying to use GetLatestVimScripts on Mac OS X
On May 30, 2006, at 9:16 PM, Peter Hodge wrote: Just discovered GetLatestVimScripts command, but it doesn't work on my Mac because I don't have the 'wget' tool. Does anyone know where I could get it from? IIRC GetLatest can be made to work with curl, which is included by default with Mac OS X. Poke around in the .vim file and you should see some user- configurable options… the command and the command-line parameters should be explained there. Just change these to point to curl… you may also have to change the parameters to match those of curl instead of wget. HTH, -- Benjamin D. Esham [EMAIL PROTECTED] | AIM: bdesham128 | Jabber: same as e-mail Esperanto, the international language ☆ http://www.lernu.net PGP.sig Description: This is a digitally signed message part
vim7: another completion problem
I have been seeing this problem for sometime, but haven't tried to reproduce it stand-alone until now, so here is a simple script to show the problem. If you source the below script, it will start showing completion options once you type at least 3 characters, which is as expected. The actual problem shows up when you start backing out. If you press BS, Vim goes into Whole line completion (^L^N^P) mode and shows results from insert-mode completion, instead of what has been set with complete(). To reproduce, - start gvim with -u NONE - Add the below text: wordone wordtwo - Source the following (you can copy and type :@* to do this easily) aug TT au! au CursorMovedI * call TT() aug END function! TT() let curword = expand('cword') if strlen(curword) 3 return endif call taglist('^xxx$') let matches = map(['xxx', 'yyy', 'zzz'], 'curword.v:val') call complete(col('.')-strlen(curword), [curword]+matches) endfunction - Open a new buffer (:new) and start typing word (without quotes) and you will see completion options as word wordxxx wordyyy wordzzz - Now press BS, the options change to: wor wordone wordtwo intead of: worxxx woryyy worzzz The problem can easily be observed if you have several buffers open in the session (like say 100), as Vim starts scanning all buffers for matches, when you press BS. You can actually cancel out using ^C, and Vim will show the right completion matches, but if you don't press ^C and wait for Vim to complete scanning, it will show insert-mode completions. -- Thank you, Hari __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com