Re: Strange ";" behavior when editing mixed php / html files

2009-10-05 Thread Sebastian Schulze
Followup: " HTML.vim :let g:html_map_leader = '#' :let g:do_xhtml_mappings = 'yes' Makes HTML.vim actually quiet usable in mixed environments. On Oct 6, 8:18 am, Sebastian Schulze wrote: > Thank you so much! > That made my day. > > On Oct 6, 6:35 am, Benoit Mortgat wrote: > > > Hello Sebastia

Re: Resize To Cursor

2009-10-05 Thread Christian Brabandt
On Tue, October 6, 2009 7:53 am, Christian Brabandt wrote: > And then there are some settings that might interfer with the function, > like 'sidescrolloff', 'scrolloff', 'sidescroll', 'wrap'. And then what > would you want with a more complex window layout? Therefore I give only > some hints, how

Re: Strange ";" behavior when editing mixed php / html files

2009-10-05 Thread Sebastian Schulze
Thank you so much! That made my day. On Oct 6, 6:35 am, Benoit Mortgat wrote: > Hello Sebastian, > If you type, in normal mode, > :verbose imap ; > and > :verbose iabbr ; > > you will see what causes ; to trigger some abbreviation or mapping. > Have a nice day, > > Benoit Mortgat > > On Tue, Oct

Re: netrw

2009-10-05 Thread Dominique Pellé
meino cramer wrote: > Hi, > >  inspired by a prvious post I did the following: > >  vim ftp://ftp.kernel.org > >  and got back the following: > > "ftp://ftp.kernel.org/";  --No lines in buffer-- "NetrwMessage"  --No > lines in buffer-- Error detected while processing function > netrw#Nread..netrw

Re: Resize To Cursor

2009-10-05 Thread Christian Brabandt
On Mon, October 5, 2009 11:45 pm, Paul wrote: > > On Mon, 5 Oct 2009, Brett Stahlman wrote: > >> nnoremap :exe "resize " . (line('.') - line('w0') + 1)\|zb > > Yes, you have the idea. That works for horizontal split. Now, how about for vertical split? I don't see a column() function... Try this:

Re: Determined OS type

2009-10-05 Thread Steven Woody
On Tue, Oct 6, 2009 at 1:08 PM, Peter Hodge wrote: > > Hello, > > You can use the has() function like this: > >  if has('win32') >    " options only for MS Windows >  else >    " options for other environments >  endif > > You can get into much finer detail than that. See the :help has() for more

Re: Determined OS type

2009-10-05 Thread Peter Hodge
Hello, You can use the has() function like this: if has('win32') " options only for MS Windows else " options for other environments endif You can get into much finer detail than that. See the :help has() for more info. cheers, Peter --- On Tue, 6/10/09, Steven Woody wrote:

Determined OS type

2009-10-05 Thread Steven Woody
Hi, In my .vimrc, can I write code to determined current OS type (native Unix, Win32, cygwin, etc.)? If so, I can make my .vimrc portable to different environments. Currently I happened to have such a requirement, because on my same laptop, I sometimes run Windows version of gvim and sometimes

Re: Strange ";" behavior when editing mixed php / html files

2009-10-05 Thread Benoit Mortgat
Hello Sebastian, If you type, in normal mode, :verbose imap ; and :verbose iabbr ; you will see what causes ; to trigger some abbreviation or mapping. Have a nice day, Benoit Mortgat On Tue, Oct 6, 2009 at 00:10, Sebastian Schulze wrote: > > Hi around. > > I recently used vim for editing files

Re: emulating typewriter sound

2009-10-05 Thread bill lam
On Mon, 05 Oct 2009, Gene Kwiecinski wrote: > > >In (linux, console) vim , is there any way to add audio feedback like > >typewriter sound whenever a key is pressed (not needed for key > >released)? > > That's a function (if available, naturally) of the keyboard driver and/or > console itself,

netrw

2009-10-05 Thread meino . cramer
Hi, inspired by a prvious post I did the following: vim ftp://ftp.kernel.org and got back the following: "ftp://ftp.kernel.org/"; --No lines in buffer-- "NetrwMessage" --No lines in buffer-- Error detected while processing function netrw#Nread..netrw#NetRead..77_Netrw Browse..77_Perform

