Re: restore function

2006-04-10 Thread Charles E Campbell Jr
linda.s wrote: If I wrongly set nnoremap w k in my command mode, how to restore the function of "w"? nunmap w Regards, Chip Campbell

Re: weird LaTeX highlighting in updated vim6.4

2006-04-11 Thread Charles E Campbell Jr
Luis A. Florit wrote: Hi all, I've always had some special highlighting for TeX files. For example, I have the following syn for "$$": hi dollars cterm=bold ctermfg=7 ctermbg=4 guifg=white guibg=blue syn match dollars /\(\$\$\|\\\[\|\\\]\)/ It always worked nicely, but since I upgraded to

Re: restore function

2006-04-11 Thread Charles E Campbell Jr
Tim Chase wrote: If I wrongly set nnoremap w k in my command mode, how to restore the function of "w"? nunmap w This is also the command for creating a mapping in parochial-school-mode. :*) (I hope I don't get my knuckles smacked with a ruler for that one...) :)

Re: weird LaTeX highlighting in updated vim6.4

2006-04-12 Thread Charles E Campbell Jr
Luis A. Florit wrote: * El 11/04/06 a las 9:58, Charles E Campbell Jr chamullaba: Luis A. Florit wrote: I've always had some special highlighting for TeX files. For example, I have the following syn for "$$": hi dollars cterm=bold ctermfg=7 ctermbg=4 guifg=white

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Charles E Campbell Jr
Yi Qiang wrote: Using gvim, I find it very irritating that the Open File dialog always defaults to $HOME instead of the last browsed directory. Is there a way to change this behavior (it is not a limitation of the gtk file chooser) ? Does :help g:netrw_keepdir and :help netrw-c help you

Re: Loaded + unlisted buffers?

2006-04-18 Thread Charles E Campbell Jr
Eric Arnold wrote: I just noticed that no-name buffers can be unlisted, loaded, modified, etc. all at once. What's that about? Here's a story for you: "", as a small baby, showed up at a hospital, which will be go unnamed. Eventually he ended up with this Evil Stepmother. ES didn't even

Re: plugins are not used, help not visible

2006-04-19 Thread Charles E Campbell Jr
Eddy Petrişor wrote: Hello all, I have just came across an issue which I don't know hw to solve. I have tried and read the documentation, but I can't figure out what is the problem. I tried to add the c/c++ support plugin to my windows installation of vim, but I observed nothing happened. The

Re: strange startup/loading error

2006-04-21 Thread Charles E Campbell Jr
Marc Wiatrowski wrote: I recently upgraded a box from RHEL 3 to 4 and I'm now getting the following error with vim when I edit one specific file. All other files seem to work without this error. E295: Read error in swap file E316: ml_get: cannot find line 1 Hit ENTER or type command to continu

Re: Best Way to open a file in a directory tree?

2006-04-22 Thread Charles E. Campbell, Jr.
Curtis Spencer wrote: Another little tip. If you happen to be on OS X, if you use Quicksilver, you can add a directory you work in frequently to one of the catalogs, then use the quicksilver shortcut outside of VIM to quickly open the file. Quicksilver's search seems to be little more robust i

Re: Fullscreen help without loosing other buffers ?

2006-04-24 Thread Charles E Campbell Jr
Meino Christian Cramer wrote: I would like to know, whether it is possible to get a fullscreen help when doing :h or other help-action is without loosing the buffers already loaded so far ? May I suggest ZoomWin -- that's at http://vim.sourceforge.net/scripts/script.php?script

Re: showing C declarations

2006-04-25 Thread Charles E Campbell Jr
[EMAIL PROTECTED] wrote: Is there any vim plugin that shows a function declaration if I type the function name? For example, if I type "memset(" it should show the memset function declaration (at least its type of arguments). There's the hints file created by flist. See http://mysite.veri

Re: "describe-bindings" in VIM ?

2006-04-26 Thread Charles E Campbell Jr
Meino Christian Cramer wrote: No, I didn't mean "map" or "command". Think of an vim started without .vimrc loaded. I am looking for a command, function or whatever, which lists something like this (I dont look for a text file, which lists those keys and functions) : Key Funct

Re: others like startinsert for Vim7?

2006-04-26 Thread Charles E Campbell Jr
Eric Arnold wrote: It occured to me that it would be nice to have startsearch (forward/back) startex(begin :ex mode) etc. since there doesn't seem to be (?) any way to start modes other than insert from Vim scripts. Well, there's startreplace ! Regards, Chip Campbell

Re: vimgrep slow?

2006-04-26 Thread Charles E Campbell Jr
Eric Arnold wrote: I'm using win32 gvim70f. If I use the externan Cygwin grep grep -i -r vimgrep . it returns the results in under a second. :vimgrep vimgrep ** takes about 20 seconds. Without having looked at the code, let me assume that vimgrep is simply re-using its regular expressio

Re: Vim7 mouse cursor focus freaking

2006-04-28 Thread Charles E Campbell Jr
Eric Arnold wrote: On 4/20/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: Eric Arnold wrote: Certain things seem to cause Vim7 to do go into some odd loop when the mouse moves the cursor into a different window. So far I've seen it when 1) I've got the command line edit window open,

Re: vimgrep slow?

2006-04-28 Thread Charles E Campbell Jr
Yakov Lerner wrote: From two experiments below, it follows that vimgrep time is dominated (75-99%) by some overhead of file opening, while while searching is small fraction of [current] vimgrep time (1-15%) Here are two experiments by which I tried to tell apart two parts of vimgrep, (1) the p

Re: regex @vim, negating a group

2006-05-02 Thread Charles E Campbell Jr
o1792 wrote: Hi vimmers, When searching through text files using regex, I am trying unsuccessfully to negated a complicated pattern without success. ...snip... May I suggest that you look into LogiPat, http://vim.sourceforge.net/scripts/script.php?script_id=1290 which is useful for se

Re: hiding lines

2006-05-05 Thread Charles E Campbell Jr
Suresh Govindachar wrote: Jack Donohue wrote: >> :v (and :g) made my day..! > > I guess I'm looking for a g or v command that folds the lines > instead of actually deleting them. The original post specifically asked for a non-fold based solution to "hiding lines". May I suggest lo

Re: Commenting out a block of text

2006-05-08 Thread Charles E Campbell Jr
Gerald Lai wrote: Yes, I see. You have 'ignorecase' set. I don't. You could either do :set noignorecase or change these lines if a:mode[1] == "T" a lot ... elseif a:mode[1] == "t" to if a:mode[1] ==# "T" ... elseif a:mode[1] ==# "t" Well, this makes me wonder how many script

Re: File Explorer and Tabs

2006-05-09 Thread Charles E Campbell Jr
Matt Tuzzolo wrote: Anyone figure out a way to open up files from the file-explorer in a new tab yet? Check out netrw v99a, available on my website: http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs - see "Network Oriented Reading, Writing, and Browsing". You'll be wanting to ha

Re: get Vim option value?

2006-05-12 Thread Charles E Campbell Jr
Jared wrote: Dang, that works perfectly. I tried so many different special characters prepended, appended, and surrounding numberwidth, but I never tried &. Is that discussed in the Vim docs? Can you let me know where so I can read through for further reference? Specifically, try :help e

Re: set highlight color?

2006-05-12 Thread Charles E Campbell Jr
Jared wrote: How do I change the background color used for cursorline in Vim 7.0? I'd like to make it a few shades darker. It looks like it can be set with hl-CursorLine, but I can't figure out how to actually do it. I currently use the following setting in .gvimrc to set the color scheme: hi

Re: Syntax Highlighting problem

2006-05-15 Thread Charles E Campbell Jr
Jerin Joy wrote: I use gvim as my default editor. My source files are in a non standard language whose syntax is similar to Verilog. When I open files from command line in independent gvim windows the syntax highlighting uses the verilog syntax which is what I want. The only thing is when I use

Re: Replace & Insert: Filling in whitespaces till position 15

2006-05-15 Thread Charles E Campbell Jr
On 5/15/06, Popovic Dan <[EMAIL PROTECTED]> wrote: > I have a question on replacing text. I have a simple text-file with a table of results like this: > > -- > Mosbach - KSF 2 2 : 6 > > Zimmer- Pfrommer 0 > Mueller

Re: Highlighting in Vim 7

2006-05-15 Thread Charles E Campbell Jr
Antun Karlovac wrote: I just upgraded from GVIM 6.3 to GVIM 7, and my highlight colors no longer work. I'm on Windows. In my _vimrc file I had the following settings: highlight Commentguifg=#5F5F5F highlight Constantguifg=#AA highlight Type gui=NONE guifg=#990011 highlight Sea

Re: not opening correct syntax file for .prg files

2006-05-16 Thread Charles E Campbell Jr
;s an example of a .vim/filetype.vim file, used to select a syntax (in this case, asave.vim). " filetype.vim: " Author: Charles E. Campbell, Jr. " Date: September 25, 2000 if exists("did_load_myfiletypes") finish end

Re: Text -> commandline

2006-05-16 Thread Charles E Campbell Jr
A.J.Mechelynck wrote: Meino Christian Cramer wrote: Hi, for what keyword I have to look in the online-help to find a hint how to copy any text from a buffer as any part of a command currently being edited in the commandline ? kind regards, mcc If by "buffer" you mean what the Vim

Re: Saving over FTP with vim 7

2006-05-17 Thread Charles E Campbell Jr
Noah Sturr wrote: I'm having an issue saving a file open for edit using the ftp://host mechanism. The steps are: open gvim.exe from the Windows command line Hello! Please try my latest netrw; several changes have been made lately to help support Windows + cmd.exe users. Its available at

Re: Vertical selection

2006-05-18 Thread Charles E Campbell Jr
Baha-Eddine MOKADEM wrote: Is it possible to make a vertical selection in a text, to have a rectangular selection in the text ? If so, how ? In addition to the ctrl-v answer: vis.vim, available at http://vim.sourceforge.net/scripts/script.php?script_id=1195 , allows one to apply any Ex comma

Re: How to insert increasing numbers in each line of a file

2006-05-22 Thread Charles E Campbell Jr
Matthias Pitzl wrote: I don't really know how to do this but im sure that there's a solution. I have some file and i need to insert a number before each line and a separator. The number is the line number. Is there any way in vim to do this easily? Hello! There's a number of ways to go abo

Re: Vim for Palm

2006-05-23 Thread Charles E Campbell Jr
Furash Gary wrote: I tried SiEd - pedit seemed more complicated than I need. Still would be nice to have vim for palm os. Why not get a cross compiler for the Palm o/s and build your own vim for it? Try web search for palm cross compiler I don't have a Palm, so I haven't done this myse

Re: cpp syntax hilighting - string

2006-05-24 Thread Charles E Campbell Jr
David Woodfall wrote: I would like to somehow add the keyword 'string' to cpp syntax highlighting, but I can't make much sense of the cpp.vim or other files. Googling around hasn't helped much. What sort of keyword? Here's some of the choices: cppAccess cppExceptions cppOperator cppStatem

Re: Vim in combination with OpenVMS

2006-05-26 Thread Charles E Campbell Jr
Jansen of Lorkeers, Richard wrote: I have a general question concerning installation of VIM on a OpenVMS systems. Who has experience with the installation of the software? Its been a long time since I've used VMS. So I have no recent experience in the installing vim under OpenVMS. Once i

Re: Remembering 'Fold State' across buffers

2006-05-26 Thread Charles E Campbell Jr
Mark Woodward wrote: The problem I'm having is I'll open all folds in a buffer, switch buffers, go back to the original and all folds are closed again. Is there a way to stop this? ie Vim remembers the 'fold state' of the buffer when I return to it? So if folds were open when I left they'll be o

Re: sftp file browsing

2006-05-30 Thread Charles E Campbell Jr
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 k

Re: Syntax Highlighting: Vim 7, Debian

2006-05-30 Thread Charles E Campbell Jr
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 manua

Re: Remembering 'Fold State' across buffers

2006-05-30 Thread Charles E Campbell Jr
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 tho

Re: gvim 7.0 does not display files in the same directory again

2006-05-31 Thread Charles E Campbell Jr
PoWah Wong wrote: When I use gvim to open files, the first time it will display all the files in the directory A. After I open a file, when I try to open files in the same directory A, it does not display any files, i.e. the directory A is displayed as empty. I have to display the files

Re: gvim 7.0 does not display files in the same directory again

2006-06-01 Thread Charles E Campbell Jr
Charles E Campbell Jr wrote: PoWah Wong wrote: When I use gvim to open files, the first time it will display all the files in the directory A. After I open a file, when I try to open files in the same directory A, it does not display any files, i.e. the directory A is displayed as

Re: Change syntax color

2006-06-02 Thread Charles E Campbell Jr
[EMAIL PROTECTED] wrote: How can I change the color for the comments on a particular language syntax highlight? The hicolors.vim plugin provides both syntax highlighting help and a colorscheme editor. You can get it from: http://vim.sourceforge.net/scripts/script.php?script_id=1081 Start

Re: How do I get list of directory + how do I show them

2006-06-02 Thread Charles E Campbell Jr
Mueller Stefan wrote: Hello I have some questions: 1. How do I get a file list of directory, where the file have the extension like "file.cpp,v" ? 2. How do I show the list contents in current window? Just "edit" the directory. vim some/directory Regards, Chip Campbell

Re: CurorLine, set cursorline: slow, slower, slowest ?!

2006-06-02 Thread Charles E Campbell Jr
Zdenek Sekera wrote: -Original Message- From: Meino Christian Cramer [mailto:[EMAIL PROTECTED] Sent: 18 May 2006 18:43 To: [EMAIL PROTECTED] Subject: Re: CurorLine, set cursorline: slow, slower, slowest ?! From: "Yakov Lerner" <[EMAIL PROTECTED]> Subject: Re: CurorLine, set cursorline

Re: Functions developed in 6.4, to be used in 7

2006-06-02 Thread Charles E Campbell Jr
Lukas Ruf wrote: for the 6-series of Vim, I have been using a bunch of functions that greatly simplified my daily work. Unfortunately, they seem not to be available in my (Debian unstable) Vim 7 installation. Are you really talking about functions, or are you talking about commands/maps/e

Re: Character under cursor

2006-06-02 Thread Charles E Campbell Jr
Christoph Nodes wrote: I'm looking for a way to get the character under the cursor inside a script. " grab a copy of the character under the cursor into curchr let curchr= getline(".")[col(".")-1] Regards, Chip Campbell

Re: How to comment a line in vim?

2006-06-02 Thread Charles E Campbell Jr
Eric Luo wrote: I want to comment a new line or comment an existing line at the end of the current line. In Emacs, I have M-; to do the job. Could anyone tell me that weather the similar functionality existed? I have no idea what emacs does, and I suspect that there's quite a few folks who u

Re: I sometimes have to "double strike" when using gvim7 over Hummingbird Exceed

2006-06-02 Thread Charles E Campbell Jr
Mun Johl wrote: On Wed, May 17, 2006 at 11:29 PM PDT, Eric Arnold wrote: EA> It would be helpful to know more about whether any particular keys are EA> problematic, and when you are having the trouble. It "seems" kind of random; and because it's intermittent it's kind of hard to isolate. Here'

Re: I sometimes have to "double strike" when using gvim7 over Hummingbird Exceed

2006-06-02 Thread Charles E Campbell Jr
Charles E Campbell Jr wrote: I suggest narrowing down the problem. vim -u NONE -U NONE for starters. Then try to source in a minimal file (I believe you mentioned something about laststatus). If you get the double strike effect, you've got something that others have a chan

Re: Calling through a function reference with a variable argument list

2006-06-02 Thread Charles E Campbell Jr
Bob Hiestand wrote: My question is whether there is a simpler way to pass an unknown number of arguments from the current function to a function which accepts a variable-length list of arguments. Does the following do what you wish: " -- fun! AFunc(...) exe "

Re: How to use map to exchange g and G keys?

2006-06-05 Thread Charles E Campbell Jr
Yakov Lerner wrote: On 6/4/06, Georg Dahn <[EMAIL PROTECTED]> wrote: Hi! > IOW, the problem seems to be caused by a gx mapping somewhere in the > netrw plugin set. You might try downloading the latest version, probably > from Dr. Charles "Chip" Campbell's site (astronaut or somesuch). I ha

Re: MatchParen unreadable on dark backgrounds

2006-06-05 Thread Charles E Campbell Jr
Yakov Lerner wrote: On 6/2/06, Georg Dahn <[EMAIL PROTECTED]> wrote: > I use dark backgrounds (and therefore a light coloured foreground colour). > As a consequence the new MatchParen highlight that is enabled > by default in vim 7 is unreadable/annoying. > I need to put the following in my ~

Re: MatchParen unreadable on dark backgrounds

2006-06-05 Thread Charles E Campbell Jr
Yakov Lerner wrote: I don't think any single colorscheme defines MatchParen. I haven't seen any single colorscheme that define MatchParen. Do they ? In addition to the astronaut colorscheme, my hicolors helper/colorscheme-editor also supports MatchParen. Available at: http://mysite.veri

Re: regex question

2006-06-06 Thread Charles E Campbell Jr
Eric Arnold wrote: Real close. Turns out I think I want: /\<\%[directory]\{1,}\>/ I suspect you want /\/ but it doesn't seem to recognize \{1,} and without the \< it seems to be matching white space. The problem with \< is that it doesn't seem to allow \<\%[.directory] What I'm a

Re: regex question

2006-06-06 Thread Charles E Campbell Jr
Eric Arnold wrote: Real close. Turns out I think I want: /\<\%[directory]\{1,}\>/ I suspect you want /\/ Regards, Chip Campbell

Re: syntax match question

2006-06-06 Thread Charles E Campbell Jr
Robert Hicks wrote: A word can be anything really, so it would be from "-" to the end. So something like: syn match MyVarOption "\<-\w\+\>" Unless - is part of normal keyword characters (see :he 'iskeyword'), the \<- isn't going to help. Probably you want syn match MyVarOption "\%(\s\|^\

Re: Changing a long list of entries with corresponding index

2006-06-06 Thread Charles E Campbell Jr
Salman Mohsin wrote: I have a long list of city names (more than 2,000 of them) in a file, each name on a separate line. I'd like to modify each line so that: ABERFOYLE . . ZURICH Becomes: cities[0] = "ABERFOYLE" . . cities[2039] = "ZURICH" Is there a way I could issue a command (or some com

Re: Changing a long list of entries with corresponding index

2006-06-07 Thread Charles E Campbell Jr
Gerald Lai wrote: Visincr pads trailing spaces as the number of characters needed to represent the end number increases. What I mean is, for the above example, we will be left with: cities[0 ] = ... . . cities[2039] = ... Could it be made to pad nothing? Or, in addition, even leading

Re: syntax match question

2006-06-07 Thread Charles E Campbell Jr
Robert Hicks wrote: According to the isk help file "-" is a keyword character. I am trying to update the Tcl syntax file a bit. Tk has lots of options that start with the "-" character. I was hoping that the above would make it easy to highlight all of the options without a lot of fuss. Is i

Re: syntax match question

2006-06-07 Thread Charles E Campbell Jr
Robert Hicks wrote: Charles E Campbell Jr wrote: Is it possible to create a keyword group and then do a match with those words and if they are prefixed with a "-" to color them a certain way? A couple of the actual ones would be: -command -menu -fill -pady -padx -tearoff -l

Re: Color for matched patterns

2006-06-07 Thread Charles E Campbell Jr
Fabien Meghazi wrote: I'm correcting my color syntax for terminal but I can't find the syntax name of an highlighted string after searching in vim. Can someone tell me what is the name I'm searching for ? I suggest you try my hicolors plugin, available at: http://vim.sourceforge.net/scripts

Re: Restore cursor to last line not working in Vim 7

2006-06-07 Thread Charles E Campbell Jr
Kevin Old wrote: In version 6.3 (and as far as I can remember in Vim versions) it would return my cursor to the line I was at when I saved a file the next time I opened that file. It now returns me to the beginning of the file in Vim 7. Check out tip http://vim.sourceforge.net/tips/tip.php?t

Re: Restore cursor to last line not working in Vim 7

2006-06-07 Thread Charles E Campbell Jr
Kevin Old wrote: On 6/7/06, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: Check out tip http://vim.sourceforge.net/tips/tip.php?tip_id=80 -- perhaps that'll help. Thanks for this, but I still don't understand. I've set my viminfo in .vimrc to: viminfo='20,&

Re: missing functions in visincr.vim [Was: Re: Changing a long list of entries with corresponding index]

2006-06-12 Thread Charles E Campbell Jr
Charles E Campbell Jr wrote: Gerald Lai wrote: I have a new question: When trying to do :IDMY, I find that I am missing both these functions Jul2Cal() Cal2Jul() AFAIK, there doesn't seem to be any extra required plugin file to run visincr.vim. Is something missing? Yes -- bo

Re: negative match pattern, again

2006-06-12 Thread Charles E Campbell Jr
Yakov Lerner wrote: I need to match lines using g// (not v//); those lines having 'foo' and NOT having /)\s*;/ anywhere in the line. How do I write such regex. I think I need to use \& ^.*foo\&^XXX$ and then put, in place of XXX, the pattern that matches anything not containi

Re: negative match pattern, again

2006-06-12 Thread Charles E Campbell Jr
Gerald Lai wrote: On Mon, 12 Jun 2006, Gerald Lai wrote: On Mon, 12 Jun 2006, Yakov Lerner wrote: On 6/12/06, Tim Chase <[EMAIL PROTECTED]> wrote: > I need to match lines using g// (not v//); those lines having > 'foo' and NOT having /)\s*;/ anywhere in the line. How do I > write such rege

Re: Calling through a function reference with a variable argument list

2006-06-12 Thread Charles E Campbell Jr
Bob Hiestand wrote: On 6/2/06, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: Bob Hiestand wrote: > My question is whether there is a simpler way to pass an unknown > number of arguments from the current function to a function which > accepts a variable-length list of argum

Re: negative match pattern, again

2006-06-12 Thread Charles E Campbell Jr
Gerald Lai wrote: In the same context, should instead be: /^\%(.*bar\)[EMAIL PROTECTED] and both patterns match the same. And so they do! (with your pattern having .* again, which is unnecessary for :g... as you mentioned). Regards, Chip Campbell

Re: Textwidth setting & Directory Listing

2006-06-13 Thread Charles E Campbell Jr
jbw wrote: I noticed a problem that occurs whenever I open a file via the Directory listing. Whenever a file is opened via the directory listing it screws up the textwidth settings for all the buffers. I am not sure if it is the directory listing plugin or vim 7 itself that is causing the proble

Re: negative match pattern, again

2006-06-13 Thread Charles E Campbell Jr
>> It follows the general form of a negative line search for embedded >> : >> >> /^\%(.*[.*][.*]\)[EMAIL PROTECTED] >> >> For example, to match a line that contains "foo" but does not contain >> "bar" between "big" and "tummy": >> >> /\%(.*big.*bar.*tummy\)[EMAIL PROTECTED] > Edward Wong wrote:

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

2006-06-15 Thread Charles E Campbell Jr
Sylvain wrote: Hi ! For example, consider this regexp : s:\(\w\+\)\(\s\+\)\(\w\+\):\3\2\1: It swap 2 first words on a line, if we test it, it's works.. Now I want to make a function to do this job so I put in my .vimrc : map :call Swap2Words() function! Swap2Words() let lineNumber=line("

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

2006-06-15 Thread Charles E Campbell Jr
Sylvain wrote: But I have another little problem, if, always for example, I put let lineString="\r".substitute(lineString, '\(\w\+\)\(\s\+\)\(\w\+\)','\3\2\1', 'g') or change the \r by \n or \r\n or \n\r (always between double quote ;-)) Vim add ^M or ^@ Looks like the same mistake -- if you

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

2006-06-16 Thread Charles E Campbell Jr
Gerald Lai wrote: On Thu, 15 Jun 2006, Sylvain wrote: [snip] I'm using setline() function to replace the line..so I will delete it before I add mine, it's not very elegant so if anyone has a better way, I will take it also :-) [snip] I modified Vimtip#329 some time ago to be able to swap

