Re: glob and names with a tilde

2008-11-10 Thread John Little
On Nov 10, 6:57 pm, Ben Schmidt [EMAIL PROTECTED] wrote: ... it should check if what it gets back is the same as what it sent, and assume no matches if it is. That wouldn't work, that assumption may be false, there might be a match. On Nov 10, 7:58 pm, StarWing [EMAIL PROTECTED] wrote: it's

Re: how auto-format with special with Vim?

2008-11-10 Thread Ben Schmidt
StarWing wrote: omg, i just move this function from vimrc to indent file, so i didn't observe this function contain a stupid ft judgement now it's correct. Vim indent file Language: plain text Maintainer: StarWing Last Change:2008-11-10 09:40:18 Only Load this

Re: glob and names with a tilde

2008-11-10 Thread Ben Schmidt
John Little wrote: On Nov 10, 6:57 pm, Ben Schmidt [EMAIL PROTECTED] wrote: ... it should check if what it gets back is the same as what it sent, and assume no matches if it is. That wouldn't work, that assumption may be false, there might be a match. True. I thought it would only rarely

Dutch spell checking dictionaries (Was: Trouble updating the ro spellfile)

2008-11-10 Thread Tony Mechelynck
On 10/11/08 09:26, Bram Moolenaar wrote: Tony Mechelynck wrote: On 09/11/08 11:24, Bram Moolenaar wrote: [...] Fixing bugs currently has priority. I also still have a note to update the Dutch spell file, I think already for half a year... Shall I do it? (Which tools are required, beside

determining and printing fraction of an ascii file - continue

2008-11-10 Thread reviol
Hi Everybody, two weeks ago I had asked how to print, say, a certain part of a program. Tony gave the answer. Thanks! I have two related questions: How to determine, at which line in, say, a program I'am? How to direct the hardcopy command so that a file, say a ps file, is created (rather

Re: Newbie question....

2008-11-10 Thread fritzophrenic
On Nov 8, 4:39 pm, John Beckett [EMAIL PROTECTED] wrote: I've spent quite a bit of time on the irritating + versus * issue while trying to get the Vim Tips into shape (I wondered why many tips say * is the clipboard when of course your above statement is correct). Any comments on the

Re: How to do(sytax)?

2008-11-10 Thread fritzophrenic
On Nov 9, 6:32 am, Richard Hartmann [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 22:30, Jerrygreat [EMAIL PROTECTED] wrote: How can I use one command line to delete all the staffs before RDRDBA, make the file like I would suggest a different approach. While regexp are extremely handy,

Re: determining and printing fraction of an ascii file - continue

2008-11-10 Thread Ben Schmidt
How to determine, at which line in, say, a program I'am? :f or CTRL-G or g CTRL-G are the ones I use. How to direct the hardcopy command so that a file, say a ps file, is created (rather than executing the default lpr command, when on a unix plattform)? :help pexpr-option and

Re: highlighting and folding, 2 windows always? (I come from emacs)

2008-11-10 Thread bill lam
On Sun, 09 Nov 2008, StarWing wrote: On 11月10日, 下午12时55分, bill lam [EMAIL PROTECTED] wrote: On Sun, 09 Nov 2008, Gary Johnson wrote: :set fo+=n Thank you very much. Manual gq} and setting this option just work. btw, you must set ai option. No. I do not need or use autoindent.

Re: Use the Last Searched String in Find/Replace

2008-11-10 Thread Владимир Сидоренко
hi :s//smth_new V. 2008/11/10 Srikanth [EMAIL PROTECTED] Lot of times I search for strings using the * command and I would replace the searched string with some other string but how to avoid typing the last searched string again in the :%s/ last_searched_string/replace command? Thanks

Re: Moving around in mail replies

2008-11-10 Thread Ben Schmidt
I noticed that n and N work as text object (I can do dn once / is set), so I thought maybe something like nnoremap } :let @/ = ^\\( |\t|\\)*$crn etc. should work, but d} still doesn't work (the let @/ = ... kills the d). v:operator was added to Vim to solve this kind of

Re: highlighting and folding, 2 windows always? (I come from emacs)

2008-11-10 Thread Charles Campbell
fritzophrenic wrote: On Nov 9, 8:51 pm, Charles E. Campbell, Jr. [EMAIL PROTECTED] wrote: 2. I tried this to make read-only buffers unmodifiable: function MakeUnmodifiableIfReadonly() if readonly set nomodifiable endif endfunction

Re: glob and names with a tilde

2008-11-10 Thread Yongwei Wu
2008/11/10 Ben Schmidt [EMAIL PROTECTED]: Yes. Windows doesn't use the shell for wildcard expansion. And I don't think it does tilde expansion of any kind, even itself. It does. :echo glob('~') gives me C:\Documents and Settings\Yongwei. :-) I believe this is done inside Vim. -- Wu

