Re: Starting an online VIM vs Other Text Editors battle.. anyone interested?

2010-08-03 Thread tommed
Great feedback, many thanks! I have just updated the site, taking your excellent suggestions on board. I think you've all hit the nail on the head with regard to the general idea of the site; I thought I would spark more interest by setting the theme of the site as the official VIM vs EMACS

Re: Starting an online VIM vs Other Text Editors battle.. anyone interested?

2010-08-03 Thread Marc Weber
Excerpts from tommed's message of Tue Aug 03 11:12:27 +0200 2010: Great feedback, many thanks! I have just updated the site, taking your excellent suggestions on board. quote: 1) You MUST use a default install (iow. no custom scripts or modifications) of the text editor of your choice 2)

Re: Starting an online VIM vs Other Text Editors battle.. anyone interested?

2010-08-03 Thread tommed
Hi Marc, With regard to cheating; it doesn't matter what we say (eg. use a camcorder and have a clock in view) there will always be ways to cheat at games! Because we don't currently have any prizes; I'm hoping that people will realise there isn't really much to be made by cheating!! Also, the

Re: Starting an online VIM vs Other Text Editors battle.. anyone interested?

2010-08-03 Thread Teemu Likonen
* 2010-08-02 09:17 (-0700), tommed wrote: I am hoping we can get some of our most elite users to participate in an online VIM vs EMACS vs INSERT_TEXT_EDITOR_HERE battle site? I have posted a few details here: http://www.tommed.co.uk/?p=70 I'm not interested in participating but for this

Re: Starting an online VIM vs Other Text Editors battle.. anyone interested?

2010-08-03 Thread Pavel Ryumin
The accounting of startup time gives us a lot of complications. The greatest one is the inequality of the users with different hardware setups. I think it's not good for editors war. Pavel On Tue, Aug 3, 2010 at 1:55 PM, tommed tom.medhu...@gmail.com wrote: Hi Marc, With regard to cheating;

Re: Starting an online VIM vs Other Text Editors battle.. anyone interested?

2010-08-03 Thread tommed
@Pavel - Agreed! On Aug 3, 11:02 am, Pavel Ryumin pavel.ryu...@googlemail.com wrote: The accounting of startup time gives us a lot of complications. The greatest one is the inequality of the users with different hardware setups. I think it's not good for editors war. Pavel On Tue, Aug 3,

Re: Starting an online VIM vs Other Text Editors battle.. anyone interested?

2010-08-03 Thread tommed
@Teemu - thanks for your comments. The ideas you throw out there for the project are already covered by places like vim.org and commandlinefu.com. I am not interested in covering something which has already been done so well. I think the site is for people who will find this kind of competition

Problem with DBExecSQLUnderCursor command from dbext plugin

2010-08-03 Thread Dennis Benzinger
Hi! I have a problem with the DBExecSQLUnderCursor command from the dbext plugin. From the current cursor position it searches backwards for some SQL keywords it knows about (e.g. select, create, etc.) and searches forward for the statement terminator (e.g. ;). Everything between these two

Re: Visual bell in VIM

2010-08-03 Thread Jürgen Krämer
Hi, George Potapov wrote: I don't like bell and visual bell so I decided to switch it off in my vim. I looked it up in the documentation. It says: == cut == When no beep or flash is wanted, use :set vb t_vb=. == /cut == All right. But there's a problem: this command works fine when

Re: Visual bell in VIM

2010-08-03 Thread George Potapov
On Tue, 03 Aug 2010 15:16:26 +0200 Jürgen Krämer jottka...@googlemail.com wrote: I don't like bell and visual bell so I decided to switch it off in my vim. What to do? you did not look at the whole documentation. ;-) :help 'visualbell' Thanks a lot, that worked. It's kinda clumsy to

Re: Visual bell in VIM

