Re: Conditionally generated templates

2011-06-24 Thread Luc Hermitte
Hello, Tim Roberts wrote : I write php using an MVC framework, and I'd love to be able to conditionally generate some of my new file content. The main ones would be vim app/controllers/projects_controller.php Should produce: ?php class ProjectsController extends AppController {

redirect messages to stdout (windows)

2011-06-24 Thread sgp
Is there a way to redirect vim messages to the Windows console? My makefile runs vim to pre-process some files. It does so with vim -c source preproc.vim -c wa -c qa input.c My issue is that while vim runs I have to keep watching the Windows console to spot if vim logs a error to its messages

c structure relationship

2011-06-24 Thread jack sparrow
hi, is there any tool that shows the relationship of c-structures in ascii text form. struct abc { struct one a; struct two b; strcut three c; }; struct one { int i; struct five; } struct two { int j; } struct three { int x; } i am expecting the following kind of o/p abc - one - five -

Re: redirect messages to stdout (windows)

2011-06-24 Thread Ben Schmidt
On 24/06/11 10:04 PM, sgp wrote: Is there a way to redirect vim messages to the Windows console? My makefile runs vim to pre-process some files. It does so with vim -c source preproc.vim -c wa -c qa input.c My issue is that while vim runs I have to keep watching the Windows console to spot if

Does anyone know how to make autocomplete display possible tag-completions?

2011-06-24 Thread Asis Hallab
Dear Vimers, I am using *exuberant ctags* and use vim's built-in tag-completion frequently. (see example below) I also have the 'autocomplpop'-plugin installed: http://www.vim.org/scripts/script.php?script_id=1879 Does anyone know how to make the acp-plugin *add* possible tag-completions to

What is the 80kb character code?

2011-06-24 Thread Andrew Neil
Suppose I was to type the following: qq oHello, Wordl!BSBSBSld!Esc q For the purposes of illustration here, I'm using BS to stand for the backspace key, and Esc to stand for the escape key. Now, if I put the contents of the 'q' register into the document (e.g. `:put q`), it looks

Re: What is the 80kb character code?

2011-06-24 Thread ZyX
Reply to message «What is the 80kb character code?», sent 19:24:44 24 June 2011, Friday by Andrew Neil: Byte 0x80 is an escape byte that designates the start of internal vim representation of special keys. More info can be found somewhere in vim source. Don't rely on this escape codes (and

Re: What is the 80kb character code?

2011-06-24 Thread Tony Mechelynck
On 24/06/11 17:24, Andrew Neil wrote: Suppose I was to type the following: qq oHello, Wordl!BSBSBSld!Esc q For the purposes of illustration here, I'm usingBS to stand for the backspace key, andEsc to stand for the escape key. Now, if I put the contents of the 'q' register into

Aw: Re: Conditionally generated templates

2011-06-24 Thread lith
With mu-template, you'll need a template-file named ~/.vim/after/template/php.vim that contains For comparison, here is Luc's template converted to tskeleton: tskel:before let s:filename = expand('%:p') let s:parts=split(s:filename,'/') let s:class=matchstr(s:parts[-1], '.*\ze\.') let

Re: Aw: Re: Conditionally generated templates

2011-06-24 Thread Luc Hermitte
- lith wrote: With mu-template, you'll need a template-file named ~/.vim/after/template/php.vim that contains For comparison, here is Luc's template converted to tskeleton: Interesting. This is really neat. I doubt I can add the before/ and after/ sections, but it gave me an idea to

Aw: Re: Aw: Re: Conditionally generated templates

2011-06-24 Thread lith
Hi, Am Freitag, 24. Juni 2011 18:49:21 UTC+2 schrieb Luc Hermitte: With mu-template, I had to add a hook in order to load project-specific settings (defined with plugins like local_vimrc) Something similar would be necessary with tskeletons too in order to determine the project's source

indentation based on a file type

2011-06-24 Thread cyboman
i found solutions online on how to do indentation based on a filetype however none of them worked except the last one. i would really appreciate if someone could explain to me what was i doing wrong. here are the solutions that didn't work my .vimrc contains set shiftwidth=2 set tabstop=2

open vi in dos like unsinx shell ?

2011-06-24 Thread fachhoch
I use windows and like to use vi , I downloaded vi , would like to know how to open vi in dos prompt like it opens in unix shell ? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit

Re: open vi in dos like unsinx shell ?

2011-06-24 Thread Tim Chase
On 06/24/2011 03:03 PM, fachhoch wrote: I use windows and like to use vi , I downloaded vi , would like to know how to open vi in dos prompt like it opens in unix shell ? Assuming you have them in your $PATH (or should I say %PATH%), there's a vim.bat file that should run by default within

Re: indentation based on a file type

2011-06-24 Thread hsitz
On Jun 24, 1:01 pm, cyboman rail.shafigu...@gmail.com wrote: i found solutions online on how to do indentation based on a filetype however none of them worked except the last one. i would really appreciate if someone could explain to me what was i doing wrong. If all you want to do is set the

Re: indentation based on a file type

2011-06-24 Thread Ben Fritz
On Jun 24, 3:01 pm, cyboman rail.shafigu...@gmail.com wrote: i found solutions online on how to do indentation based on a filetype however none of them worked except the last one. i would really appreciate if someone could explain to me what was i doing wrong. here are the solutions that