Re: determining and printing fraction of an ascii file - continue

2008-11-10 Thread reviol
Hi Ben, thanks for the try. f, ctrl-G etc. determines how many lines the file has, not the actual line. As for the 2nd question, I'm stuck. The help for pexpr-option refers to cmdarg as part of the first step, that is, directing lpr to a sort of save-as-file. Now, the help for cmdarg

Re: determining and printing fraction of an ascii file - continue

2008-11-10 Thread reviol
Hi again! Well, in my case f, ctrl-G etc. reports the lines the file has plus a percentage information for the actual cursor position. The latter allows to calculate the actual line. As for the 2nd issue, I tried :hardcopy ~/test.ps, :hardcopy ~/test.ps etc., but my system does not dump

Re: Moving around in mail replies

2008-11-10 Thread Andreas Mueller
Tony Mechelynck wrote: I know some Vim dogmatists will say How un-Vim-like! Blerh! and maybe belch, but I'm going to say it nevertheless: to move the cursor to a visible point more than two or three lines away, use the mouse, especially in gvim. Not all versions of Console Vim can use the

Re: Could someone please tell me how to install vim on a WindowsXP machine

2008-11-10 Thread Anton Sharonov
See attached screenshots. 1) PuTTYcyg, colorscheme peaksea. 2) Results of running 256colors2.pl Relevant snippet from my ~/.vimrc: Switch syntax highlighting on, when the terminal has colors Also switch on highlighting the last used search pattern. if t_Co 2 || has(gui_running)

Re: How to map one shortcut for visual, normal and insert mode in one line?

2008-11-10 Thread Pento
I already read this =) And I prefer to map shortcuts per mode. But It's too redundant to write 3 lines instead of 1 in ~/.vimrc. On 10 нояб, 14:32, StarWing [EMAIL PROTECTED] wrote: commands: modes: ~ Insert

Re: glob and names with a tilde

2008-11-10 Thread Bram Moolenaar
John Little wrote: I've found myself revisiting an issue I raised in 2007. Why does :echo glob('non_existent~') give non_existent~ on *nix? Some side effect of attempted tilde expansion it would seem. A bug IMO. Yes, that looks like a bug. I can reproduce it. --

Re: Dutch spell checking dictionaries (Was: Trouble updating the ro spellfile)

2008-11-10 Thread Bram Moolenaar
Tony Mechelynck wrote: On 09/11/08 11:24, Bram Moolenaar wrote: [...] Fixing bugs currently has priority. I also still have a note to update the Dutch spell file, I think already for half a year... Shall I do it? (Which tools are required, beside Vim?) Het Nederlands is mijn

remapping different keys to Escape in command mode doesn't work as expected

2008-11-10 Thread Britton Kerin
I've been madly remapping vim keys to suit my crazy notions of the most speedy and ergonomic possible arrangements. I'm *extremely* impressed with the graceful and detailed control vim gives you in this department. I have one mapping that doesn't work as expected though: cnoremap js Esc

RE: determining and printing fraction of an ascii file - continue

2008-11-10 Thread John Beckett
reviol wrote: How to determine, at which line in, say, a program I'am? I recently put something in From Vim Help that shows line numbers: http://vim.wikia.com/wiki/Main_Page * Use :set nu! to toggle the display of line numbers. :help 'number' * Use :-5,5l# to list lines near the current line.

Re: remapping different keys to Escape in command mode doesn't work as expected

2008-11-10 Thread Tim Chase
cnoremap js Esc which if I understand correctly is supposed to make 'js' do what Esc does when typed on the command line. But it seems to do something slightly different: :boguscommandjs results in an error message: E492: Not an editor command: boguscommand while

Re: determining and printing fraction of an ascii file - continue

2008-11-10 Thread Chris Suter
I believe the line number and column number are listed in the very bottom-left corner of the interface (or individiual window, if in split mode) by default. The C-g command then just shows you about where that value lies in the range of the whole file. On Mon, Nov 10, 2008 at 4:52 PM, Tim Chase

Re: GVim slow on Ubuntu 8.10

2008-11-10 Thread John Little
2008/10/27 François Ingelrest [EMAIL PROTECTED]: Anyone else using the latest Ubuntu 8.10? ... the GUI version is quite slow. Is this going anywhere, François? On Nov 4, 9:53 pm, bill lam [EMAIL PROTECTED] wrote: vim 7.2 patch 1-13 ubuntu 8.10  amd64 nvidia That's my system, so I'm holding

changing colorscheme depending on console or gvim instance

2008-11-10 Thread Sashan Govender
Hi I'd like to add something to my .vimrc to change the colorscheme applied depending on the whether I'm running a gvim instance or vim in a terminal. Thanks -- sashan http://sashang.orcon.net.nz/ --~--~-~--~~~---~--~~ You received this message from the

