Re: Vim and email quoting

2007-05-17 Thread Suresh Govindachar
Benjamin Esham wrote: fREW wrote: On 5/12/07, Troy Piggins [EMAIL PROTECTED] wrote: * Timothy Knox is quoted my replies are inline below : I use vim to write my outgoing email, and for the most part, it rocks. Thanks to all the folks who have written modules and provided tips

RE: [Announcement] Subversion repository location changed

2007-05-08 Thread Suresh Govindachar
Edward L. Fox announced: Hi Vimmers, The directories structure of the Subversion repository has been changed. Please use this command to checkout the latest sources: svn co https://vim.svn.sourceforge.net/svnroot/vim/branches/vim7.1 vim7 If you had checked out a

RE: [Announcement] Subversion repository location changed

2007-05-08 Thread Suresh Govindachar
Edward L. Fox announced: Hi Vimmers, The directories structure of the Subversion repository has been changed. Please use this command to checkout the latest sources: svn co https://vim.svn.sourceforge.net/svnroot/vim/branches/vim7.1 vim7 If you had checked out a

Re: Compiling vim in mingw.

2007-05-07 Thread Suresh Govindachar
Bram Moolenaar wrote: Markus Trenkwalder wrote: checked out vim-7.1a.001 today from svn (#263) and tried to compile it with mingw-gcc and got the following error: 8 $ make -f Make_ming.mak gcc -c -Iproto -DWIN32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400

RE: autocomplete on the command line from words in buffers

2007-05-07 Thread Suresh Govindachar
See help on command-completion-custom, bufnr(), bufnr($), bufname(), args, f-args and q-args. Doubt if you would need to use getLineCmd(). --Suresh -Original Message- From: Dan Fabrizio [mailto:[EMAIL PROTECTED] Sent: Monday, May 07, 2007 5:29 PM To: 'Andy Wokula'

RE: savevers plugin

2007-05-03 Thread Suresh Govindachar
OP wants to save 4 copies only but with true version numbers (rather than relative version numbers of 0, 1, 2, 3). --Suresh -Original Message- From: Yakov Lerner [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 11:39 PM To: Waters, Bill Cc: vim@vim.org Subject: Re: savevers

RE: Best way to maintain a 'library' of recorded keystrokes?

2007-04-27 Thread Suresh Govindachar
Trebor Sreyb aka Bob asked What is the best way to maintain a set of previously recorded keystroke sequences? I constantly make use of the record feature within one vi session. But some of the sequences I'd like to preserve. I realize they get saved in a named register, but that

[OT] Toolbars in Windows

2007-04-22 Thread Suresh Govindachar
In the thread titled VimWin, Gary Johnson recently wrote: [snip] Plus, KDE allows me to put menus of often-used programs in the task bar. The Windows Quick Launch menu is similar, but there's only one of them so it quickly becomes cluttered and no longer quick to access.

RE: VIM doesn't need new features?!?!

2007-04-15 Thread Suresh Govindachar
Peter Michaux wrote on April 15, 2007 I like VIM. I want to use VIM as my everyday editor. I even spent a frustrating week trying to determine if VIM could replace Textmate as my main editor. VIM is very good for working with a single file but the concept of a project is not

RE: command to delete just whitespace

2007-04-15 Thread Suresh Govindachar
ok, let me clarify a bit more. i just need to delete the white space between the cursor and the next character. sorry. sk In normal mode, just do dw (without quotes). --Suresh

RE: VimTips - Google Wiki Usefulness

2007-02-25 Thread Suresh Govindachar
Tom Purl I do think that we can do the addition of new people who want to be able to edit the wiki manually. That should also filter out the spammers. There is only a delay between wanting to edit the wiki and being able to do it the first time. Not perfect, but it's something

Updating $VIMRUNTIME on Windows

2007-01-28 Thread Suresh Govindachar
Bill McCarthy recently wrote to vim-dev and others: Runtime files are kept fairly well updated at the Vim FTP site. You can update those files from there. Scripts have been provided for 'nix and Windows to update local files. Only script I found on www.vim.org to help

Avoiding a temporary global variable

2007-01-28 Thread Suresh Govindachar
Recently, Tim Chase wrote in the thread replace with a number sequence: ...8--- Things get a little trickier if one wants to do the replacement in a single line of multiple instances... opInstance(1), opInstance(2), opInstance(3) One has to write a

Writeup on mkdownload, getunix.aap and getdos.aap

2007-01-28 Thread Suresh Govindachar
Hello, Is there a write-up describing what :mkdownload does and describing the sturcture of the following files? ftp.nluug.nl/vol/1/vim/runtime/getunix.aap ftp.nluug.nl/vol/1/vim/runtime/getdos.aap I suspect that knowing the answer will enable me to write a perl script to

RE: Returning perl hashes

2007-01-26 Thread Suresh Govindachar
David.Fishburn asked Vim 7 WinXP SP2 Is it possible to return a Perl hash as a Vim List or Dictionary? I can say that Vim's support for scripting in perl is such that whatever you are trying to do can be done. However, ... I am pretty new to Perl but need

RE: delete buffer in tab but retain empty tab

2007-01-24 Thread Suresh Govindachar
A.J.Mechelynck wrote: Vinay Doma wrote: I'd like to be able to delete a buffer in a tab, but still retain the tab. Right now, Vim just closes the tab. Is there any way I can configure Vim to do this? Example, vim file1.txt :tabe file2.txt :bd (closes

% jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Suresh Govindachar
Hello, Version: VIM - Vi IMproved 7.0 (2006 May 7, compiled Dec 7 2006 07:33:35) MS-Windows 32 bit GUI version with OLE support Included patches: 1-178 Huge version with GUI. Start gvim via command: c:\opt\vim\vim70\gvim.exe --noplugin -u NONE

RE: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Suresh Govindachar
A.J.Mechelynck wrote Suresh Govindachar wrote: Hello, Version: VIM - Vi IMproved 7.0 (2006 May 7, compiled Dec 7 2006 07:33:35) MS-Windows 32 bit GUI version with OLE support Included patches: 1-178 Huge version with GUI. Start gvim

RE: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Suresh Govindachar
Jürgen Krämer wrote: Suresh Govindachar wrote: A.J.Mechelynck wrote Suresh Govindachar wrote: Start gvim via command: c:\opt\vim\vim70\gvim.exe --noplugin -u NONE -U NONE :saveas boo.c :set filetype=c Enter following text: if(1

Re: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Suresh Govindachar
Jürgen Krämer wrote: Suresh Govindachar wrote: Jürgen Krämer wrote: I don't see a place in the help files where % is documented to skip comments. You can only force it to skip strings by removing % from cpoptions (see :help cpo-%). I made two mistakes: mis-remembered

RE: Perl plugin example

2007-01-05 Thread Suresh Govindachar
David Fishburn indicated that: [has written many plugins in VimL; wants to write on in perl; looking for perl/vim plugin examples] The best tip for getting started with perl/vim is in the Additional Notes section dated October 29, 2001 23:02 for a tip by Benoit Cerrin:

Re: Vim Scripting - passing parameters to/from Perl code using Perl interface

2007-01-05 Thread Suresh Govindachar
Marcin Komorowski asked a long time ago around Thursday, September 22, 2005 6:24 PM Vim provides a very nice way of executing Perl code right within Vim scripts, but I have been trying to find a way to pass parameters to this code, and return parameters from it. I have been

RE: Bug in 7.0.178? autocmd BufReadCmd * DoSomething expand(afile) fails if the filename contains %

2007-01-02 Thread Suresh Govindachar
Thomas sent to vim-dev@vim.org I have the following line in my source: exec 'autocmd BufReadCmd '. pattern .' call '. rcmd .'(1, expand(afile), , %)' This fails if the filename contains % which is replaced with expand('%'). I can't seem to escape the % at any point,

RE: Wrapping a selection in tags

2006-12-31 Thread Suresh Govindachar
Rory Campbell-Lange wrote: I'd like to: 1. Select some text 2. Hit a key sequence such as ;t 3. Be prompted for a tag (I'll input something like 'b' or 'h1') 4. The text selection will be wrapped in -- say -- btext selection/b What

RE: [Patch] Adapted :buffer listing

2006-12-27 Thread Suresh Govindachar
Simon Pamies Sent: Wednesday, December 27, 2006 3:19 AM * Simon Pamies wrote, On 27.12.2006 11:50 Uhr: Hi All, I had some problems using the :buffer listing. If you have many files (read 30+) open, the :buffer list is cluttered up with I usually have over 100 buffers, and

RE: [Patch] Adapted :buffer listing

2006-12-27 Thread Suresh Govindachar
Simon Pamies Sent: Wednesday, December 27, 2006 3:49 AM * Suresh Govindachar wrote, On 27.12.2006 12:35 Uhr: Simon Pamies Sent: Wednesday, December 27, 2006 3:19 AM * Simon Pamies wrote, On 27.12.2006 11:50 Uhr: [...] try the following: :b bach TAB /home/spamies/work

RE: soft line breaks + limited width display?

2006-12-07 Thread Suresh Govindachar
A. S. Budden Sent on December 07, 2006: On 07/12/06, Karsten Gerloff [EMAIL PROTECTED] wrote: On Wed, Dec 06, 2006 at 02:32:12PM +, A. S. Budden wrote: On 06/12/06, Karsten Gerloff [EMAIL PROTECTED] wrote: Hi, I'm currently writing a lot of text in vim that will later

RE: Your best text/code formatting trick

2006-11-12 Thread Suresh Govindachar
Kim Schulz asked on November 12, 2006 12:30 PM Hi, I am currently looking into different tricks for formatting text, code, etc. in Vim. I guess most users know the format- paragraph command gqq or the reindent entire code 1G=G But are there any other neat tricks - which

Why cabbrev rather than cmap?

2006-10-13 Thread Suresh Govindachar
In another thread, Yakov Lerner wrote: 4) You can use tip http://www.vim.org/tips/tip.php?tip_id=1285 to remap :w to :up : cabbrev w c-R=(getcmdtype()==':' getcmdpos()==1 ? 'up' : 'w')cr Why cabbrev rather than cmap? --Suresh

RE: Why not commit runtime files?

2006-10-12 Thread Suresh Govindachar
A.J.Mechelynck wrote: Suresh Govindachar wrote: Hello, I have just found out that while the runtime directory is periodically updated on the ftp site, it is not committed to the cvs repository. What is the reason for not committing runtime files into cvs? I see

Version of netrw in directory listing and is svn picking up runtime files?

2006-10-11 Thread Suresh Govindachar
Hello, I just downloaded sources from svn and built gvim: :version VIM - Vi IMproved 7.0 (2006 May 7, compiled Oct 11 2006 20:40:37) MS-Windows 32 bit GUI version with OLE support Included patches: 1-131 1) First line of :help netrw is: *pi_netrw.txt* For Vim version 7.0.

Setting up netrw

2006-10-09 Thread Suresh Govindachar
Hello, At present, I copy remote directories using the following one-line command: c:\opt\putty\PSCP.EXE -r -v -l the_user -pw the_password 111.11.11.111:/home/suresh/examples/mcf/vmul . How do I set-up netrw to edit a file such as

RE: Setting up netrw

2006-10-09 Thread Suresh Govindachar
Yakov Lerner Sent: Monday, October 09, 2006 12:32 PM On 10/9/06, Suresh Govindachar [EMAIL PROTECTED] wrote: Hello, At present, I copy remote directories using the following one-line command: c:\opt\putty\PSCP.EXE -r -v -l the_user -pw the_password

RE: break very long line into short one with one g-command

2006-10-03 Thread Suresh Govindachar
I have a line from about 40.000 characters. I want to break this up into lines which are 80 charactes long. In a previous thread, a few months ago this was possible with one g-command. I did use it then also, but can't recall it anymore. I presume you must be

RE: Take Two: Pasteboard sans HTML

2006-10-01 Thread Suresh Govindachar
Calvin Waterbury asked on Sunday, October 01, 2006 3:04 PM for a pasteboard feature. This is a feature that automatically captures clipboard content to a text file that has been designated as the Pasteboard. Perhaps an example would clarify. If I had this feature implimented in

RE: Outline feature

2006-10-01 Thread Suresh Govindachar
Calvin Waterbury asked on Sunday, October 01, 2006 3:00 PM about an Outline feature: The Outline feature is mainly intended to produce a much larger work, like a book**. The format that is in my present editor has a gutter on the side which has listed the headings of the

RE: No way to color-region(s) of text -- highlighter mode.

2006-08-04 Thread Suresh Govindachar
François Pinard wrote: [Mikolaj Machowski] [Mohsin]: Vim only has syntax coloring with regexps. Emacs has functions to apply properties to text blocks, and I was hoping vim has something comparable. Of course it is possible: :help /\%l :help /\%c Humph, not really! Text

RE: [FAO]: Tim Chase: :g/^/+,/^[EMAIL PROTECTED]/-1! par 72q (formatting email).

2006-06-20 Thread Suresh Govindachar
Thomas Adam wrote: | Hello All, | | (Tim -- apologise for the broadcast announcement, but you were | the original person who gave me this solution). | | Some time ago, I asked a question on this list about | reformatting lines of text (lines in an email reply). Tim Chase | was

RE: File browsing in Vim

2006-06-20 Thread Suresh Govindachar
If your main use of Ex is to find a file to open, there are more direct ways to do so. I don't recall all the options I have set, but I can type :find (with space) and hit tab to see the list of files in the present directory. If I know there is an 'o' in the file's name, I can type :find

RE: svn, cvs

2006-06-18 Thread Suresh Govindachar
: Suresh Govindachar wrote: Since svn sources haven't been updated, The content in subversion repository is the same with the CVS repository, at most 1 day later. It doesn't update only because Bram had been out for holiday since last month. I thought that as of yesterday (when I

svn, cvs

2006-06-17 Thread Suresh Govindachar
Hello, Since svn sources haven't been updated, and since they differs from the cvs sources by CR/LF in some files, I tried cvs. However: The following: C:\home\suresh\develop\vim\cvsc:\opt\cvs\cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/vim checkout vim7 resulted in:

RE: svn, cvs

2006-06-17 Thread Suresh Govindachar
Based on Sir Raorn's reply, I tried: C:\home\suresh\develop\vim\cvsc:\opt\cvs\cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/vim checkout vim7 which did lots of stuff and ended with: U vim7/src/xxd/xxd.c cvs checkout: dying gasps from vim.cvs.sourceforge.net unexpected Repeating

RE: svn, cvs

2006-06-17 Thread Suresh Govindachar
A.J.Mechelynck wrote: Suresh Govindachar wrote: Based on Sir Raorn's reply, I tried: C:\home\suresh\develop\vim\cvsc:\opt\cvs\cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/vim checkout vim7 which did lots of stuff and ended with: U vim7/src/xxd/xxd.c cvs

Updates to netrw

2006-06-05 Thread Suresh Govindachar
Dr. Chip wrote: I've uploaded netrw v100o to my website (http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs - see Network Oriented Reading, Writing, and Browsing). Will Bram's updates to the runtime have the latest version? --Suresh

CDT and Vim

2006-05-28 Thread Suresh Govindachar
Hello, Is anyone using Vim with the C/C++ Development Environment (CDT) http://www.eclipse.org/cdt/ ? If so, please indicate how its done. Thanks, --Suresh

Re: Can not run any command with ! in W2K

2006-05-27 Thread Suresh Govindachar
Juan Lanus wrote: On 5/27/06, Suresh Govindachar wrote: Start gvim using the command p:\ath\to\gvim.exe -u NONE -U NONE --noplugin In the resulting gvim, do :set shellcmdflag=3D/k Then :!ver The name of the window is D:\vim\vim70\vimrun.exe

RE: Can not run any command with ! in W2K

2006-05-26 Thread Suresh Govindachar
Juan Lanus wrote: ... when I use the :! syntax a DOS window containing the error shows. Issue the : !dir and in the resulting DOS window, issue the path command. The output will be what this _particular_ dos window has for the path environment variable. Then directly open a

Vim for cingular 8125 running Windows mobile 5

2006-05-25 Thread Suresh Govindachar
Hello, Is there a vim for the Cingular 8125 running windows mobile 5 http://www.cingular.com/8125_consumer ? Thanks, --Suresh

RE: Vertical selection

2006-05-19 Thread Suresh Govindachar
Robert Cussons wrote: ... as Benji said, pressing '$' followed by 'A' whilst in blockwise visual mode will insert at the end of each line. Sorry if no-one else cares:-) Well, I knew about I and A, but $A was news to me! Thanks. --Suresh

Visual Block: $ vs. ^ inconsistency?

2006-05-19 Thread Suresh Govindachar
Hello, In visual block mode (C-V) one can get jagged right edges by hitting $. But hitting ^ does not result in jagged left edges. Why the inconsistency? Is it something in my set-up? Thanks, --Suresh

RE: Visual Block: $ vs. ^ inconsistency?

2006-05-19 Thread Suresh Govindachar
James Vega wrote: On Fri, May 19, 2006 at 07:47:41AM -0700, Suresh Govindachar wrote: In visual block mode (C-V) one can get jagged right edges by hitting $. But hitting ^ does not result in jagged left edges. Why the inconsistency? Is it something in my set-up

RE: Extending Vim7 with plugins

2006-05-19 Thread Suresh Govindachar
Consider the following from Meino Christian Cramer: Suppose your are starting to learn vim. You have learned to edit text basically and to do some tricks to impress your friends of the World of Notepad category. So nice so far. Now you want to delete all lines

RE: Multiline file appearing in one line under Vim

2006-05-17 Thread Suresh Govindachar
On Wed, 17 May 2006, Baha-Eddine MOKADEM wrote: 2006/5/17, Georg Dahn [EMAIL PROTECTED]: My guess is: notepad breaks at column 1024. In notepad the first two lines of your file have exact 1024 characters. This could be a notepad limitation. Is there a way to make profit of this kind of

RE: avoid :source error with 7.0 script in 6.x

2006-05-17 Thread Suresh Govindachar
Steve Hall wrote: Is there a way to construct the code below to avoid the E193 :endfunction not inside a function error in Vim 6.4 when loading a Vim 7.0 script? This for-endfor construct produces the error: function! MyFunct() if v:version 700 return endif

RE: Tables.

2006-05-17 Thread Suresh Govindachar
cga2000 wrote: But I was not thinking of these tab stops.. more in the line of typewriter stuff, I guess. Creating an imap involving the following operations might do the job: ---set up the typewriter style tab-stops--- let twtabs=[3, 5, 10, 28, 40, 58] ---then imap

RE: colorscheme conversion script?

2006-05-15 Thread Suresh Govindachar
Are you thinking of Gautam's xterm16 http://www.vim.org/scripts/script.php?script_id=795 ? It comes with lots of files: cpalette.pl tags xterm16.ct xterm16.schema xterm16.vim xterm16.txt Gautam, is your colorscheme useful for vim under cmd.exe and

[OT] Swapping keys

2006-05-15 Thread Suresh Govindachar
A.J.Mechelynck wrote: Gerald Lai wrote: On Mon, 15 May 2006, Robert MannI wrote: [snip] Now my question, this is the current way I'm doing this: - Remap for DVORAK noremap t j noremap j t noremap n k noremap k n noremap s l

RE: not opening correct syntax file for .prg files

2006-05-15 Thread Suresh Govindachar
On Mon, May 15, 2006 at 12:01:35PM -0500, Donal wrote: Here is my vim\myfiletypes.vim myfiletypes.vim augroup filetype FoxPro au! BufRead,BufNewFile *.prg,*.mpr,*.sprset filetype=foxpro Cold Fusion au BufNewFile,BufRead *.cfm,*.cfi,*.cfc setf cf au! BufRead,BufNewFile

RE: Column Selection

2006-05-12 Thread Suresh Govindachar
Elias Chatzigeorgiou indicates that while he can imap c-p as follows: imap C-p c-ogc-h he is unable to imap a-c What is the result of doing :verbose imap a-c If that doesn't give a clue, it might be something with your keyboard. --Suresh

RE: Set color block of text

2006-05-12 Thread Suresh Govindachar
Richard Emberson asked: Is there a way in a vim script to set the color (fg/bg) to a block of text? say from line 12 to line 15 and from column 4 to column 9. The text in this block can be anything, not syntax. The answer is: Yes: if the line and column numbers are

RE: Bug i_CTRL-X s and arrow

2006-05-11 Thread Suresh Govindachar
{Added postscript to what I sent a few minutes ago.] Gerald Lai wrote: On Wed, 10 May 2006, Suresh Govindachar wrote: Bram Moolenaar wrote: Suresh Govindachar wrote: version 7.0.1 gvim --noplugin -u NONE -U NONE and type ifooey and do i_CTRL-X s Message

RE: Bug i_CTRL-X s and arrow

2006-05-11 Thread Suresh Govindachar
I have finally correctly understood Bram's intent regarding what can happen after i_CTRL s and things indeed work that way. --Suresh

i_CTRL-E when completeopt has longest

2006-05-11 Thread Suresh Govindachar
Edward Wong wrote: But I do find another separate issue. Helps to start a new thread. When I have: set cot=menu,preview,longest 1) i_ctrl-e doesn't restore the original word Don't know whether this is intentional or not, but I can confirm the lack of

