Re: Funcref and script local functions

2006-07-03 Thread Eric Arnold
On 7/2/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On Thu, 29 Jun 2006 at 10:50pm, Eric Arnold wrote: Ok. For starters, it seems that you *can* call a numbered function from anywhere: function! s:T() echomsg here echomsg 'SID=' . expand( 'sfile' ) endfunction let F

Re: Funcref and script local functions

2006-07-03 Thread Eric Arnold
On 7/3/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 7/3/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 6/30/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: ... The Funcref obtained via function('s:T') can't be called from outside the script ... [unexpectedly] I agree, Hari. I'd expect

Re: minor feature request: let!

2006-07-02 Thread Eric Arnold
On 7/2/06, Mikolaj Machowski [EMAIL PROTECTED] wrote: Dnia niedziela, 2 lipca 2006 12:06, Nikolai Weibull napisał: On 7/1/06, justin constantino [EMAIL PROTECTED] wrote: E706: Variable type mismatch As a minor improvement, I think it would be nice if you could do: let foo =

Re: s?

2006-06-30 Thread Eric Arnold
I can't remember why or when (it was so long ago), but I've always used 's' and 'S' in 'vi'. It never really occured to me to use 'cl' instead. It was just another command in the list. It was part of the original 'vi', but I'm not sure if you meant that by 'put in to be complete'. It is no

Re: How to replace CR with LF

2006-06-27 Thread Eric Arnold
See Vim tip #1266: http://www.vim.org/tips/tip.php?tip_id=1266 Note that Vim isn't replaced 'wrong' \r with 'correct' \r. It is replacing it with a linebreak, which is then interpreted as a \n for unix and a \r\n for dos by the s/// command. It is just one of many odd cases. On 6/27/06,

Re: Man command not working with Vim 7

2006-06-26 Thread Eric Arnold
On 6/26/06, Charles E Campbell Jr [EMAIL PROTECTED] wrote: Eric Arnold wrote: I was having some problems getting manpageview to work on Windows: Thank you for the feedback! I'll look into it (I hope) later on my WinXP machine. Do you use cygwin? Yes.

Re: Man command not working with Vim 7

2006-06-26 Thread Eric Arnold
This $ vim -u NONE :runtime ftplugin/man.vim :Man cvs worked for me, and :r! man cvs | col -b failed with my normal .vimrc , so I tracked it down to needing: set shellxquote=\ The backslash is required. I had shellxquote=' for other situations. I seems like I've got some shell

Re: search '/' command

2006-06-24 Thread Eric Arnold
I'll put in a plug for my GetChar event patch, which would allow this :-) On 6/22/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On Thu, 22 Jun 2006 at 5:36pm, Jason Frerich wrote: How can I tell the search '/' command to perform a task after typing each letter on the pattern line. For

Re: how to find dict corruption?

2006-06-21 Thread Eric Arnold
On 6/21/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Eric Arnold wrote: I've added a v:variable which is a dict type. When I set it in a script, and echo it, everything is fine: let v:timertable[ 'TstTimer' ] = 1000 echo string( v:timertable ) However, it is trashed (garbage in the hash

Re: File browsing in Vim

2006-06-21 Thread Eric Arnold
To further stretch the use of the Ex prompt for this, try CD_Plus.vim. On 6/20/06, Nick Lo [EMAIL PROTECTED] wrote: Thanks Matt, I did have the feeling that I could bend Vim to my old ways, but this revelation was more about realising that I wasn't using features that make Vim different from

Re: Register size

2006-06-21 Thread Eric Arnold
On 6/21/06, Anatoli Sakhnik [EMAIL PROTECTED] wrote: Hello, vim users! Can anyone tell me how big a vim register is? It's very unpleasant, when I yank some piece of text in the source and can paste only part of it. Is there a restriction? No word about the subject neither in the documentation

Re: Bug in chaining dictionary function calls

2006-06-21 Thread Eric Arnold
On 6/21/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: Just wanted to add to the below that the problem is not just chaining functions, but using the return value of the function itself. If the function returns a dictionary (and probably a list), you can't use it to access its members, so

how to find dict corruption?

2006-06-20 Thread Eric Arnold
I've added a v:variable which is a dict type. When I set it in a script, and echo it, everything is fine: let v:timertable[ 'TstTimer' ] = 1000 echo string( v:timertable ) However, it is trashed (garbage in the hash table) by the next time I access it later in the Vim C code. Can anybody give