2010-08-03 Thread Christian Brabandt
Hi George! On Di, 03 Aug 2010, George Potapov wrote: On Tue, 03 Aug 2010 15:16:26 +0200 Jürgen Krämer jottka...@googlemail.com wrote: I don't like bell and visual bell so I decided to switch it off in my vim. What to do? you did not look at the whole documentation. ;-)

Re: map with ternary possible?

2010-08-03 Thread Ben Fritz
On Aug 2, 4:25 pm, Christian Brabandt cbli...@256bit.org wrote: try this: map expr {{ synIDattr(hlID('LineNR'), 'fg')==white ? ':hi LineNr guifg=blackcr' : ':hi LineNr guifg=whitecr' (one line) And see :help :map-expr for why it works and a discussion of the limitations. -- You

Re: map with ternary possible?

2010-08-03 Thread Ben Fritz
On Aug 2, 4:07 pm, Bill bsag...@gmail.com wrote: I toggle line numbers off and on by simply changing the guifg color. ;hide line column map  {{ :hi LineNr guifg=whitecr ;reveal line column map  }} :hi LineNr guifg=blackcr Question: why not just turn on/off the line numbering option? A

Re: Vim 7.3c ready for beta testing

2010-08-03 Thread Ben Fritz
On Aug 2, 2:52 am, Bram Moolenaar b...@moolenaar.net wrote: I find it more important to support Windows 7, so unless we find a way to support Windows 2000 without breaking Windows 7 compatibility it won't change. Is there a problem with providing two installers/binaries, one for Win7 64

Re: Problem with DBExecSQLUnderCursor command from dbext plugin

2010-08-03 Thread Dennis Benzinger
Hi David! Original-Nachricht Datum: Tue, 03 Aug 2010 10:22:16 -0400 Von: David Fishburn dfishburn@gmail.com An: vim_use@googlegroups.com Betreff: Re: Problem with DBExecSQLUnderCursor command from dbext plugin On 8/3/2010 8:05 AM, Dennis Benzinger wrote: Hi!

Re: Problem with DBExecSQLUnderCursor command from dbext plugin

2010-08-03 Thread David Fishburn
Original-Nachricht Datum: Tue, 03 Aug 2010 10:22:16 -0400 Von: David Fishburndfishburn@gmail.com An: vim_use@googlegroups.com Betreff: Re: Problem with DBExecSQLUnderCursor command from dbext plugin On 8/3/2010 8:05 AM, Dennis Benzinger wrote: Hi! I have a problem

Re: Visual bell in VIM

2010-08-03 Thread Tony Mechelynck
On 03/08/10 15:32, Christian Brabandt wrote: Hi George! On Di, 03 Aug 2010, George Potapov wrote: On Tue, 03 Aug 2010 15:16:26 +0200 Jürgen Krämer jottka...@googlemail.com wrote: I don't like bell and visual bell so I decided to switch it off in my vim. What to do? you did not look at

I think vim.org should have a common plugin package on vim.org

2010-08-03 Thread H Xu
Hello, Many people quit using vim because they think vim is not as powerful as emacs. However, mostly this is because they don't install vim plugins. So I think it is necessary to put a plugin package onto vim.org which contains common plugins for those people who don't want to look for

Re: I think vim.org should have a common plugin package on vim.org

2010-08-03 Thread Christian Brabandt
Hi H! On Mi, 04 Aug 2010, H Xu wrote: Many people quit using vim because they think vim is not as powerful as emacs. However, mostly this is because they don't install vim plugins. So I think it is necessary to put a plugin package onto vim.org which contains common plugins for those

Starting an ex edit command with default file path

2010-08-03 Thread Tim Johnson
I have the following function: -- Start an edit command with the Project root file path -- function! EditWithProjectRootPath() let path=GetFilePath()

Re: Starting an ex edit command with default file path

2010-08-03 Thread Tim Chase
On 08/03/10 15:22, Tim Johnson wrote: function! EditWithProjectRootPath() let path=GetFilePath() execute :e . path endfunction The effect of this function is that I get a directory listing. What I *really* want to have happen is have my cursor at the end of the path so that I

Re: Starting an ex edit command with default file path

2010-08-03 Thread Gary Johnson
On 2010-08-03, Tim Johnson wrote: I have the following function: -- Start an edit command with the Project root file path -- function! EditWithProjectRootPath()

Re: Vim 7.3c ready for beta testing

2010-08-03 Thread Bram Moolenaar
Ben Fritz wrote: On Aug 2, 2:52 am, Bram Moolenaar b...@moolenaar.net wrote: I find it more important to support Windows 7, so unless we find a way to support Windows 2000 without breaking Windows 7 compatibility it won't change. Is there a problem with providing two

Re: Vim 7.3c ready for beta testing

2010-08-03 Thread Ben Fritz
On Aug 3, 3:54 pm, Bram Moolenaar b...@moolenaar.net wrote: Ben Fritz wrote: On Aug 2, 2:52 am, Bram Moolenaar b...@moolenaar.net wrote: I find it more important to support Windows 7, so unless we find a way to support Windows 2000 without breaking Windows 7 compatibility it won't

Re: I think vim.org should have a common plugin package on vim.org

2010-08-03 Thread Ben Fritz
On Aug 3, 1:54 pm, H Xu xusu...@gmail.com wrote:   Hello, Many people quit using vim because they think vim is not as powerful as emacs. However, mostly this is because they don't install vim plugins. So I think it is necessary to put a plugin package onto vim.org which contains common

Select text from last put in Visual?

2010-08-03 Thread Dani Church
I've been searching all over for this, but I haven't found any mention of an answer. Is there any easy way to select the text from the most recent p or P in whatever Visual mode is appropriate (visual for character-based inserts, visual line for line-based inserts)? The closest answer I've come

Re: Starting an ex edit command with default file path

2010-08-03 Thread Tim Johnson
* Tim Chase v...@tim.thechases.com [100803 12:47]: On 08/03/10 15:22, Tim Johnson wrote: :nnoremap f4 :e c-r=GetFilePath()cr (note the trailing cr is for the expression-register, not the Ex command). Thanks Tim and Gary. That works. Now I must 'bone up' on the expression-register! PS:

Re: I think vim.org should have a common plugin package on vim.org

2010-08-03 Thread Tim Johnson
* Teemu Likonen tliko...@iki.fi [100803 11:15]: * 2010-08-04 02:54 (+0800), H. Xu wrote: Many people quit using vim because they think vim is not as powerful as emacs. I don't know if many people quit using Vim because of that. How did you get that impression? I believe that Vim is a

Re: Starting an ex edit command with default file path

2010-08-03 Thread Tim Chase
On 08/03/10 16:27, Tim Johnson wrote: :nnoremapf4 :e c-r=GetFilePath()cr (note the trailingcr is for the expression-register, not the Ex command). Thanks Tim and Gary. That works. Now I must 'bone up' on the expression-register! :help @= if you want the help-target for further reading.

Can't suppress autofolding for php files

2010-08-03 Thread Tim Johnson
I have just started working with php, so I have no previous experience as a metric. I have downloaded and installed piv.vim. I have the following in my .vimrc: let g:DisableAutoPHPFolding = 1 Yet, vim insists on automatically folding php functions. I hate this feature, it is very annoying. How

RE: Select text from last put in Visual?

2010-08-03 Thread John Beckett
Dani Church wrote: Is there any easy way to select the text from the most recent p or P in whatever Visual mode is appropriate (visual for character-based inserts, visual line for line-based inserts)? The closest answer I've come up with is `[v`] or `[V`] -- should I just map that to a key?

getting the source code for an anonymous function

2010-08-03 Thread Ted
I asked [this question] a while back on stackoverflow.com: how to get the source code for an anonymous VimL function. The response that I got explained that doing e.g. :function {42} would display the source code for anonymous function #42. This is particularly useful when debugging errors

Re: Vim 7.3c ready for beta testing

2010-08-03 Thread bill lam
Втр, 03 Авг 2010, Ben Fritz писал(а): On Aug 3, 3:54 pm, Bram Moolenaar b...@moolenaar.net wrote: Ben Fritz wrote: On Aug 2, 2:52 am, Bram Moolenaar b...@moolenaar.net wrote: I find it more important to support Windows 7, so unless we find a way to support Windows 2000 without

Re: Can't suppress autofolding for php files

2010-08-03 Thread Tim Johnson
* Tim Johnson t...@johnsons-web.com [100803 17:12]: I have just started working with php, so I have no previous experience as a metric. I have downloaded and installed piv.vim. I have the following in my .vimrc: let g:DisableAutoPHPFolding = 1 Yet, vim insists on automatically folding php

Re: Select text from last put in Visual?

2010-08-03 Thread Dani Church
On Tue, Aug 3, 2010 at 21:32, John Beckett johnb.beck...@gmail.com wrote: The tip had the mapping you suggest above (`[v`]), and I have added an expression mapping using visualmode() to do choose the last selection mode. Excellent idea, thanks! The only caveat is that if you cut your text

Re: Can't suppress autofolding for php files

2010-08-03 Thread bill lam
Втр, 03 Авг 2010, Tim Johnson писал(а): * Tim Johnson t...@johnsons-web.com [100803 17:12]: I have just started working with php, so I have no previous experience as a metric. I have downloaded and installed piv.vim. I have the following in my .vimrc: let g:DisableAutoPHPFolding = 1

Re: Can't suppress autofolding for php files

2010-08-03 Thread Gary Johnson
On 2010-08-03, Tim Johnson wrote: * Tim Johnson t...@johnsons-web.com [100803 17:12]: I have just started working with php, so I have no previous experience as a metric. I have downloaded and installed piv.vim. I have the following in my .vimrc: let g:DisableAutoPHPFolding = 1 Yet,

Re: I think vim.org should have a common plugin package on vim.org

2010-08-03 Thread H Xu
To Teemu Likonen, Christian Brabandt, Ben Fritz, Tim Johnson, To Teemu Likonen: you said vim is much more popular than emacs, I believe that the version of vim which is very, very popular is the minimal version, because some Linux distributions have used minimal vim as there standard vi. For

Reindenting an empty line using cindent and cinkeys?

2010-08-03 Thread John
Hi all, I've searched old indenting posts but not yet found the answer I seek to this one. When I'm editing code and press enter, it maintains my indent level as it adds a new line. If I press escape, it removes that whitespace, presumably to avoid having lines with nothing but whitespace - and

Re: Can't suppress autofolding for php files

2010-08-03 Thread Tim Johnson
* Gary Johnson garyj...@spocom.com [100803 18:40]: On 2010-08-03, Tim Johnson wrote: To have just PHP files open with folds open, put this in ~/.vim/after/ftplugin/php.vim: setlocal foldlevel=99 Thanks Gary I *think* that fixed it. I am qualifying the results because:

Re: Reindenting an empty line using cindent and cinkeys?

2010-08-03 Thread Ivan S. Freitas
If I press escape, it removes that whitespace, presumably to avoid having lines with nothing but whitespace - and that's great.  But when I want to recommence coding on that blank line, I'd like an easy way of regaining the indentation it had before I pressed escape. One quick'n'dirty trick

Re: I think vim.org should have a common plugin package on vim.org

2010-08-03 Thread bill lam
Срд, 04 Авг 2010, H Xu писал(а): use emacs. These people don't use both vim or emacs. For people who decide to use vim or emacs, they have to preview both of them. Emacs has bundled many plugins, so emacs can integrate with gdb, edit tex file efficiently and some other things without

Re: I think vim.org should have a common plugin package on vim.org

2010-08-03 Thread Ricky J. Wu
Many people quit using vim because they think vim is not as powerful as emacs. Learn vim need patients and times, and also the plugin dose. The more configurable the system is, the more powerful feature you get. You might need learn and configure plugin by yourself and find whether is it