RE: Bug i_CTRL-X s and arrow

2006-05-10 Thread Suresh Govindachar
Bram Moolenaar wrote: Suresh Govindachar wrote: version 7.0.1 gvim --noplugin -u NONE -U NONE and type ifooey and do i_CTRL-X s Message at bottom will say: match 1 of 100 I get Spell checking is not enabled. Did you do :set spell? Yes, I did :set spell before

RE: Shell support in Vim?

2006-05-10 Thread Suresh Govindachar
Personally, the step mentioned below, viz., moving the mouse to the xterm is a _big_ pain. As a user, what I like about the idea of a shell inside vim is the means to avoid the mouse. C-Z in console vim does avoid the mouse but it doesn't allow simultaneous view and fast access

RE: Shell support in Vim?

2006-05-10 Thread Suresh Govindachar
Frank Terbeck wrote: Suresh Govindachar Personally, the step mentioned below, viz., moving the mouse to the xterm is a _big_ pain. As a user, what I like about the idea of a shell inside vim is the means to avoid the mouse. C-Z in console vim does avoid the mouse

Re: avoid Press Enter... with new z= from function

2006-05-08 Thread Suresh Govindachar
Bram Moolenaar wrote: Suresh Govindachar wrote: Actually I was trying to avoid writing all the wrapper code that this code omits. :) z= does more than this snippet, it figures out what word it is, displays the list, requests user input, processes user input, and changes