Re: File browsing in Vim

2006-06-21 Thread Charles E Campbell Jr
Nick Lo wrote: And further to that: This does not happen in the non-gui/terminal version of Vim 7 I installed last night. Nick Actually on a bit more exploration it also seems that if you: - Open that split file/netrw window - :tabnew with a new file in - Go to another OS X application - R

Re: Network access from vim

2006-06-22 Thread Charles E Campbell Jr
Stewart Johnson wrote: How does one get features like TCP/IP commands included in the proposed vim feature list? I wrote some tcp/ip sockets interface stuff for an earlier version of Vim, but Bram didn't care for it, as he was worried about security considerations. Regards, Chip Campbell

Re: unsuscribe

2006-06-22 Thread Charles E Campbell Jr
marcelo wrote: Excuse this OT. But I can't unsubscribe to this list. When I try the ezmlm response says that i'm not in the mailing list. I tried the [EMAIL PROTECTED] and got no response. I need to unsubscribe for a while in this list. Thanks. This problem has come up before! Vim's mailing

Re: Errors when editing via FTP (netrw -- ?)

2006-06-23 Thread Charles E Campbell Jr
Marv Boyes wrote: When editing files via FTP under Mandrake and Windows, I'm getting some strage behavior that I didn't see in the 6.x series. As soon as I connect, I get this error: ***netrw*** This security scheme is not implemented This is a message coming from your ftp client; netrw