Re: tabline-menu

2006-06-20 Thread Eric Arnold
I don't think that you can remove the tabline completely, but you can change whatever you want, including returning blanks. TabLineSet.vim contains examples of how to customize it. On 6/20/06, Yegappan Lakshmanan [EMAIL PROTECTED] wrote: Hi Steve, On 6/20/06, Steve Hall [EMAIL PROTECTED]

Re: tabline-menu

2006-06-20 Thread Eric Arnold
On 6/20/06, Steve Hall [EMAIL PROTECTED] wrote: On Tue, 2006-06-20 at 07:38 -0700, Yegappan Lakshmanan wrote: On 6/20/06, Steve Hall [EMAIL PROTECTED] wrote: I can't figure out how to turn off or customize the tabline menu. The items in the tabline menu are hard-coded in the Vim source

Re: tabline-menu

2006-06-20 Thread Eric Arnold
Oh, and BTW, is :set showtabline=-0 not working?

Re: echon space ?

2006-06-18 Thread Eric Arnold
It works. Thanks. On 6/18/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Eric Arnold wrote: Does anybody understand why trailing spaces in an echon string don't actually show up? echon \ngimme let inp = getchar() echon nr2char(inp) It appears this is because getchar() doesn't flush

Re: Comments/Additional Notes for scripts

2006-06-18 Thread Eric Arnold
I get almost zero emails on the scripts I've added. This means 1) They work perfectly 2) They are getting downloaded, but not used 3) There isn't enough immediacy to the feedback options, i.e. people more likely to respond in a forum, than take the trouble to do individual correspondance. From

Re: Makefile indentation with spaces for line continuation

2006-06-16 Thread Eric Arnold
If you want to flag errors, why not use highlighting? Actually, the makefile syntax I'm seeing already highlights correct backslashes. So, in general, you know there is an error if the code/text isn't colored right. I don't see a way to tell Vim to indent with tabs sometimes and not others.

Re: A patch to allow tabline wrapping

2006-06-15 Thread Eric Arnold
On 6/15/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Eric Arnold wrote: When compiled with this patch, Vim will allow the strings delivered via the 'tabline' option to wrap onto new lines. It is up to the 'tabline' string or function to limit itself. See TabLineSet.vim for an example

Re: vim patch: fixing resetting dictionary function

2006-06-15 Thread Eric Arnold
I think Bram was asking you to use diff -c or diff -u to create the patch file. On 6/15/06, Richard Emberson [EMAIL PROTECTED] wrote: Attached is a patch file. Is this what you wanted? Its been almost 20 years since I programmed in 'c' and the vim 'c' code is rather hard to grok if one is

Re: ***SPAM*** Problem with regexp in macro

2006-06-15 Thread Eric Arnold
Vim's line endings are a bit complicated. Whether a CR or NL is treated as a literal character or a line break depends on context. First, what is the value of fileformat? This will determine whether \n or \r\n is the standard line break. Secondly, how are you using the lineString value? When

Re: Bug 1492165 - Dictionary function chaining

2006-06-15 Thread Eric Arnold
Your example produces the result shown for me, gt6 = {'cylinder': 6, 'manufacture': 'Triumph'} without installing the patch. What is happening for you? On 5/20/06, Richard Emberson [EMAIL PROTECTED] wrote: Just an FYI, I've just submitted a demonstration patch that allows one to do

Re: reltime() low part incorrect in win32?

2006-06-14 Thread Eric Arnold
.) Eric Arnold wrote: I'm trying to understand what I'm seeing with the msec timing on win32 (cygwin). Inside the debugger, I'm seeing: (gdb) p tm_delta $1 = {u = {LowPart = 2434313347, HighPart = 896}, {LowPart = 2434313347, HighPart = 896}, QuadPart = 3850725010563} (gdb) n 180

reltime() low part incorrect in win32?

2006-06-11 Thread Eric Arnold
I'm trying to understand what I'm seeing with the msec timing on win32 (cygwin). Inside the debugger, I'm seeing: (gdb) p tm_delta $1 = {u = {LowPart = 2434313347, HighPart = 896}, {LowPart = 2434313347, HighPart = 896}, QuadPart = 3850725010563} (gdb) n 180 n1 =

Re: New feature: bind layout of windows to keys?

2006-06-09 Thread Eric Arnold
I found that the contents of a particular ordinal tab number was too fluid to be of much use to me, so I concentrated on making relative navigation easier, but I could be alone in that. The way it stands, you can make a macro sequence from inside the script using: {m}isc menu - {ma}cro keys

