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: 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 Function

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: 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

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 looking

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 scripts I've

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

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

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:

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

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: not opening correct syntax file for .prg files

2006-05-16 Thread Charles E Campbell Jr
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 endif let did_load_myfiletypes= 1

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

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

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

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

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

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

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

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

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: 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

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 chance

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 have

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: 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 /\d\%[irectory]\/ 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

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

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

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 it

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:

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

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,50 and it doesn't take me back

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

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 regex.

Re: negative match pattern, again

2006-06-12 Thread Charles E Campbell Jr
Gerald Lai wrote: In the same context, pat1 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

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 search: /^\%(.*[limit0.*]search[.*limit1]\)[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-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: 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
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: 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

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 have

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: 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,

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 c-a ciwc-r=IncRoman(@-)cresc Now if a count is provided this will mess up the text, e.g. 10c-a does 10ciw... What is a good way to catch the count and make it available to the function

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

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 c-h and enter '\.xls' (without the quotes). Using the 'a' toggle, I either see all files or no files (with

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

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

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

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 C-] echos: n C-] *@:call JumpToTag_ada('')CR on the command line.

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

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. ...snip

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?

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,

Re: Mac OS 10.3 - v7.0 - netrwPlugin.vim

2006-07-24 Thread Charles E Campbell Jr
Vim List wrote: I have not upgraded for some time, so today I did. I read a thread here about the new way the split vertical file explorer and the netrwPlugin.vim plugin. I also got used to the way the old directory and file list would open a file when clicked in the main window. The latest

Re: a question related to substitution using regular expression

2006-07-25 Thread Charles E Campbell Jr
Xiaoshen Li wrote: Dear All, My file is like the following: data_1.dat pre= -1908.77 post= -48977.33 diff= -448.947 data_2.dat pre= -444.333 post= -333.545 diff= -777.333 . . I hope to find out a regular expression subtitution commad to delete everything after dat to get a file like:

Re: debugging with breakadd

2006-07-27 Thread Charles E Campbell Jr
Benji Fisher wrote: On Tue, Jul 25, 2006 at 11:14:09AM -0400, Charles E Campbell Jr wrote: Hello! I was trying :breakadd file 484 */visincr.vim and got Breakpoint in /home/cec/.vim/autoload/visincr.vim line 484 Entering Debug mode. Type cont to continue. /home/cec/.vim/autoload

Re: debugging with breakadd

2006-07-27 Thread Charles E Campbell Jr
Hari Krishna Dara wrote: I have not observed this before, but I don't usually put file breakpoints. Couple of ideas to try are: - Try the new :breakadd here command where you want to stop. It might work just fine. - Generate an exception at this line and observe what line number Vim will

Re: creating a new file in the Explorer

2006-07-28 Thread Charles E Campbell Jr
Roel Vanhout wrote: In the vim Explorer (:Explore), I can create a new directory by pressing 'd' and typing the directoryname. Is there something similar for creating a new, empty file? I've looked through the documentation but couldn't find anything. I now press 'c' and type :new filename,

Re: creating a new file in the Explorer

2006-07-28 Thread Charles E Campbell Jr
Carlos Beltran wrote: Uhmm. It would be nice also to be able to rename files. :he netrw-R Regards, Chip Campbell

Re: AsNeeded?

2006-07-31 Thread Charles E Campbell Jr
Bill McCarthy wrote: Chip, I tried again with just AsNeeded and taglist in my vimfiles\plugin and vimfiles\doc - otherwise an empty vimfiles tree - and fairly minimalist _vimrc and _gvimrc (see below my sig). I opened an edit session on a small project with 25 .c or .h files: gvim *.c

Re: Automatic updating file content

2006-08-02 Thread Charles E Campbell Jr
Peter Hodge wrote: Sorry, it seems I was a little naive with that autocommand I showed you, it doesn't work because CursorHold won't trigger again until you press a key. After a little experimentation, I think you would best add something like this CursorHold will fire (once) some time has

Re: netrw v103b

2006-08-02 Thread Charles E Campbell Jr
Hugo Ahlenius wrote: The http prefix should tell that this is a URL that should be retrieved using the http protocol and nothing else. A URL with a trailing slash is still a fully valid URL, and doesn't not signify directories or anything like that on the www. I would really like netrw to just

Re: Sorting columns in a file