Re: 'mm' command in netrw

2009-10-05 Thread sc
On Monday 05 October 2009, Nathan Neff wrote: > I'm using Vim 7.2, both terminal and gvim, and cannot move > files in netrw. > > Let's say I have a directory with > subdir/ > foo.txt > > If I mark the 'subdir/' target with 'mt', then > mark foo.txt with 'mf', I can press 'mm' and > foo.txt will b

Strange ";" behavior when editing mixed php / html files

2009-10-05 Thread Sebastian Schulze
Hi around. I recently used vim for editing files of the symfony framework, with a lot of inline-php code and stumbled over a strange behavior: When typing a ';' the cursor waits for another character and if I hit space it autocompletes to a non breaking  . Cool thing if one's editing pure html-f

Re: Resize To Cursor

2009-10-05 Thread Stahlman Family
Paul wrote: > On Mon, 5 Oct 2009, Brett Stahlman wrote: > >> nnoremap :exe "resize " . (line('.') - line('w0') + 1)\|zb > > Yes, you have the idea. That works for horizontal split. Now, how about for > vertical split? I don't see a column() function... If the start of the line is not visibl

Re: use vim function from an external shell command

2009-10-05 Thread Joseph Boiteau
Wow, I love your lines ! I like it because it comes with vim itself, thanks ! By the way, thanks to Gary and Peter for your answers !! I didn't took enough time to properly try them, the need of a third party script blow me out. thanks mailing list On Tue, Sep 29, 2009 at 8:31 AM, Tony Mechelyn

Re: Resize To Cursor

2009-10-05 Thread Gary Johnson
On 2009-10-05, Paul wrote: > On Mon, 5 Oct 2009, Brett Stahlman wrote: > > > nnoremap :exe "resize " . (line('.') - line('w0') + 1)\|zb > > Yes, you have the idea. That works for horizontal split. Now, how about for > vertical split? I don't see a column() function... :help col() Found b

RE: emulating typewriter sound

2009-10-05 Thread Gene Kwiecinski
>>That's a function (if available, naturally) of the keyboard >>driver and/or console itself, not the app. >But does that preclude the possibility of including it in the >application itself? Uhhh, yeah, let's take a multi-platform multi-OS text editor and include hardware-specific almost-BIOS-le

Re: n00b needs help with @ and ~ on empty lines

2009-10-05 Thread Tim Chase
> The at sign says "there's more lines, but the next line would wrap and > take up more than what you currently can see". If you have 'wrap' on, > Vim never shows you a line unless it's complete. So, if you have a huge > line, it might need many physical lines to show it to you. If it > doesn't ha

Re: n00b needs help with @ and ~ on empty lines

2009-10-05 Thread Tim Chase
> Vim inserts several blue tilde signs (~) on empty lines > *below* my text. I don't know why it does this, but just > ignored it. Then, while experimenting with various keystrokes > there suddenly appeared several empty lines *above* my text > with blue "at" signs (@). The "~" indicate that "non

Re: Resize To Cursor

2009-10-05 Thread Paul
On Mon, 5 Oct 2009, Brett Stahlman wrote: > nnoremap :exe "resize " . (line('.') - line('w0') + 1)\|zb Yes, you have the idea. That works for horizontal split. Now, how about for vertical split? I don't see a column() function... Thanks! -- . --~--~-~--~~~---~--

Re: n00b needs help with @ and ~ on empty lines

2009-10-05 Thread Vlad Dogaru
On Mon, 5 Oct 2009 13:14:00 -0700 (PDT) Bill wrote: > > I have been using vim for a week but my searches have not yielded an > answer for the following question regarding vim 7.2.245 on my xp box. > > Vim inserts several blue tilde signs (~) on empty lines *below* my > text. I don't know why it

Re: folding bugs?