Re: New feature: bind layout of windows to keys?

2006-06-09 Thread Eric Arnold
On 6/9/06, Ilya [EMAIL PROTECTED] wrote: Eric Arnold wrote: I found that the contents of a particular ordinal tab number was too fluid to be of much use to me, so I concentrated on making relative navigation easier, but I could be alone in that. The way it stands, you can make a macro

Re: New feature: bind layout of windows to keys?

2006-06-08 Thread Eric Arnold
I wrote the WinWalker.vim script partly with this sort of thing in mind. Combining window layouts with sessions and macro keys (both supported from inside the plugin), and Vim7 tabs should do what I think you mean. http://vim.sourceforge.net/scripts/script.php?script_id=1522 On 6/8/06,

Re: any way to keep buffers confined to a tab?

2006-06-04 Thread Eric Arnold
It would be possible to create a buffer variable holding the tab number, and an autocommand+func could keep it from showing by immediately closing it, but I think you've got more difficulties if you want :bn to work. If you know that it's what you want, you could do the autocommand so that it

Re: laststatus=2 anomaly (was: I sometimes have to double strike when using gvim7 over Hummingbird Exceed)

2006-06-02 Thread Eric Arnold
On 6/2/06, Mun Johl [EMAIL PROTECTED] wrote: Hi, After taking a couple of helpful hints from Eric, and doing a bunch of experiments, I have isolated some odd behavior to 'laststatus'. As a reminder, this issue only shows up when I compile vim7 using GTK-1; it does not occur when I compile with

Re: timestamp shown after undo/redo: more info?

2006-06-02 Thread Eric Arnold
:help undo.txt :help undolist It's just how long ago that particular change was recorded. On 6/2/06, Maciej Kalisiak [EMAIL PROTECTED] wrote: Could someone point me towards any documentation on the meaning of the timestamp/text shown after some undos/redos in Vim 7? I mean the stuff in the

Re: timestamp shown after undo/redo: more info?

2006-06-02 Thread Eric Arnold
On 6/2/06, Maciej Kalisiak [EMAIL PROTECTED] wrote: On 02/06/06, Eric Arnold [EMAIL PROTECTED] wrote: :help undo.txt :help undolist It's just how long ago that particular change was recorded. Alas, these don't answer my conundrum: it is unclear to me whether this is a relative or absolute

Re: laststatus=2 anomaly (was: I sometimes have to double strike when using gvim7 over Hummingbird Exceed)

2006-06-02 Thread Eric Arnold
On 6/2/06, Karl Guertin [EMAIL PROTECTED] wrote: On 6/2/06, Mun Johl [EMAIL PROTECTED] wrote: abbcdeffgghijjkklmmnopqqrßtuvvww×yzz ^ | this is the greek Beta character (in case it got lost in

Re: laststatus=2 anomaly (was: I sometimes have to double strike when using gvim7 over Hummingbird Exceed)

2006-06-02 Thread Eric Arnold
, Mun Johl [EMAIL PROTECTED] wrote: Hi Eric, Please see my comments below. On Fri, Jun 02, 2006 at 10:42 AM PDT, Eric Arnold wrote: EA On 6/2/06, Mun Johl [EMAIL PROTECTED] wrote: EA Hi, EA EA After taking a couple of helpful hints from Eric, and doing a bunch of EA experiments, I have isolated

Re: problem (expanded): undo/redo messages often immediately hidden

2006-06-02 Thread Eric Arnold
Have you tried resizing your command line: :set cmdheight=10 On 6/2/06, Maciej Kalisiak [EMAIL PROTECTED] wrote: I've created a seperate thread for this issue, even though I discussed it briefly earlier, as I've done some testing and it seems this may be a Vim bug. NOTES - using Vim 7.0,

Re: laststatus=2 anomaly (was: I sometimes have to double strike when using gvim7 over Hummingbird Exceed)

2006-06-02 Thread Eric Arnold
On 6/2/06, Mun Johl [EMAIL PROTECTED] wrote: Hi Eric, Please see my comments below. On Fri, Jun 02, 2006 at 03:22 PM PDT, Eric Arnold wrote: EA Ok. So we know three things: EA EA The incremental search feature EA + the gvim/gui input method EA + the statusline EA EA It would be interesting

Re: problem (expanded): undo/redo messages often immediately hidden

2006-06-02 Thread Eric Arnold
On 6/2/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Eric Arnold wrote: Have you tried resizing your command line: :set cmdheight=10 I have, and I still see the problem. Have you tried reproducing it? I could, with no problem. Yes, I see it now. It only seems to happen with 'O, not 'i

Re: Redraw bug on WinXP with non-GUI tab line.

2006-06-01 Thread Eric Arnold
It appears that the first key of any incremental search to a point far enough down in the file (i.e. a page below the displayed area) will cause it. Typing any additional key brings the tabline back. I fiddled around with TabLineSet.vim, but it appears that the bug is in the code that decides

Re: Filter :map output

2006-06-01 Thread Eric Arnold
On 6/1/06, Eric Leenman [EMAIL PROTECTED] wrote: Hi, Is it possible to filter the :map output? For example to only show the mappings that have CTRL or C- in it? I don't think so, but you can :redir into a register, put into a buffer, or use split(), filter(), etc. I don't see a way to loop

regex question

2006-06-01 Thread Eric Arnold
Sorry if I've got brain lock on this, but is it possible to match a substring like match wildmenu ;\(directory\)\{3,}; such that it will match three or more substring chars of the pattern to match dir as well as directory? (I know the above format isn't this.) I know I could do it if I could