Re: changing colorscheme depending on console or gvim instance

2008-11-10 Thread 703designs
Am I in GVim? if has(gui_running) colorscheme zenburn endif Thomas On Nov 10, 6:05 pm, Sashan Govender [EMAIL PROTECTED] wrote: Hi I'd like to add something to my .vimrc to change the colorscheme applied depending on the whether I'm running a gvim instance or vim in a terminal.

Re: Dutch spell checking dictionaries (Was: Trouble updating the ro spellfile)

2008-11-10 Thread Tony Mechelynck
On 10/11/08 21:41, Bram Moolenaar wrote: [...] If you want to work on this, and are able to communicate in Dutch, you can subscribe on the maillist: http://www.opentaal.nl/mailinglist.php When I try to access the beheerpagina about (un)subscribing to the mailing list, SeaMonkey tells me

vim book dedicated to scripting

2008-11-10 Thread Scott Kostyshak
I've been using vim for a little while now and want to get into some scripting. Is there any good recommended starting place? The most interesting book I have found so far is Hacking Vim: A Cookbook... by Kim Schulz. Is there any thumbs up for this book or a better recommendation? Thanks!

Re: two bugs of indent in Vim

2008-11-10 Thread Tony Mechelynck
On 10/11/08 09:58, StarWing wrote: first bug, when you open Vim, you can set the first buffer's filetype in vim. e.g. set filetype to vim :setf vim (or setl filetype=vim, has the same issue) then, if you find, the file you want to create is not vim script, e.g. is C, then you change the

(Another) BS Backspace issue.

2008-11-10 Thread Chris Mueller
Hello all. Something that periodicly bothers me on windows gvim. I upgraded my Win XP GVim to 7.2. To do this; I ran the gvim uninstaller; and installed via the.exe. Before; i was using Clipbrd and VIMOutliner plugins. I then installed NERDTree and NERDCommenter (i have no issues on my

Re: two bugs of indent in Vim (P.S.)

2008-11-10 Thread Tony Mechelynck
On 11/11/08 04:39, Tony Mechelynck wrote: On 10/11/08 09:58, StarWing wrote: [...] second bug: open Vim, and type :setf vim, now type :edit a.c then you can see some settings in Vim: :set: inde indk they are still value in filetype Vim. Solution: can't find. [...] P.S. I think the real

Re: (Another) BS Backspace issue.

2008-11-10 Thread Ben Schmidt
Once I did this; i start to edit a libary; and my BS is acting funky. It functiosn when I am in insert mode for what was written in that session of insert mode; but once I press ESC, I cannot use BS key for anything that was not entered in the current insert mode session. I oft go between

Re: (Another) BS Backspace issue.

2008-11-10 Thread Chris Mueller
On Mon, Nov 10, 2008 at 11:20 PM, Ben Schmidt [EMAIL PROTECTED] wrote: Once I did this; i start to edit a libary; and my BS is acting funky. It functiosn when I am in insert mode for what was written in that session of insert mode; but once I press ESC, I cannot use BS key for anything that

Re: two bugs of indent in Vim (P.S.)

2008-11-10 Thread StarWing
BUT, this is not the responsibility of c.vim! now i had to add this line to c.vim, but it should be done by Vim when i changed the filetype! because every indent script should define a variable named b:undo_indent, and Vim will exec b:undo_indent when it use a new indent (see indent.vim in vim

Re: How to map one shortcut for visual, normal and insert mode in one line?

2008-11-10 Thread StarWing
maybe you could write a function to do it. On 11月11日, 上午9时14分, Gary Johnson [EMAIL PROTECTED] wrote: On 2008-11-10, Pento [EMAIL PROTECTED] wrote: Hello, everybody! Now for map shortcut for example for :ls in 3 modes I need to add 3 lines to my ~/.vimrc: F5 - show buffers nmap F5

Re: GVim slow on Ubuntu 8.10

2008-11-10 Thread François Ingelrest
On Mon, Nov 10, 2008 at 23:22, John Little [EMAIL PROTECTED] wrote: 2008/10/27 François Ingelrest [EMAIL PROTECTED]: Anyone else using the latest Ubuntu 8.10? ... the GUI version is quite slow. Is this going anywhere, François? No, the issue is still there. As I said, GVim is usable, but

Re: Use the Last Searched String in Find/Replace

2008-11-10 Thread Srikanth
Thanks Владимир, StarWing and Mr. Shawn for the help. All of them were very helpful and interesting :) On Nov 10, 4:43 pm, Mr. Shawn H. Corey [EMAIL PROTECTED] wrote: On Mon, 2008-11-10 at 02:13 -0800, Srikanth wrote: Lot of times I search for strings using the * command and I would replace