Re: Bash-like tab completion

2009-02-09 Thread Nazri Ramliy
On Mon, Feb 9, 2009 at 3:52 PM, Per Thulin per.thu...@valentinewebsystems.se wrote: (1) Table like display of files... like in bash Try :find Ctrl+D (2) More careful suggestion of filenames so that I don't have to backspace... like in bash :help wildignore nazri.

Re: is there any to-do list plugin for Vim?

2009-02-09 Thread Marc Weber
Hi StarWing, If you don't know yet how the todo plugin should look like have a look at thinkingrock on sourceforge. It should give you some ideas what can could done. Marc Weber --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more

Re: can you check if there is a file by path and name?

2009-02-09 Thread Matt Wozniski
On Sun, Feb 8, 2009 at 6:28 PM, Tony Mechelynck wrote: On 08/02/09 23:18, John Beckett wrote: Dewr wrote: can you check if there is a file by path and name? Example: :echo filereadable($MYVIMRC) Of course, if the file exists but you don't have read permission on it, filereadable()

Re: is there any to-do list plugin for Vim?

2009-02-09 Thread StarWing
thank you all! i have searched vim.sf.net(it's just look like www.vim.org! is it the same one?), but i can't find something i like. i have found some ftplugin, but i think i need a plugin just like calender.vim. it could tell me what shall i do next step, and i can open it easily. it could be

Re: is there any to-do list plugin for Vim?

2009-02-09 Thread StarWing
btw: if i use a ftplugin for todopaper or taskpaper or gtd.vim, is it a full-function plugin for get-things-done usage? i mean syntax- highlight, fold, sort or anyother things. and, who can tell me how to sort folded text?e.g. there are three fold text, after folded it shows a c and b, then use

Re: How long is too long for .vimrc?

2009-02-09 Thread Antony Scriven
2009/2/8 R. Hicks sigz...@gmail.com: I am not running into problems at all. I was just curious. I am a basic user of Vim and my .vimrc is 305 lines long (including comments and blank lines). Is there a point where you modularize it? I am not sure I see the point there. Is there a best

Re: How long is too long for .vimrc?

2009-02-09 Thread Ben Schmidt
R. Hicks wrote: I am not running into problems at all. I was just curious. I am a basic user of Vim and my .vimrc is 305 lines long (including comments and blank lines). Is there a point where you modularize it? I am not sure I see the point there. Is there a best practive for maintaining

Re: How long is too long for .vimrc?

2009-02-09 Thread Tom Link
The benefit of having everything in .vimrc is that it's easier to transfer to another machine, etc. Interesting. My conclusion would have been quite the opposite. In my experience having everything in the vimrc makes it difficult to maintain for different environments. My vimrc is now about

Re: Bash-like tab completion

2009-02-09 Thread Ben Schmidt
when searching for a file and using tab, I'd like the tab completion to work like in bash, I know about wildmenu and use it today, but it doesn't give me what I'm after: What about 'wildmode'? :set nowildmenu :set wildmode=list or perhaps :set wildmode=list:longest Ben.

Re: How long is too long for .vimrc?

2009-02-09 Thread Ben Schmidt
Tom Link wrote: The benefit of having everything in .vimrc is that it's easier to transfer to another machine, etc. Interesting. My conclusion would have been quite the opposite. In my experience having everything in the vimrc makes it difficult to maintain for different environments. I

Re: Look up a keyword in gvim

2009-02-09 Thread Elias Diem
On Wednesday 04 February 2009 19:13, Charles Campbell wrote: Christian Ebert wrote: * Tony Mechelynck on Wednesday, February 04, 2009 at 04:23:00 +0100 On 03/02/09 09:50, Elias Diem wrote: Using K in normal mode to look up a keyword under the cursor works well when I use vim in a

What is the shell VIM uses for :!command ?

2009-02-09 Thread WiggyWare
I'm trying to use :!command to execute commands without dropping into :sh, but they seem to behave differently. For instance, when I do an 'alias' from :sh, it properly shows me the aliases set up in .kshrc (using ksh). If I do :!alias, I do not get any of the aliases I set up in my .kshrc.

Re: What is the shell VIM uses for :!command ?

2009-02-09 Thread bill lam
On Mon, 09 Feb 2009, WiggyWare wrote: I'm trying to use :!command to execute commands without dropping into :sh, but they seem to behave differently. For instance, when I do an 'alias' from :sh, it properly shows me the aliases set up in .kshrc (using ksh). If I do :!alias, I do not get

Re: What is the shell VIM uses for :!command ?

2009-02-09 Thread Jason Foreman
On Mon, Feb 9, 2009 at 7:45 AM, WiggyWare b...@yoder.org wrote: I'm trying to use :!command to execute commands without dropping into :sh, but they seem to behave differently. For instance, when I do an 'alias' from :sh, it properly shows me the aliases set up in .kshrc (using ksh). If I do

Re: What is the shell VIM uses for :!command ?

2009-02-09 Thread Teemu Likonen
On 2009-02-09 22:28 (+0800), bill lam wrote: For bash, alias is a builtin command of shell, not as an external command. Being a shell built-in command is not the issue. For example, cd is also a built-in and it works in non-interactive shells: $ bash -c cd / ls (Vim's :! command runs a

Re: What is the shell VIM uses for :!command ?

2009-02-09 Thread WiggyWare
On Feb 9, 9:58 am, Teemu Likonen tliko...@iki.fi wrote: On 2009-02-09 22:28 (+0800), bill lam wrote: For bash, alias is a builtin command of shell, not as an external command. Being a shell built-in command is not the issue. For example, cd is also a built-in and it works in

Re: text objects

2009-02-09 Thread Ben Fritz
On Feb 7, 5:30 am, Luc Hermitte hermi...@free.fr wrote: On vim.wikia, there is a tip that shows how to define such a mapping.  http://vim.wikia.com/wiki/Indent_text_object There's also: http://vim.wikia.com/wiki/Creating_new_text_objects

make p and v use system clip

2009-02-09 Thread Gabe Moothart
--~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

make p and y use system clipboard by default

2009-02-09 Thread Gabe Moothart
Is there a way to make p and y use the system clipboard (the + register) by default? Thanks, Gabe --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: What is the shell VIM uses for :!command ?

2009-02-09 Thread Ted Pavlic
But aliases don't work there because they are expanded only in interactive shells. Use :set shcf=-cl to get :!alias to give you the expected result. --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page:

Re: What is the shell VIM uses for :!command ?

2009-02-09 Thread Ted Pavlic
Ahh, thank you. I knew I had the shell set properly, but I didn't realize that about alias. It's not just shell, but shellcmdflag too :help shcf --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family

Put something other than line numbers in the line numbers column?

2009-02-09 Thread Ranec
Is it possible to put something other than line numbers in the column used by :set number? In most revision control systems, you can annotate or blame the source file with which revision each line comes from. I'd like to use the Python API to the Perforce C/C++ API to supply the version numbers

folding of patch files

2009-02-09 Thread Andreas Bernauer
Is there a built-in folding method for patch files? When I open a patch file, I would like to be able to open and close individual hunks as well as all hunks of a single file. Isn't there something built-in? (I know I could write my own fold-expr.) I tried all foldmethods (syntax, indent,

Is it possible for the vim tag system to distinguish between functions with the same name but different signatures?

2009-02-09 Thread poireau
Hi all, I'm currently using vim with exuberant ctags and I love it, except for one thing: if I have to functions named foo, say foo(int) and foo(), vim does not make any distinction between them and jumps to one of them randomly when C-] is pressed. Is there a way to make vim more intelligent?

folding of patch files

2009-02-09 Thread Andreas Bernauer
Is there a built-in folding method for patch files? When I open a patch file, I would like to be able to open and close individual hunks as well as all hunks of a single file. Isn't there something built-in? (I know I could write my own fold-expr.) I tried all foldmethods (syntax, indent,

Re: Is it possible for the vim tag system to distinguish between functions with the same name but different signatures?

2009-02-09 Thread Tim Chase
I'm currently using vim with exuberant ctags and I love it, except for one thing: if I have to functions named foo, say foo(int) and foo(), vim does not make any distinction between them and jumps to one of them randomly when C-] is pressed. It's not exactly random: :help tag-priority

Re: Put something other than line numbers in the line numbers column?

2009-02-09 Thread Charles Campbell
Ranec wrote: Is it possible to put something other than line numbers in the column used by :set number? In most revision control systems, you can annotate or blame the source file with which revision each line comes from. I'd like to use the Python API to the Perforce C/C++ API to supply the

Re: Is it possible for the vim tag system to distinguish between functions with the same name but different signatures?

2009-02-09 Thread Andreas Bernauer
poireau wrote: I'm currently using vim with exuberant ctags and I love it, except for one thing: if I have to functions named foo, say foo(int) and foo(), vim does not make any distinction between them and jumps to one of them randomly when C-] is pressed. Is there a way to make vim more

RE: How long is too long for .vimrc?

2009-02-09 Thread Gene Kwiecinski
mine's 468 and counting: http://home.swbell.net/toothpik/.vimrc Hmm, kewl.. Mine's like, well, 8 lines long. :D Was meaning to change things that bug me when I run into 'em, but never really got around to it. --~--~-~--~~~---~--~~ You received this message

Re: folding of patch files

2009-02-09 Thread Tim Chase
Is there a built-in folding method for patch files? Not AFAIK When I open a patch file, I would like to be able to open and close individual hunks as well as all hunks of a single file. Isn't there something built-in? (I know I could write my own fold-expr.) A simple first-pass fold-expr

Re: Is it possible for the vim tag system to distinguish between functions with the same name but different signatures?

2009-02-09 Thread Dominique Pelle
Andreas Bernauer wrote: poireau wrote: I'm currently using vim with exuberant ctags and I love it, except for one thing: if I have to functions named foo, say foo(int) and foo(), vim does not make any distinction between them and jumps to one of them randomly when C-] is pressed. Is there

Re: text objects

2009-02-09 Thread Oleksandr Manzyuk
Hi everybody! Thanks for helpful links on creating text objects. I have the following issue now. As I described in my previous message, I am after a text object ae (for an environment) that would allow to select, yank, delete, change etc. LaTeX environments. It turned fairly easy out to code it

Re: text objects

2009-02-09 Thread Oleksandr Manzyuk
Hi everybody! Thanks for helpful links on creating text objects. I have the following issue now. As I described in my previous message, I am after a text object ae (for an environment) that would allow to select, yank, delete, change etc. LaTeX environments. It turned fairly easy out to code it

Re: Is it possible for the vim tag system to distinguish between functions with the same name but different signatures?

2009-02-09 Thread Matt Wozniski
On Mon, Feb 9, 2009 at 12:56 PM, Dominique Pelle wrote: cscope is good, but it does not solve the problem of jumping to the right function when overloading functions. As far as I know, there is unfortunately no solution yet for this. It's been discussed in this mailing list a couple of

Re: text objects

2009-02-09 Thread Andy Wokula
Oleksandr Manzyuk schrieb: [...] nnoremap silent [e :C-Ucall ToBeginEnv(v:count1)CR nnoremap silent ]e :C-Ucall ToEndEnv(v:count1)CR using the above definitions doesn't work, I suppose because hitting Esc discards the count prefix if any vmap silent [e :C-Ucall

Re: is there any to-do list plugin for Vim?

2009-02-09 Thread J S
On Sun, Feb 08, 2009 at 07:29:59PM -0800, StarWing wrote: just as subject: i need to find a to-do list plugin to manage my work... has any good advice? Vimoutliner works for me. It has a percentage/checkbox function, that I find satisfying in terms of knowing how much of a project I have

Re: Is it possible for the vim tag system to distinguish between functions with the same name but different signatures?

2009-02-09 Thread poireau
Thank you very much for your clear answer. Is there a way to file an official feature whish for that? It doesn't seem that hard to implement, given that ctags already has the option to put all the relevant information in the tags file. Vim just has to use it :) Thanks again, joel Dominique

Re: make p and v use system clip

2009-02-09 Thread Ben Schmidt
:set clipboard+=unnamed perhaps. Or prefix the command you want to use the system clipboard with + (quote plus), which I'd recommend more highly myself. But it's very hard knowing what you want from just six words, and when the v command doesn't on its own use the clipboard at all... Ben.

Re: is there any to-do list plugin for Vim?

2009-02-09 Thread Javier Rojas
On Mon, Feb 09, 2009 at 12:36:47PM -0800, J S wrote: On Sun, Feb 08, 2009 at 07:29:59PM -0800, StarWing wrote: just as subject: i need to find a to-do list plugin to manage my work... has any good advice? Vimoutliner works for me. It has a percentage/checkbox function, that I find

Re: How long is too long for .vimrc?

2009-02-09 Thread pansz
Ben Schmidt 写道: But what I was actually thinking about was simply using the identical configuration on different machines. It's easier just to copy your .vimrc than a whole .vim folder. Copy the .vimrc is easier than .vim folder only if you don't change it very often. consider you change it

Re: Is it possible for the vim tag system to distinguish between functions with the same name but different signatures?

2009-02-09 Thread pansz
poireau 写道: Is there a way to file an official feature whish for that? It doesn't seem that hard to implement, given that ctags already has the option to put all the relevant information in the tags file. Vim just has to use it :) joel Please bottom-post in this mail-list. Regarding

RE: Is it possible for the vim tag system to distinguish between functions with the same name but different signatures?

2009-02-09 Thread John Beckett
poireau wrote: Is there a way to file an official feature whish for that? Mentioning a topic (as you have done) means it will be noticed, and might be acted on if thought sufficiently important. Unfortunately the number of useful things that might be done is enormous (in Vim, enter ':help