Re: Loop through all lines in a file

2006-06-01 Thread Eric Arnold
On 6/1/06, Johannes Schwarz [EMAIL PROTECTED] wrote: Hello, I'm trying to write my first vim-plugin, but I got stucked. I managed to execute an external command, which gives me back a list of filenames. You need to say exactly how you executed the command, since that will define how the

Re: regex question

2006-06-01 Thread Eric Arnold
On 6/1/06, Benji Fisher [EMAIL PROTECTED] wrote: On Thu, Jun 01, 2006 at 05:05:00AM -0600, Eric Arnold wrote: Sorry if I've got brain lock on this, but is it possible to match a substring like match wildmenu ;\(directory\)\{3,}; such that it will match three or more substring chars

Re: Loop through all lines in a file

2006-06-01 Thread Eric Arnold
On 6/1/06, Benji Fisher [EMAIL PROTECTED] wrote: ... let line=getline(.) while (strlen(line)!=0) do sth. here -- construct the external command and so on j let line=getline(.) endwhile Remember that a vim script (including a plugin) is a list of commands in Command-Line (Ex)

Re: Inevitable VIM plug-in for eclipse?

2006-06-01 Thread Eric Arnold
I don't know much about eclipse. Does it allow you to embed your own editor as the default editing window? On 6/1/06, Furash Gary [EMAIL PROTECTED] wrote: As much as I love vim (write school papers, do meeting notes, program), in the software side of the world everything seems to be going

Re: Reassigning F keys in eVim

2006-06-01 Thread Eric Arnold
Try importing via a file sourced by -S On 6/1/06, John R. Culleton [EMAIL PROTECTED] wrote: I want to create a special application for MSWin machines that works somewhat as follows: When clicked a .bat file calls evim with a script or whatever that adds certain F key functions, e.g., F3

Re: :vimgrep on all buffers

2006-05-31 Thread Eric Arnold
How about set errorformat+=%f,%f:%m,%f:%l:%m command! -nargs=* Bufgrep silent! bufdo! g/args/caddexpr expand(%) . : . line(.) . : . getline(.) It does have a problem where it tries to open the first entry automatically, but it opens the line contents instead of the buffer name, but it does

Re: execute macro in bufdo command

2006-05-31 Thread Eric Arnold
On 5/31/06, Johannes Schwarz [EMAIL PROTECTED] wrote: Hi all, I recorded a macro (search for line and paste 3 lines out of the clipboard*p ) I want to execute the macro in 15 different buffers and tried it with the bufdo - Command, without success :bufdo @a | update Try bufdo normal

Re: execute macro in bufdo command

2006-05-31 Thread Eric Arnold
On 5/31/06, Eric Arnold [EMAIL PROTECTED] wrote: On 5/31/06, Johannes Schwarz [EMAIL PROTECTED] wrote: Hi all, I recorded a macro (search for line and paste 3 lines out of the clipboard*p ) I want to execute the macro in 15 different buffers and tried it with the bufdo - Command

setting the mouse pointer + phantom pointer?

2006-05-30 Thread Eric Arnold
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,

Re: setting the mouse pointer + phantom pointer?

2006-05-30 Thread Eric Arnold
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