RE: Enhanced inputdialog() as for input mechanisms of i_CTRL-N, z= etc.

2006-05-07 Thread Suresh Govindachar
Starting with :help omni-completion showed me what I was looking for. Thanks, --Suresh -Original Message- From: Eric Arnold [mailto:[EMAIL PROTECTED] Sent: Sunday, May 07, 2006 8:24 AM To: Suresh Govindachar Cc: vim@vim.org Subject: Re: Enhanced inputdialog() as for input

RE: How to reject all spell suggestions?

2006-05-07 Thread Suresh Govindachar
Bram Moolenaar wrote: Suresh Govindachar wrote: After doing i_CTRL-X_CTRL-S, how can one reject all the suggestions? The only way I know is to accept some suggestion and then to do an undo. CTRL-E Doesn't work (version 7.0g04) -- does the same thing

Feature request -- expression based syntax

2006-05-06 Thread Suresh Govindachar
Bram Moolenaar wrote: Suresh Govindachar wrote: Bram Moolenaar wrote: Suresh Govindachar wrote: Please consider supporting expressions for syntax matching. An example of usage is indicated below: I don't quite get it. :syn match commands use a pattern. You

RE: Syntax file

2006-05-06 Thread Suresh Govindachar
Eric Arnold wrote: On 5/5/06, Suresh Govindachar wrote: I would like to color a file as follows: Everything is normal except for lines whose foldlevel is different from the foldlevel of both the line above and the line below. For such lines, the color should

Enhanced inputdialog() as for input mechanisms of i_CTRL-N, z= etc.

2006-05-06 Thread Suresh Govindachar
Hello, I know about inputdialog() for getting user input from within VimL. My question is how to access the user-input mechanisms used by i_CTRL-N, z=, i_CTRL-X_CTRL-S etc. from within VimL? Thanks, --Suresh

Perl's map in VimL

2006-05-06 Thread Suresh Govindachar
Hello, What is the counterpart in VimL of perl's map command? Here's an example of how the map command would be useful in VimL: As shown by the example in help inputlist(): let color = inputlist(['Select color:', '1. red', \ '2. green', '3.

Syntax file

2006-05-05 Thread Suresh Govindachar
Hello, I would like to color a file as follows: Everything is normal except for lines whose foldlevel is different from the foldlevel of both the line above and the line below. For such lines, the color should be Color_N where N is (foldlevel/2)%7 (wherein Color_0 could be red,

:tbuffer?

2006-05-02 Thread Suresh Govindachar
Hello, I could not find the command to open a buffer in its own tab -- what is it? (Somewhat like :sbuffer partial splits the window and opens the buffer whose name uniquely matches partial). Thanks, --Suresh

RE: :tbuffer?

2006-05-02 Thread Suresh Govindachar
A little while ago, I asked: I could not find the command to open a buffer in its own tab -- what is it? (Somewhat like :sbuffer partial splits the window and opens the buffer whose name uniquely matches partial). Found it -- use :tab to modify the command. --Suresh

RE: hiding lines

2006-05-01 Thread Suresh Govindachar
[Modified the third solution] On May 01, 2006, Yakov Lerner pointed out: On 5/2/06, Suresh Govindachar wrote: Yakov Lerner wondered: But how do you remove #ifdef blocks? I mentioned piping because there is ready utility, 'unifdef', that removes some or all of #if blocks

RE: How long does it take for svn to sync with whereever it is the real sources are?

2006-04-30 Thread Suresh Govindachar
Hisashi T Fujinaka was just wondering, since every time Bram announces a new release (7.0g this time) [he gets] itchy. :) A day or so ago, Edward L. Fox wrote on vim@vim.org: | Hi, I'm the subversion repository maintainer. I sync the | subversion repository with the CVS

RE: Install Fails on Windows

2006-04-29 Thread Suresh Govindachar
Bram Moolenaar wrote: Bill McCarthy wrote: Compiling with MVC or Ming, the exe files are copied from c:\vim\vim70f\src to c:\vim\vim70f (the usual place). But running install produces the following: [c:\vim\vim70f]install This program sets up the

Re: Svn and patches

2006-04-29 Thread Suresh Govindachar
updating.) --Suresh Original_Message From: Suresh Govindachar [EMAIL PROTECTED] To: 'Zdenek Sekera' [EMAIL PROTECTED], Date: Fri, 28 Apr 2006 02:11:42 -0700 Subject: Re: Svn and patches Zdenek asked for some how-to for those of us who never used svn before? I am no expert either

RE: Quick peak at files

2006-04-28 Thread Suresh Govindachar
ymc014 wrote: Just a clarification, peak or peek? People (like me)looking for a tip like this might missed it. Sorry about the spelling mistake. Unlike for vimscripts, vim.org does not allow authors to make corrections to vimtips. I myself think it's peek but that's just

Unifying more- and hit-enter- prompts

2006-04-28 Thread Suresh Govindachar
Hello, To get out of the more-prompt, one can hit q or esc. But since the hit-enter-prompt allows entering a command (and does not disallow normal mode commands!), hitting q or esc at the hit-enter-prompt will not only get one out, but will have the side-effect of being treated as

RE: Balloons

2006-04-27 Thread Suresh Govindachar
Earlier, I asked: Some questions on balloons: 1) In response to an user-event (say, a right click) can a message be shown in a balloon? 2) And if this is possible, would it be faster than, say, splitting to make a new buffer and showing the message there?