2009-10-05 Thread Evan
> > I assumed they were bugs and would be fixed in the next version, but > > they're still there many years later, and I'm finally wondering if > > maybe others don't see them, or maybe they're not considered bugs, or > > maybe I'm doing something wrong (though I don't see how since I just > > :se

'mm' command in netrw

2009-10-05 Thread Nathan Neff
Hello, I'm using Vim 7.2, both terminal and gvim, and cannot move files in netrw. Let's say I have a directory with subdir/ foo.txt If I mark the 'subdir/' target with 'mt', then mark foo.txt with 'mf', I can press 'mm' and foo.txt will become un-highlighted, but it will not be moved to subdir/

n00b needs help with @ and ~ on empty lines

2009-10-05 Thread Bill
I have been using vim for a week but my searches have not yielded an answer for the following question regarding vim 7.2.245 on my xp box. Vim inserts several blue tilde signs (~) on empty lines *below* my text. I don't know why it does this, but just ignored it. Then, while experimenting with va

Re: emulating typewriter sound

2009-10-05 Thread Gary Johnson
On 2009-10-05, Jason Axelson wrote: > On Mon, Oct 5, 2009 at 7:15 AM, Gene Kwiecinski wrote: > > That's a function (if available, naturally) of the keyboard driver and/or > > console itself, not the app. > > But does that preclude the possibility of including it in the > application itself? No

Re: Resize To Cursor

2009-10-05 Thread Brett Stahlman
On Oct 5, 8:30 am, Paul wrote: > Is it possible, in a :split window (horizontal or vertical), to tell vim, > "move > the join line to the cursor position"? For example, split a buffer > horizontally, put the cursor somewhere in the middle of the top buffer, and > have the split point move up t

Re: emulating typewriter sound

2009-10-05 Thread Jason Axelson
On Mon, Oct 5, 2009 at 7:15 AM, Gene Kwiecinski wrote: > That's a function (if available, naturally) of the keyboard driver and/or > console itself, not the app. But does that preclude the possibility of including it in the application itself? --~--~-~--~~~---~--~--

RE: emulating typewriter sound

2009-10-05 Thread Gene Kwiecinski
>In (linux, console) vim , is there any way to add audio feedback like >typewriter sound whenever a key is pressed (not needed for key >released)? That's a function (if available, naturally) of the keyboard driver and/or console itself, not the app. --~--~-~--~~~---

Re: Resize To Cursor

2009-10-05 Thread Hari Krishna Dara
On Mon, Oct 5, 2009 at 6:30 AM, Paul wrote: > > Is it possible, in a :split window (horizontal or vertical), to tell vim, > "move > the join line to the cursor position"? For example, split a buffer > horizontally, put the cursor somewhere in the middle of the top buffer, and > have the split po

Re: Manage Vim scripts

2009-10-05 Thread Harry Putnam
Richard Pöttler writes: > Hi, > > I like to try out vimscripts, to test, whether they help me with my > editing. After a while I lost oversight of all my installed scripts and > their current status. Trying to track them with git, which didn't help > much, so I hacked together a perl script t

Manage Vim scripts

2009-10-05 Thread Richard Pöttler
Hi, I like to try out vimscripts, to test, whether they help me with my editing. After a while I lost oversight of all my installed scripts and their current status. Trying to track them with git, which didn't help much, so I hacked together a perl script to do this job. Since writing a scrip

Resize To Cursor

2009-10-05 Thread Paul
Is it possible, in a :split window (horizontal or vertical), to tell vim, "move the join line to the cursor position"? For example, split a buffer horizontally, put the cursor somewhere in the middle of the top buffer, and have the split point move up to the cursor, so the upper window is small

Re: How to check if filetype command is available?

2009-10-05 Thread Christian Brabandt
Hi Dennis! On Mo, 05 Okt 2009, Dennis Benzinger wrote: > > How can I check if the filetype command is available? > :exists(":filetype") regards, Christian --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit

How to check if filetype command is available?

2009-10-05 Thread Dennis Benzinger
How can I check if the filetype command is available? I know that you can check for some features by using the has function. But which feature do I need to test for? The filetype option is available if the autocmd feature is available. Is this also the case for the filetype command? Regards, De