Re: Detecting if I am on Windows

2006-05-30 Thread Eric Arnold
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

Re: Vim takes up to 7 seconds to run

2006-05-28 Thread Eric Arnold
This is often due to trying and failing to connect to the X server. Try the -X startup option. On 5/28/06, Andrea Spadaccini [EMAIL PROTECTED] wrote: Hello everyone, In the last two days I've been experiencing an odd problem: vim takes A LOT of time to start. My notebook is a Core Duo T2300

Re: Per document dictionay modifications?

2006-05-28 Thread Eric Arnold
You could store the associations in a global dict variable, and use it in the BufWinEnter. You could then store the dict var in your .vimrc, a separate file, or let viminfo handle it. On 5/28/06, Geoffrey Alan Washburn [EMAIL PROTECTED] wrote: Gerald Lai wrote: Since 'spellfile' cannot be

Re: source, runtime and all that

2006-05-26 Thread Eric Arnold
Try expanding it. au SourcePre *.vim echomsg afile= . expand(afile) au SourcePre *.vim let g:sfile = afile On 5/26/06, Zdenek Sekera [EMAIL PROTECTED] wrote: I'd like to before :sourc'ing a file to execute one of my scripts (always the same). I though the autocmd 'SourcePre' event will help

Re: source, runtime and all that

2006-05-26 Thread Eric Arnold
On 5/26/06, Eric Arnold [EMAIL PROTECTED] wrote: Try expanding it. au SourcePre *.vim echomsg afile= . expand(afile) au SourcePre *.vim let @a = afile au SourcePre *.vim let @a = expand(afile ) On 5/26/06, Zdenek Sekera [EMAIL PROTECTED] wrote: I'd like to before :sourc'ing a file

Re: source, runtime and all that