Svn and patches

2006-04-27 Thread Suresh Govindachar
Hello, Does the stuff downloaded from svn include all the latest patches? I suspect it does since the version from yesterday's download says 7.0f02. If so, how latest? Meaning, I suppose Bram commits before sending notice of the patch to the mailing list -- how much after

RE: File - register

2006-04-27 Thread Suresh Govindachar
[slightly redone version of previous post] Hello, What's the best way to get the contents of a file into a register? The following works (file is foo.bat) but is there a better way? :new|r foo.bat|1d|exec 'normal ayG'|q! Thanks, --Suresh

Backslash in maps

2006-04-27 Thread Suresh Govindachar
Hello, Why does the following _single_ line map generate the E10 error?: nmap space :let @a=substitute(getline('.'),'\(^.*|\s*\)\|\(\s\s*$\)','','g') How would it be fixed? Thanks, --Suresh

Re: Backslash in maps

2006-04-27 Thread Suresh Govindachar
Gerald Lai sent on Thu, 27 Apr 2006 17:44:05 -0700 (PDT): On Thu, 27 Apr 2006, Suresh Govindachar wrote: Hello, Why does the following _single_ line map generate the E10 error?: nmap space :let @a=substitute(getline('.'),'\(^.*|\s*\)\|\(\s\s*$\)','','g') Note