2006-08-03 Thread Charles E Campbell Jr
Eric Leenman wrote: Hi, I have file which contains hexadecimal numbers like below: 04F --- 05F --- 052 --- 188 --- 2D4 --- 173 --- 040 --- 18D 051 --- 040 --- 05F --- 1CA --- 2E8 --- 14F --- 040 --- 1E2 051 --- 040 --- 069 --- 1B9 --- 2D7 --- 15E ---

Re: How to scroll up and down without changing horizontal pos

2006-08-03 Thread Charles E Campbell Jr
Eric Leenman wrote: I'm using page-up and page-down to scroll. Also ctrl-home and ctrl-end. This moves the cursor to the beginning of the line. How can this be avoided. I need to the cursor to stay where it is, as the lines are 1000+ characters long Hello! Perhaps:set ve=all nosol will

Re: My apologies to Chip Campbell

2006-08-03 Thread Charles E Campbell Jr
Tien Pham wrote: I am terribly sorry that I misspelled your name Chip. My apologies No problem! You should see what people do to my last name Chip Campbell

Re: syntax highlighting problem with vim7 for multiline macro in C

2006-08-03 Thread Charles E Campbell Jr
Srinivas Rao. M wrote: I am facing this syntax highlighting problem here for the following code segment. The problem is if we put this code in a file having .c extension. The same macro color is shown for the main() function also. Does anyone else faced this problem with vim7 ? regards, s

Re: Select prev visual block + 5 hor pos more

2006-08-03 Thread Charles E Campbell Jr
Eric Leenman wrote: With gv you can re-select the previous visual block. Is it possible to give a horizontal shift with it? Like + or - 5? Do you mean to move a selected block horizontally, or to have the same visual block selection geometry shift? Regards, Chip Campbell

Re: Search and Replace with a Regular Expression

2006-08-03 Thread Charles E Campbell Jr
Marv Boyes wrote: For example, let's say I have some dates that look like this: 7-30-05 12-5-2006 10-2-06 What I'd like to end up with is this... 07/30/2005 12/05/2006 10/02/2006 ...without, of course, having to re-type every single one

Re: Search and Replace with a Regular Expression

2006-08-03 Thread Charles E Campbell Jr
martin kraegeloh wrote: part of a good job is to choose the right tool. use perl for this kind of task. use vim to edit the perl script ;-) and search cpan before creating your own solutions! Two problems with this approach: * Perl's regular expressions don't appear to be much more

Re: Search pattern - without keywords

2006-08-04 Thread Charles E Campbell Jr
SHANKAR R-R66203 wrote: I want to match all the words in a file which are not keywords. In a verilog code, I want to match all the signal names execpt for the keywords. /\w\+ finds all the words. But How do I make vim understand, not to pick up any keyword. You may find LogiPat

Re: editexisting.vim

2006-08-08 Thread Charles E Campbell Jr
Alexander 'boesi' Bösecke wrote: I am using gvim 7 and the plugin editexisting.vim on WinXP. I have several problems with this plugin and I'm hoping you can help me. 1. When I'm opening a file with the command line option '+312', the file will be opened with the cursor at line 312. But when

Re: window split from tag?

2006-08-08 Thread Charles E Campbell Jr
Lev Lvovsky wrote: When following a tag through to the file where it's defined, is there any way to get vim to keep the existing window open, and simply open (vertically and/or horizontally) a new window as opposed to replacing the existing one? With cursor atop the word: ctrl-w ] From

Re: Copy a line of text without the LF

2006-08-08 Thread Charles E Campbell Jr
Jürgen Krämer wrote: Meino Christian Cramer schrieb: I am using vim 7.0.42 on a Linux system. I want copy a complete line of text *without+ the final LF at the end, so it is possible to insert it elsewhere in the midth of text. [snip] just use y$ For the entire line, try

Re: Tab bar

2006-08-09 Thread Charles E Campbell Jr
Bart van Kuik wrote: Can anyone tell me whether I can customize the tab bar in vim 7.0 (vim, not gvim). Colours, etc. The hicolors.vim plugin, available at http://vim.sourceforge.net/scripts/script.php?script_id=1081 and at http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs as

Re: fast file locating plugin (like ido.el in emacs)

2006-08-09 Thread Charles E Campbell Jr
Hari Krishna Dara wrote: On Wed, 9 Aug 2006 at 1:02am, Eddy Zhao wrote: Hi Yakov, Thanks for the prompt help. I tried the lookupfile plugin, looks great at first glance, can you throw light on the below problems I encountered - do I always have to generate tagfile for every directory i