2006-05-26 Thread Eric Arnold
On 5/26/06, Zdenek Sekera [EMAIL PROTECTED] wrote: -Original Message- From: Charles E Campbell Jr [mailto:[EMAIL PROTECTED] Sent: 26 May 2006 16:19 To: Zdenek Sekera Cc: vim-dev@vim.org Subject: Re: source, runtime and all that Zdenek Sekera wrote: I also thought 'runtime' is

Re: Remembering 'Fold State' across buffers

2006-05-26 Thread Eric Arnold
(I missed part of this thread, so sorry if this has already been mentioned). Have you checked for mode lines at the top or bottom of the files which set fold options? If there aren't any which might be confusing you, you could consider adding your own mode lines to have the folding appropriate

--remote-expr stdout?

2006-05-26 Thread Eric Arnold
Does anybody know how to get gvim to really print the expression result from --remote-expr to stdout, as it says in the docs. I always get an error popup with the results (although the expression wasn't a failure, the error popup just seems to be the default).

Re: how will a plugin know if Vim is currently starting?

2006-05-26 Thread Eric Arnold
You could check: if bufnr($) == 1 !bufloaded(1) this seems to be the case when it's first sourcing .vimrc, anyway. 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

Re: set readonly - strange?

2006-05-24 Thread Eric Arnold
On 5/24/06, Zdenek Sekera [EMAIL PROTECTED] wrote: -Original Message- From: Eric Arnold [mailto:[EMAIL PROTECTED] Sent: 23 May 2006 18:12 To: Yakov Lerner Cc: Zdenek Sekera; vim-dev@vim.org Subject: Re: set readonly - strange? As far as I can tell, there are several instances

Re: set readonly - strange?

2006-05-24 Thread Eric Arnold
On 5/24/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 5/24/06, Eric Arnold [EMAIL PROTECTED] wrote: I think 'readonly' does not belong in the .vimrc since it is a buffer-local-only option. If you try to set any other buffer-local option in .vimrc, you'll see that it works just fine. I tried

Re: rdfinable boudaries of sections, paragraphs

2006-05-24 Thread Eric Arnold
I haven't used them, but Vim has options for 'paragraphs' , 'options', etc. They are global, but could be set by file type. They accept NROFF syntax instead of regex, so I don't know whether that's good enough or not. On 5/24/06, Yakov Lerner [EMAIL PROTECTED] wrote: vim still doesn't have

Re: Working directory problems

2006-05-24 Thread Eric Arnold
I'm not sure how your bound function works. Have you tried using fnamemodify() to manipulate the filename? You can use the :h option to strip the path, and :s?? to substitute the relative path. On 5/24/06, Max Dyckhoff [EMAIL PROTECTED] wrote: Hi, I have some issues with the working

Re: set readonly - strange?

2006-05-23 Thread Eric Arnold
I wouldn't expect that to work. There is no defined loaded buffer when the -u vimrc is run. 'readonly' is local to buffers only, so in your example, it has no buffer to be applied to. If you want everything to be readonly, try setting a BufEnter autocommand. If you want just one file to be

Re: set readonly - strange?

2006-05-23 Thread Eric Arnold
As far as I can tell, there are several instances where there are transitory buffers as vim is starting, opening a new tab, probably some in closing op.s. I don't know if I used the right word by saying the buffer is undefined, but I don't think it it's guaranteed to be usable until a certain

Re: How to get cygwin command line to know where it is

2006-05-23 Thread Eric Arnold
This is partly due to the use of --login , which causes it to act as if it's a fresh login shell, so of course, it goes to your home directory. Try it with just -c . Without setting that, zsh and bash seem to honor $PWD, probably, which I suspect is exported by Vim.. I'm having trouble

Re: How to get cygwin command line to know where it is

2006-05-23 Thread Eric Arnold
Try this: set shell=C:/cygwin/bin/bash let $BASH_ENV = '~/.bashrc' let shellcmdflag='-c' On 5/23/06, Eric Arnold [EMAIL PROTECTED] wrote: Off hand, I can't remember the exact name, but I think that there is a special rc filename that is executed even when it isn't a login shell

Re: cmapping woes

2006-05-22 Thread Eric Arnold
On 5/21/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 5/22/06, Eric Arnold [EMAIL PROTECTED] wrote: I've been trying to map cd if it's the first two characters on the :ex line. I've tried all the combinations I can think of. On several of them, I seem to be getting errors as if expr is run

Re: cmapping woes

2006-05-22 Thread Eric Arnold
On 5/21/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On Sun, 21 May 2006 at 3:12pm, Eric Arnold wrote: I've been trying to map cd if it's the first two characters on the :ex line. I've tried all the combinations I can think of. On several of them, I seem to be getting errors as if expr

Re: cmapping woes

2006-05-22 Thread Eric Arnold
On 5/22/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 5/22/06, Eric Arnold [EMAIL PROTECTED] wrote: Eric, this works for me: -- cnoremap xx c-r=getcmdpos()==1?MyFunc():'xx'cr function! MyFunc() call feedkeys(:call DoIt()\cr, 't') return '' endfu And DoIt

Re: folding lines at the top of file

2006-05-21 Thread Eric Arnold
On 5/21/06, Yakov Lerner [EMAIL PROTECTED] wrote: I want to fold lines grouped at the top of file and matching some pattern. I use foldmethod=expr. But vim does not behave as expected. In the testcase, /a/. In the testfile (2) below, I want first 3 lines (a\na\na\n) folded, and nothing else

cmapping woes

2006-05-21 Thread Eric Arnold
I've been trying to map cd if it's the first two characters on the :ex line. I've tried all the combinations I can think of. On several of them, I seem to be getting errors as if expr is run in the sandbox (that dog won't hunt). The only one that works at all is the first simple mapping, but

Re: Indentations - possible Vim7 bug

2006-05-18 Thread Eric Arnold
What's the value of your 'paste' option? On 5/18/06, Dan Clarke [EMAIL PROTECTED] wrote: Hi. I've just installed Vim 7. l use MS Windows. I've found a problems with the indentations. You can replicate it by doing the following ... - Copy a whole word into the clipboard. - In a C/C++ file,

Re: ctrl+shift key mappings

2006-05-18 Thread Eric Arnold
Thanks. Now I've got some good multi-bytes to multi-chew on :-) On 5/18/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Eric Arnold wrote: Hey. Do you know any simple key sequence to test whether code I'm adding to Vim is handling mbytes correctly? Unfortunately, even if I got Japanese

clearing the command line

2006-05-18 Thread Eric Arnold
I''ve been chasing this for a while, so I might as well ask, even though it seems like a stupid question. What's the right way to clear the command line between echo blocks in a script, without causing a full screen redraw? Everything I try eventually fails when the command line has been

Re: clearing the command line

2006-05-18 Thread Eric Arnold
On 5/18/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 5/18/06, Eric Arnold [EMAIL PROTECTED] wrote: I''ve been chasing this for a while, so I might as well ask, even though it seems like a stupid question. What's the right way to clear the command line between echo blocks in a script, without

Re: search next, prev while in /pattern editing

2006-05-18 Thread Eric Arnold
I think this does what you want. You only need to use /, though, since you can now go up and down while in / : cmap silent C-X c-cN:redrawCR/c-p cmap silent C-Z c-cn:redrawCR/c-p

Re: search next, prev while in /pattern editing

2006-05-18 Thread Eric Arnold
On 5/18/06, Eric Arnold [EMAIL PROTECTED] wrote: I think this does what you want. You only need to use /, though, since you can now go up and down while in / : cmap silent C-X c-cN:redrawCR/c-p cmap silent C-Z c-cn:redrawCR/c-p Rats. This works only if you set the @/ variable first

Re: right-to-left text selection

2006-05-17 Thread Eric Arnold
Use the o command to switch positions of the cursor, and then move to the left. On 5/16/06, Gerald Lai [EMAIL PROTECTED] wrote: On Tue, 16 May 2006, Jared wrote: [snip] So, my question: is it somehow possible to be able to select the last character of a line when selecting from

Re: echon space ?

2006-05-17 Thread Eric Arnold
writing mappings like: cnoremap silent cd call Cd_plus() CR such that I want the user to see :cd as the prompt in the command line. On 5/16/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Eric Arnold wrote: On 5/16/06, Gerald Lai [EMAIL PROTECTED] wrote: On Tue, 16 May 2006, Eric Arnold wrote

Re: right-to-left text selection

2006-05-17 Thread Eric Arnold
While the visual mode selection is active, hitting o moves to the opposite corner. If it isn't doing that for you, I'd check for vmap interference. 3. Changing the Visual area *visual-change* *v_o* o

Re: ctrl+shift key mappings

2006-05-17 Thread Eric Arnold
On 5/17/06, Jared [EMAIL PROTECTED] wrote: Ok, this will be my last question for the night (promise!). I'd like to map separate commands to Ctrl-C and Ctrl-Shift-C. I've tried a couple different ways to do it, but this one seems like it should be most correct: vnoremap C-c +y vnoremap C-S-c

Re: using variables in ! command

2006-05-17 Thread Eric Arnold
This might have failed because of context. If you used g:isshelp, then it would probably be recognized, though I don't know the rest of the situation. On 5/17/06, Jared [EMAIL PROTECTED] wrote: On 5/18/2006 12:08 AM, Yakov Lerner wrote: Try map F2 :exe :silent! start .isshelp cr Thanks for

Re: Moving windows horizontally from col to col

2006-05-16 Thread Eric Arnold
Have a look at WinWalker.vim. It does this sort of thing. On 5/16/06, Marc Weber [EMAIL PROTECTED] wrote: On Mon, May 15, 2006 at 03:43:40PM -0700, Gerald Lai wrote: On Tue, 16 May 2006, Marc Weber wrote: I like the way you can move windows in wmii. 1 | 2 --+-- 3 | 4 if your cursor

Re: Tab autocommand inconsistencies?

2006-05-16 Thread Eric Arnold
I'm not sure I fully get what's going on, but I think is has to do with the window that is automatically cloned to start the tab, which is then converted to an empty buffer window. On 5/15/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: Just wanted to send the script that I used, in case

Re: Associating files with Vim 7

2006-05-16 Thread Eric Arnold
Search your registry (with regedit or something better) for any conflicting entries for Vim6 and Vim7. On 5/16/06, James Eibisch [EMAIL PROTECTED] wrote: In Windows 2000 I'm having problems associating file extensions with Vim 7. I've been using Vim 6.2 (GUI version) for a while, and had

Re: Highlighting in Vim 7

2006-05-16 Thread Eric Arnold
Did you try putting these at the bottom of your vimrc? If so, then it might be a plugin or script you are using which is causing them to reset. Try --noplugin. On 5/15/06, Antun Karlovac [EMAIL PROTECTED] wrote: I just upgraded from GVIM 6.3 to GVIM 7, and my highlight colors no longer work.

Re: Shell support in Vim?

2006-05-16 Thread Eric Arnold
On 5/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I haven't seen much discussion of the intermediate solution: have a command shell that *isn't* a terminal emulator. There have been several attempts at this, with varying degrees of success. A command shell window which does good,

Re: Key Mapping for spellcheck.

2006-05-16 Thread Eric Arnold
If you mean the right-shift key, I don't think shift/control/alt/meta are delivered by themselves to Vim. You'll have to pick shift-somekey. On 5/16/06, Baha-Eddine MOKADEM [EMAIL PROTECTED] wrote: Hi, I would like to map the right-clic-key (to make myself clear it's the one between Win

echon space ?

2006-05-16 Thread Eric Arnold
Does anybody understand why trailing spaces in an echon string don't actually show up? echon \ngimme let inp = getchar() echon nr2char(inp)

Re: echon space ?

2006-05-16 Thread Eric Arnold
On 5/16/06, Gerald Lai [EMAIL PROTECTED] wrote: On Tue, 16 May 2006, Eric Arnold wrote: Does anybody understand why trailing spaces in an echon string don't actually show up? echon \ngimme let inp = getchar() echon nr2char(inp) I think echo/echon is doing fine. It's getchar() that's

Re: C-W C-] to split vertically

2006-05-15 Thread Eric Arnold
Maybe something like nnoremap c-wc-] :vsplcrc-] On 5/15/06, Salman Khilji [EMAIL PROTECTED] wrote: I want to jump to a tag under the cursor using the C-W C-] shortcut, but would like to have the command split the window vertically. What do I do?