Quick peak at files

2006-04-27 Thread Suresh Govindachar
Hello, I have summarized my posts today titled Balloons, File - register and Backslash in maps as a vimtip (www.vim.org/tips/tip.php?tip_id=1218) titled Quick peak at files; the tip is also attached below. --Suresh Quick peak at files In an operating system's command-line

Making * search for strings

2006-04-25 Thread Suresh Govindachar
Hello, By default, * searches for words: /\stuff_below_cursor\ but I would like it to search for strings: /stuff_below_cursor One way is to use the following map * yiw:let @/[EMAIL PROTECTED]cr Is there a better way? (/yiw didn't work.) Thanks, --Suresh

.swp, .swo - which original file

2006-04-23 Thread Suresh Govindachar
Hello, Starting with .swp and .swo files lying around from a crash, how do I find out which files they correspond to? Thanks, --Suresh

RE: Fullscreen help without loosing other buffers ?

2006-04-23 Thread Suresh Govindachar
Meino Christian Cramer Suresh Govindachar wrote: Meino Christian Cramer asked I would like to know, whether it is possible to get a fullscreen help when doing :h something or other help-actionis without loosing the buffers already loaded so far

Knowing the mode from viml

2006-04-22 Thread Suresh Govindachar
Hello, (I think something similar has been discussed, perhaps by Hari.) Unless called from the statusline, mode() mostly returns c or n. So how can one know the mode from viml? Here's the pseudo-code I would like to get working: augroup BlockHold au * InsertEnter

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

2006-04-20 Thread Suresh Govindachar
Curtis Spencer Sent April 20, 2006 12:15 PM Hi, I am looking for a nice way to open up a file in subdirectory if I know the first few characters of the name, ie.: :open helpress tab and then I see :open hello_world.c, if it is somewhere in some subdirectories

RE: RFC: Indexing help files[was: Re: which vim option]

2006-04-17 Thread Suresh Govindachar
Yakov Lerner wrote: On 4/17/06, Eddy Petrisor [EMAIL PROTECTED] wrote: On 4/17/06, Eric Arnold [EMAIL PROTECTED] wrote: It's a bit confusing what you are looking for. You originally asked for an index of keywords, but here you're asking for contents. Both are indexed,

RE: Diffthis a file with conflicting modeline

2006-04-16 Thread Suresh Govindachar
Benji Fisher Sent on April 16, 2006 7:55 PM On Sun, Apr 16, 2006 at 05:15:48PM -0700, Suresh Govindachar wrote: Hello, A few minutes ago, I wrote, hastily: I just found out that buffers displaying files with modeline that set foldexpr, fillchars, foldtext

RE: open file

2006-04-08 Thread Suresh Govindachar
linda.s Sent April 08, 2006 8:17 PM In the command mode, i typed :vim filename and got the error message: not an edit command why i can not use :vim to open the file? The error message tells you why -- :vim is not an edit command What does :help :vim bring up?