Re: Man command not working with Vim 7

2006-06-26 Thread Charles E Campbell Jr
Trent Michael Gamblin wrote: I'm having trouble getting the Man command working with Vim. May I suggest trying out manpageview, which implements (IMHO) an improved :Man command. Its available at: http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs (see "Man Page Viewer") and at

Re: Man command not working with Vim 7

2006-06-26 Thread Charles E Campbell Jr
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? Regards, Chip Campbell

Re: copy highlighted text to a temporary file

2006-06-27 Thread Charles E Campbell Jr
Dimitriy V. Masterov wrote: Thank you very much for your suggestion. I'm still having trouble yanking the highlighted text instead of the line the cursor was on. I was able to do something like this in jEdit using textArea.getSelectedText(). Is there something analogous for Vim? There are thr

Re: Bug in chaining dictionary function calls

2006-07-06 Thread Charles E Campbell Jr
Hari Krishna Dara wrote: I found a problem with chaining function calls through the new dictionary functions. Here is some code demonstrate the problem, if you execute this code, the last line generates an E488 error, where as the previous lines combines (they are equivalent) works fine. I c

Re: set textwidth=80 and c mode

2006-07-06 Thread Charles E Campbell Jr
Paul Drynoff wrote: On Thu, 6 Jul 2006 09:37:55 -0400 :help filetype-plugin This doesn't help. I try this: $ cat .vim/ftplugin/c.vim set textwidth=30 but nothing changes when I open "C file". Only such black magic helps: vim +'set formatoptions=vt' I don't know why? Do you hav

