Re: wish: allow a: in the function def

2007-04-25 Thread Marc Weber
So that the name is consistent everywhere. Makes it much easier to search. I would appreciate this addition, too. Example function! Test(param) echo a:param endfunction When you see param and want to know where it is used, all you have to do is pressing * (using set hlsearch or a plugin

Re: wish: allow a: in the function def

2007-04-25 Thread Marc Weber
So maybe one could make vimscript search a variable foo as l:foo, a:foo, (maybe also: w:foo, b:foo), s:foo, g:foo, and then throw an undefined variable name error if none exists. Or so. No. I don't want to go back to VB without using Option Explicit ;) Don't let vim find some value

Re: suggestion

2007-04-23 Thread Marc Weber
On Tue, Apr 17, 2007 at 10:35:14PM -0400, David Howland wrote: Dear Vim gods, Please consider adding the following command to Vim: :bc (for buffer close) It acts just like :bd , except that if the buffer is in a split window, it does not remove the window. Thank you. I've seen this

Re: Highlighting keywords from C libraries

2007-02-21 Thread Marc Weber
Since projects won't have as many keywords as glibc, the only slow down will be with the syntax file (re)generation. ctags is reasonably fast Sorry. I haven't read your message thoroughly enough. I was talking about what you've written in your comment. /me hides ;) Marc

Suggestion: numbers for completion menu?

2007-01-23 Thread Marc Weber
It would be convinient to get an item from the completion menu faster than downdown .. or typing more characters. What do you think of prepending each item with a number and add a key-mapping c-iidx to get the idxth item? so c-i4 would select the 4th. Would it be convinient to add another

Re: BOF Vim 8 - EncryptLine

2007-01-21 Thread Marc Weber
On Thu, Jan 18, 2007 at 02:15:36PM +1100, John Beckett wrote: Suggested new feature: Make an easy way to encrypt a secret within a line. Then you can have a simple text file to document stuff, with embedded secrets. On reading, you only need to enter a key if you want to see a secret. I

Re: some ideas

2006-12-14 Thread Marc Weber
On Mon, Dec 11, 2006 at 09:08:20PM -0200, Rodolfo Borges wrote: (1) When tab-completing on Vim :cmdline, start with the dir of the current file being edited, instead of the $PWD (use ./ for that). Yet another idea. I'm using many mappinngs like this to not change workinng directory (it seems

Re: compilation of regular expressions/ enhancement?

2006-10-03 Thread Marc Weber
Hi Tony. Of course this was a trivial example. I was grepping the output of jar - content-texfile to find the packages of a java-class. Currently I'm using this function. I'm invoking this function for up to 40 files or more.. That depends on how many modules I have imported. let type_pattern =

vim server ? security hole?

2006-07-26 Thread Marc Weber
this shuold be the case by default. In my case it does what I want but.. Did I miss anything? Cheers Marc Weber

Re: vim server ? security hole?

2006-07-26 Thread Marc Weber
Marc, In case you are talking X11: D you have x11 authorization enabled or disabled ? I've been taking x11. I did modify xhost because I wanted a php script be able to launch vim. But I've restarted X now and xhost - shows the same as xhost. It still works. So c-rsystem('xhost') inserts:

Re: VIM 7.0 scripts, ctags and taglist.vim

2006-07-11 Thread Marc Weber
Such a behavior most likely is far from one's expectations. Though, there is no any riddle here, just the latest version of exuberant ctags cannot parse new extensions to VIM script. It can't parse function autoload#blah#foo#method, either. So if you want to include this into your patch,

Re: New feature: bind layout of windows to keys?

2006-06-09 Thread Marc Weber
:help tabpage.txt See also :h mksession .. That is was ZoomWin.vim (from Charles E. Campbell) is using.. You can get it on vim.org Marc