Re: can we set vim to use magic=very ??

2006-08-10 Thread Charles E Campbell Jr
martin kraegeloh wrote: rtfm didn't help ... I'd like to *always* make my regexes behave like perl, but I find no way to set it as a default. will I have to always use \v ?? I tend to think that if I can't get vim to do something it's because I don't know why, not because it is not possible

Re: Show/Hide Split Windows

2006-08-10 Thread Charles E Campbell Jr
Steve Amerige wrote: The ability to split windows is an absolute essential; however, there are times when I want to focus on one buffer in one window and hide all of the other windows. But, I don't know of any show/hide feature that hides all windows but the current window. As a

Re: Tips for advance use of Vim

2006-08-11 Thread Charles E Campbell Jr
Tom Purl wrote: The big downside of a wiki is administrative costs. It would probably be slightly more difficult to fight spam, and you would need a heck of a lot more moderators. And the spam problem has already afflicted the tips, at the cost of using moderators to elide them. I can

Re: Color change of :set cul or ctrl-V

2006-08-11 Thread Charles E Campbell Jr
striker wrote: I am using colorscheme vo_dark. When I :set cul or use visual highlighting, the color for the highlight is light gray and makes the highlighted text very difficult to see. ..snip.. My question is this: What do I need to look for and change in order to implement a new

Re: Source directory

2006-08-14 Thread Charles E Campbell Jr
4mir Salihefendic wrote: Is there a neat way to source vim files in a directory? Currently I use following solution that relies on ls - it's not feasible on other than Unix systems. First, you could use glob() instead of system()+ls. Another idea: you could temporarily change the runtimepath

Re: Source directory

2006-08-15 Thread Charles E Campbell Jr
Hari Krishna Dara wrote: On Mon, 14 Aug 2006 at 9:43am, Charles E Campbell Jr wrote: 4mir Salihefendic wrote: Is there a neat way to source vim files in a directory? Currently I use following solution that relies on ls - it's not feasible on other than Unix systems. First

Re: --with-features=TYPE

2006-08-15 Thread Charles E Campbell Jr
Robert Hicks wrote: I see in the configure file that --with-features takes tiny, small, normal, big or huge (default: normal). Is there some place I can look to see what those options provide? Perhaps my webpage: http://mysite.verizon.net/astronaut/vim/vimfeat.html will be of help.

Re: Creating a syntax file with folding

2006-08-15 Thread Charles E Campbell Jr
Marius Roets wrote: I am trying to create a syntax file with folding. However after pouring over the documentation for hours, I seem to be stuck. I want to, for instance, fold a begin/end block. I have created a simple syntax file with just this line: syntax region xBlock start=begin end=end

Re: Folding and the Desert color scheme

2006-08-16 Thread Charles E Campbell Jr
Ben lemasurier wrote: Hey everyone, I just setup folding and it works great however when using my favorite color scheme (desert) the fold header (+-- 70 lines: class ClassName ) is black, which makes it invisible on my terminal. Is there a way to fix this without using a

Re: tabedit readonly

2006-08-18 Thread Charles E Campbell Jr
SHANKAR R-R66203 wrote: How do I open a new file in a new tab, but in the read only mode. :tabedit -R file_name Does not seem to work. Why would you think it would? I see no mention of a -R modifier for tabedit. Here's the help for tabedit: :tabe[dit]

Re: an indentation question

2006-08-18 Thread Charles E Campbell Jr
A.J.Mechelynck wrote: P.S. I'm no Vim official, just a user like you. Next time, please use reply to all rather than reply to sender so the list gets it and, if e.g. I've gone to bed, someone else can reply. But, Anthony -- you get paid the top salary available for Vim mailing list

Re: Search all text files in a directory for text

2006-08-18 Thread Charles E Campbell Jr
Gary Johnson wrote: On 2006-08-18, Charles E Campbell Jr [EMAIL PROTECTED] wrote: Read :help netrw-starstarpat : :Explore **//class foo for example. You'll be presented with an netrw browser display in each subdirectory with matching files and the cursor on the first file

Re: Search all text files in a directory for text

2006-08-18 Thread Charles E Campbell Jr
Gary Johnson wrote: Thanks. That removes the error and gives me a list of files, but included in that list are non-*.c names such as INSTALL Makefile README.txt :Explore **/*.c doesn't give a list of just *.c files. Instead, it opens a browser listing of every directory

  1   2   3   4   >