Re: VIM is starting very slow on IBM P660, AIX 4.3.3

2006-05-15 Thread Eric Arnold
See :help -X maybe the X server is your problem. On 5/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello! I'm more ore less new with vim and I'm absolutely new to this list. So first let me say Hello to all. I'm having a problem with vim. Starting it on a server IBM P660 with AIX

Re: triggering autoread

2006-05-15 Thread Eric Arnold
I guess I was hoping for tail -f behavior. I've got a process that's writing stuff I want in Vim, but if it fails then I want to know it. As it is, I can map a key, or use CursorHold, and keep hitting it when I want to see the output. It works, but the other would be nice.

Re: Is there a way to move tabs around via the mouse?

2006-05-14 Thread Eric Arnold
On 5/9/06, Eric Arnold [EMAIL PROTECTED] wrote: On 5/9/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On Tue, 9 May 2006 at 10:29am, Yegappan Lakshmanan wrote: Hi Scot, On 5/9/06, Scot P. Floess [EMAIL PROTECTED] wrote: Is there anyway to move the tabs in a tabbed window around using

Re: Is there a way to move tabs around via the mouse?

2006-05-14 Thread Eric Arnold
On 5/14/06, Gerald Lai [EMAIL PROTECTED] wrote: On Sun, 14 May 2006, Eric Arnold wrote: On 5/9/06, Gerald Lai [EMAIL PROTECTED] wrote: On Tue, 9 May 2006, Hari Krishna Dara wrote: On Tue, 9 May 2006 at 10:29am, Yegappan Lakshmanan wrote: Hi Scot, On 5/9/06, Scot P. Floess [EMAIL

Re: updated strtrans() patch for special keys

2006-05-12 Thread Eric Arnold
belongs somewhere. On 5/12/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Eric Arnold wrote: It wasn't handling certain keys. This works now: echo strtrans(\c-s-cr,\s-tab,\c-space,\c-s-up,\c-s-2leftmouse\c= -notakey) That already worked. You apparently have wrong expectations of what strtrans

Re: updated strtrans() patch for special keys

2006-05-12 Thread Eric Arnold
-CEscC-S-CR,S-Tab,C-Space,C-S-Up,C-S-2-LeftMousec-notakey trans e=\C-C\Esc\C-S-CR,\S-Tab,\C-Space,\C-S-Up,\C-S-2-LeftMousec-notakey raw2=031b€ü060d,€kB,€ü04 ,€ü04€ý04,€ü€ý,c-notakey On 5/12/06, Eric Arnold [EMAIL PROTECTED] wrote: The doc page really only talks about regular control chars

Re: A patch for a mouse function option

2006-05-12 Thread Eric Arnold
I've uploaded a new version to the sourceforge script area. It now can read and react to the text in the statusline and tabline as it appears on the screen. On 5/12/06, Eric Arnold [EMAIL PROTECTED] wrote: Here is my first working version of a mouse function option, i.e. :set mousefunc

Re: lookupfile.vim (WAS Re: fast file opening / find file as you type)

2006-05-12 Thread Eric Arnold
I'm not sure exactly what's supposed to happen when the one line window opens. I type stuff in there and I have to hit ^P or ^N to see the popup. It doesn't show matches automatically as I type the filename. Typing filename.* doesn't turn up any matches.

  1   2   >