Re: Making vimdiff work

2006-07-07 Thread Charles E Campbell Jr
[EMAIL PROTECTED] wrote: Test diff.exe inside of gvim: :!diff -> opens shell with diff.exe What is your shell quoting character? (:help 'shq') For Windoze, generally it should be a double quote ("). Regards, Chip Campbell

Re: Large stynax files

2006-07-07 Thread Charles E Campbell Jr
Max Dyckhoff wrote: This is a really quick question, in a hope to save myself some potentially wasted time. The tags file for the code base I am using contains approximately 150,000 tags. A very quick parse of the file turns up around 15,000 tags that I would like to colour nicely in syntax - ba

Re: Visual Highlight non-contiguous regions

2006-07-07 Thread Charles E Campbell Jr
stri ker wrote: Is there a way to visually highlight multiple non-adjacent lines at the same time? For example, highlight lines 1, 4, 7, but no other lines. Do you want to use ctrl-v, v, or V? With those, the answer is: (drumroll, please) ... No. However, if you're talking about :set hls,

Re: WG: Launch a browser from url in text

2006-07-07 Thread Charles E Campbell Jr
Stefan Bittner wrote: is it possible to hide ex commands called via a mapping from appearing in the command line? See :help :map-silent Regards, Chip Campbell

Re: Changing spell check colors

2006-07-07 Thread Charles E Campbell Jr
Chris Sutcliffe wrote: 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, an

Re: a question about subsitution....

2006-07-10 Thread Charles E Campbell Jr
Max Dyckhoff wrote: As I understand it, the \< and \> tokens represent the beginning and end of a word. This means that the character immediately after the \< token must be a word character, namely letters, numbers, and underscore (as defined by the iskeyword option). Max ...snip: At some

Re: Remapping - how to get the count

2006-07-10 Thread Charles E Campbell Jr
Andy Wokula wrote: I want to remap Ctrl-A (normal mode) to do something similar with other data, e.g. :nmap ciw=IncRoman(@-) Now if a count is provided this will mess up the text, e.g. 10 does 10ciw... What is a good way to catch the count and make it available to the function call? One

Re: ftplugin not detected

2006-07-14 Thread Charles E Campbell Jr
[EMAIL PROTECTED] wrote: Hi everybody, ViM does not detect my ada ftplugin file in $HOME/.vim/ftplugin/ada.vim, though my runtimepath variable contains ~/.vim . If I source the file manually, my stuff does work. Has anyone an idea of what's wrong? Your .vimrc needs filetype plugin indent

Re: open Explore in new tab

2006-07-14 Thread Charles E Campbell Jr
Cesar Romani wrote: How to open a new tab with Explore? I've read about ":tab {cmd}" but it works only when cmd is "split" or "help". Anyway I can open a new tab with :tabe or :tabnew and then I can run :Explore on it but I wanted to do it in one step. Is it possible? Please try netrw v102i,

Re: netrw with hiding

2006-07-14 Thread Charles E Campbell Jr
Bill McCarthy wrote: Hello Vim List, Running 7.0.39 on Win XP Pro SP 2, I am having trouble with the netrw (v98) hiding feature. Viewing a directory contains some '.xls' files, I hit and enter '\.xls' (without the quotes). Using the 'a' toggle, I either see all files or no files (with Showin

Re: netrw with hiding

2006-07-17 Thread Charles E Campbell Jr
Bill McCarthy wrote: (concerning updating to netrw v102i) After some struggling to get the .vba file, it installed nicely in my vimfiles/ directory. It didn't work at all until I removed the v98 distribution files: [c:\vim\vim70]zip -rm netrw98 . -i *netrw* Yes, that's why I said to b

Re: R: open Explore in new tab

2006-07-17 Thread Charles E Campbell Jr
Cesar Romani wrote: Please try netrw v102i, available at my website: http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs as "Network Oriented Reading, Writing, and Browsing" It supports the :Texplore command. Be sure to remove all netrw components from /usr/local/share/vim/vim70/plu

Re: ftplugin not detected

2006-07-17 Thread Charles E Campbell Jr
[EMAIL PROTECTED] wrote: When adding the "filetype plugin on" to my .vimrc file, my ftplugin file is indeed loaded when I edit *.adb files (Ada). But it seems other stuff does not work in that case. I use vim 6.3.82. So I made the following test: with no local filetype.vim file and no file in .v

Re: ftplugin not detected

2006-07-18 Thread Charles E Campbell Jr
[EMAIL PROTECTED] wrote: Yes indeed. When processing with my test there was a local $HOME/.vimrc file...snip In the second case, the Ctrl-] shortcut echos ":call JumpToTag_ada('')" on the command line. The :verbose map echos: "n *@:call JumpToTag_ada('')" on the command line. JumpToTa

Re: posting to vim

2006-07-18 Thread Charles E Campbell Jr
Jason Weber wrote: As for the spam folder, I meant does anyone admin'ing the list look through the rejects to see if anyone is making honest mistakes? Imagining the mountains of spam that must come through, I'm guessing no. That's ok. As I understand things, vim.sf.net is minimally mainta

Re: Using :g to delete patterns that span multiple lines

2006-07-19 Thread Charles E Campbell Jr
Noah Spurrier wrote: I used this pattern to select sections of test that belong to me when CVS or SVN generates a merge conflict. This pattern works fine: /^<<<\_.\{-}===.*$/ I have search highlighting turned on and I can see the multiline patterns get highlighted as expected. ...

Re: Scrolling relative to cursor

2006-07-19 Thread Charles E Campbell Jr
[EMAIL PROTECTED] wrote: Hi, Given are two loaded buffers. When I switch beween them by :bn/:bp or :n#, the window is redrawn similar to z. z. Redraw, line [count] at center of window (default cursor line). Put cursor at first non-blank in the

Re: Other European languages on a US keyboard

2006-07-24 Thread Charles E Campbell Jr
cga2000 wrote: I sometimes need to write text in other languages such as French, Spanish and occasionally German or Italian. ..snip.. I would like to do this in Vim. Unfortunately I only have a US keyboard. Have you considered EasyAccents.vim? http://vim.sourceforge.net/scripts/script.p

Re: Other European languages on a US keyboard

2006-07-24 Thread Charles E Campbell Jr
w do I set g:EasyAccents_VowelFirst to zero? If this were better posted publicly (because useful to others), then I have no problem with doing that. Thanks, Russ Charles E Campbell Jr wrote: Have you considered EasyAccents.vim? http://vim.sourceforge.net/scripts/script.php?script_id=451 Bring up

Re: Problem starting up vim: "No mapping found"

2006-07-24 Thread Charles E Campbell Jr
Tobias Herp wrote: My vim version (SuSE Linux 9.1): VIM - Vi IMproved 6.2 (2003 Jun 1, compiled Apr 6 2004 03:03:03) Included patches: 1-8, 10-12, 14-18, 20-21, 25-32, 34-35, 37, 40, 43-46, 48-55, 58-59, 61-65, 67-89, 91-98, 100-102, 104-106, 108-114, 117, 119-120, 122, 126, 129, 133, 135-137

  1   2   3   4   >