Re: I don't konw why Xdebug can't work for vim

2009-03-24 Thread 彭灵俊
:)
I'm test this plugin just now.
This is far bettte!
Thanks for help!

2009/3/25 彭灵俊 

> I'm in the linux.
> Thank you very much.
> This plug was a good idear.
>
> 2009/3/25 Zeft 
>
> what OS do you use ?
>> u might wanna try http://www.vim.org/scripts/script.php?script_id=2508
>>
>> 2009/3/24 彭灵俊 
>>
>> I'm sorry.I forget put my error list:
>>> waiting for a new connection on port 9000 for 5 seconds...
>>> Connection closed, stop debugging
>>> (, AttributeError("DbgProtocol instance has no attribute 'stop'",),
>>> )
>>> File "/usr/share/vim/vim71/plugin/debugger.py", line 1078, in
>>> debugger_run
>>> debugger.run()
>>> File "/usr/share/vim/vim71/plugin/debugger.py", line 928, in run
>>> self.protocol.accept()
>>> File "/usr/share/vim/vim71/plugin/debugger.py", line 560, in accept
>>> self.stop()
>>>
>>> I'am sure
>>>
>>> 2009/3/25 彭灵俊 
>>>
>>> Hi
   I have one problem.
   I'm write php code in vim.so,I wan't to debug this code.
   I found one plugin in this page,what this can use Xdebug work on vim.

 http://tech.blog.box.net/2007/06/20/how-to-debug-php-with-vim-and-xdebug-on-linux/
   so,I download this script in vim.org.I am sure don't have faulty
 operation.
  The connection/debugging works fine with my browser
   how to solve this problem,or tell me .How does it can use Xdebug in
 vim?

 Thank your very much!

>>>
>>>
>>>
>>>
>>
>>
>> --
>> when things couldn't get any worse !
>> >> slackdna.blogspot.com
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: I don't konw why Xdebug can't work for vim

2009-03-24 Thread 彭灵俊
I'm in the linux.
Thank you very much.
This plug was a good idear.

2009/3/25 Zeft 

> what OS do you use ?
> u might wanna try http://www.vim.org/scripts/script.php?script_id=2508
>
> 2009/3/24 彭灵俊 
>
> I'm sorry.I forget put my error list:
>> waiting for a new connection on port 9000 for 5 seconds...
>> Connection closed, stop debugging
>> (, AttributeError("DbgProtocol instance has no attribute 'stop'",),
>> )
>> File "/usr/share/vim/vim71/plugin/debugger.py", line 1078, in debugger_run
>> debugger.run()
>> File "/usr/share/vim/vim71/plugin/debugger.py", line 928, in run
>> self.protocol.accept()
>> File "/usr/share/vim/vim71/plugin/debugger.py", line 560, in accept
>> self.stop()
>>
>> I'am sure
>>
>> 2009/3/25 彭灵俊 
>>
>> Hi
>>>   I have one problem.
>>>   I'm write php code in vim.so,I wan't to debug this code.
>>>   I found one plugin in this page,what this can use Xdebug work on vim.
>>>
>>> http://tech.blog.box.net/2007/06/20/how-to-debug-php-with-vim-and-xdebug-on-linux/
>>>   so,I download this script in vim.org.I am sure don't have faulty
>>> operation.
>>>  The connection/debugging works fine with my browser
>>>   how to solve this problem,or tell me .How does it can use Xdebug in
>>> vim?
>>>
>>> Thank your very much!
>>>
>>
>>
>>
>>
>
>
> --
> when things couldn't get any worse !
> >> slackdna.blogspot.com
>
> >
>

--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: Feature Request: Dpi awareness on Windows

2009-03-24 Thread George V. Reilly
On Tue, Mar 24, 2009 at 1:48 PM, Joe Castro  wrote:

>  From the website it seemed like this is the place to send feature
> requests.
>
>
>
> It would be great if Gvim was DPI aware.  The text is fuzzy in non-96dpi on
> Windows Vista and 7.  So far I haven't had any luck modifying this by just
> adding a manifest next to the exe.
>
> Picture = 1K words. Please take a few screenshots [1], save them as PNGs,
upload them somewhere (such as http://imagebin.ca/), and send a link to the
Vim mailing list.

[1] http://www.wikihow.com/Take-a-Screenshot-in-Microsoft-Windows

Is this perhaps some artficact of ClearType that you dislike? Do other
applications, such as Notepad or Notepad++, exhibit the same problem with
the same fonts?

-- 
/George V. Reilly  geo...@reilly.org
http://www.georgevreilly.com/blog  http://blogs.cozi.com/tech

--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



search in vim

2009-03-24 Thread andy richer
Hi,

Very often,  I need to search  /a/b/c/d/e/f   or  a.b.c.e.fpattern
reported from synopsys primetime tool.

vim treats  /  and . as special metametacharacters there for   I have to
search use back slash/\/a\/b\/c  or   a\..b\.c...

Above is very painful because I can not just highlight   /a/b/c/d/e/f
then stuff   in //a/b/c/d/e/f to search.
And the /a/b/c  path can be very long.



How can I let vim treatmetacharacters as ordinary characters?   so I can
//a/b/c/d/e/f to search /a/b/c/d/e/f   ?


The  substitute in vim   looks like has this ability, for example:

:1,$s/\//;/g ==> search use / so need to use \ to escape /

:1,$s#/#;#g ==> search use #so it did not treat / as
metacaracters


My co-worker is using emacs and it does not require \   to escape /   or .



Thanks for help.

Andy

--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: Feature Request: Dpi awareness on Windows

2009-03-24 Thread Ben Fritz



Joe Castro wrote:
> From the website it seemed like this is the place to send feature requests.
>
>
>
> It would be great if Gvim was DPI aware.  The text is fuzzy in non-96dpi on
> Windows Vista and 7.  So far I haven't had any luck modifying this by just
> adding a manifest next to the exe.
>

Are you talking about printing text from Vim? If so, you can try
the :TOhtml command to export the current Vim buffer to html, then
save the result and print from your browser. Be sure to check
out :help :TOhtml first so you can set up the various options
(especially, g:html_use_css) before running the command.

If you're talking about screen resolution...I'm afraid I know nothing.
--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: search for non-ascii chars

2009-03-24 Thread Gary Johnson

On 2009-03-25, Tony Mechelynck wrote:
> On 24/03/09 22:07, mitch wrote:
> >
> > I´ve been trying to search a file for non-ascii chars using
> >
> > /[\x80-\xff]/
> >
> > and it´s not working.  How would I search for chars in the range of
> > hex 80 to hex ff?  Thanks,
> >
> > - Mitch
> 
> Try the following (both untested):
> 
> Method I.
> 
> 1) Read the file disregarding any multibyte encoding:
> 
>   :e ++enc=latin1 filename.ext
> 
> 2) Do the search
> 
>   /[<80>-ÿ]
> 
> where <80> (which, depending on your 'encoding', may appear as ~@ 
> instead) is obtained by hitting Ctrl-V x 8 0 and ÿ is a lowercase y with 
> diaeresis, which your keyboard may or may not be able to produce 
> natively. If it isn't, use Ctrl-V x F F
> 
> -- And in both cases, use Ctrl-Q instead of Ctrl-V if your Ctrl-V is 
> remapped to the paste operation.
> 
> 
> Method II (Only if 'encoding' is UTF-8).
> 
> 1) Make sure the 'fileencoding' is 8-bit
> 
>   :setlocal fenc=latin1
> 
> 2) Use the 8g8 command in Normal mode (see "help 8g8")

Mitch's original attempt works for me, in a file with
encoding=latin1 and fileencoding empty, so maybe the key is, as you
say in II 1), to make sure the 'fileencoding' is 8-bit.

Regards,
Gary



--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: search for non-ascii chars

2009-03-24 Thread Tony Mechelynck

On 24/03/09 22:07, mitch wrote:
>
> I’ve been trying to search a file for non-ascii chars using
>
> /[\x80-\xff]/
>
> and it’s not working.  How would I search for chars in the range of
> hex 80 to hex ff?  Thanks,
>
> - Mitch

Try the following (both untested):

Method I.

1) Read the file disregarding any multibyte encoding:

:e ++enc=latin1 filename.ext

2) Do the search

/[<80>-ÿ]

where <80> (which, depending on your 'encoding', may appear as ~@ 
instead) is obtained by hitting Ctrl-V x 8 0 and ÿ is a lowercase y with 
diaeresis, which your keyboard may or may not be able to produce 
natively. If it isn't, use Ctrl-V x F F

-- And in both cases, use Ctrl-Q instead of Ctrl-V if your Ctrl-V is 
remapped to the paste operation.


Method II (Only if 'encoding' is UTF-8).

1) Make sure the 'fileencoding' is 8-bit

:setlocal fenc=latin1

2) Use the 8g8 command in Normal mode (see "help 8g8")



Best regards,
Tony.
-- 
Dear Mister Language Person: I am curious about the expression, "Part
of this complete breakfast".  The way it comes up is, my 5-year-old
will be watching TV cartoon shows in the morning, and they'll show a
commercial for a children's compressed breakfast compound such as
"Froot Loops" or "Lucky Charms", and they always show it sitting on a
table next to some actual food such as eggs, and the announcer always
says: "Part of this complete breakfast".  Don't that really mean,
"Adjacent to this complete breakfast", or "On the same table as this
complete breakfast"?  And couldn't they make essentially the same claim
if, instead of Froot Loops, they put a can of shaving cream there, or a
dead bat?

Answer: Yes.
-- Dave Barry, "Tips for Writer's"

--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Feature Request: Dpi awareness on Windows

2009-03-24 Thread Joe Castro
>From the website it seemed like this is the place to send feature requests.

 

It would be great if Gvim was DPI aware.  The text is fuzzy in non-96dpi on
Windows Vista and 7.  So far I haven't had any luck modifying this by just
adding a manifest next to the exe.


Thanks,

-Joe

 


--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: I don't konw why Xdebug can't work for vim

2009-03-24 Thread Zeft
what OS do you use ?
u might wanna try http://www.vim.org/scripts/script.php?script_id=2508

2009/3/24 彭灵俊 

> I'm sorry.I forget put my error list:
> waiting for a new connection on port 9000 for 5 seconds...
> Connection closed, stop debugging
> (, AttributeError("DbgProtocol instance has no attribute 'stop'",),
> )
> File "/usr/share/vim/vim71/plugin/debugger.py", line 1078, in debugger_run
> debugger.run()
> File "/usr/share/vim/vim71/plugin/debugger.py", line 928, in run
> self.protocol.accept()
> File "/usr/share/vim/vim71/plugin/debugger.py", line 560, in accept
> self.stop()
>
> I'am sure
>
> 2009/3/25 彭灵俊 
>
> Hi
>>   I have one problem.
>>   I'm write php code in vim.so,I wan't to debug this code.
>>   I found one plugin in this page,what this can use Xdebug work on vim.
>>
>> http://tech.blog.box.net/2007/06/20/how-to-debug-php-with-vim-and-xdebug-on-linux/
>>   so,I download this script in vim.org.I am sure don't have faulty
>> operation.
>>  The connection/debugging works fine with my browser
>>   how to solve this problem,or tell me .How does it can use Xdebug in vim?
>>  Thank
>> your very much!
>>
>
>
> >
>


-- 
when things couldn't get any worse !
>> slackdna.blogspot.com

--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



search for non-ascii chars

2009-03-24 Thread mitch

I’ve been trying to search a file for non-ascii chars using

/[\x80-\xff]/

and it’s not working.  How would I search for chars in the range of
hex 80 to hex ff?  Thanks,

- Mitch


--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: Going to the beginning of a line in command mode

2009-03-24 Thread Ben Fritz



On Mar 24, 11:01 am, Andreas Bernauer  wrote:

>
> Use :cnoremap instead of :cmap
>
> This avoids the  mapping  to be reinterpreted again as .
>

In general, the "noremap" commands will map the left side to the BUILT
IN functionality of the right side, wheras the "map" commands map the
left side to the CURRENT functionality of the right side.

In your case, you pressed  which Vim interpreted as , but
then (because you used "map" instead of "noremap") went on to
interpret that  as .
--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: I don't konw why Xdebug can't work for vim

2009-03-24 Thread 彭灵俊
I'm sorry.I forget put my error list:
waiting for a new connection on port 9000 for 5 seconds...
Connection closed, stop debugging
(, AttributeError("DbgProtocol instance has no attribute 'stop'",),
)
File "/usr/share/vim/vim71/plugin/debugger.py", line 1078, in debugger_run
debugger.run()
File "/usr/share/vim/vim71/plugin/debugger.py", line 928, in run
self.protocol.accept()
File "/usr/share/vim/vim71/plugin/debugger.py", line 560, in accept
self.stop()

I'am sure

2009/3/25 彭灵俊 

> Hi
>   I have one problem.
>   I'm write php code in vim.so,I wan't to debug this code.
>   I found one plugin in this page,what this can use Xdebug work on vim.
>
> http://tech.blog.box.net/2007/06/20/how-to-debug-php-with-vim-and-xdebug-on-linux/
>   so,I download this script in vim.org.I am sure don't have faulty
> operation.
>  The connection/debugging works fine with my browser
>   how to solve this problem,or tell me .How does it can use Xdebug in vim?
>  Thank
> your very much!
>

--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



I don't konw why Xdebug can't work for vim

2009-03-24 Thread 彭灵俊
Hi
  I have one problem.
  I'm write php code in vim.so,I wan't to debug this code.
  I found one plugin in this page,what this can use Xdebug work on vim.

http://tech.blog.box.net/2007/06/20/how-to-debug-php-with-vim-and-xdebug-on-linux/
  so,I download this script in vim.org.I am sure don't have faulty
operation.
 The connection/debugging works fine with my browser
  how to solve this problem,or tell me .How does it can use Xdebug in vim?
 Thank
your very much!

--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: Going to the beginning of a line in command mode

2009-03-24 Thread Andreas Bernauer

Per Thulin wrote:
> Hi dear list of fellow vim users, I wanted to remap some keys:
> 
> cm  
> cm  
> cm  
> 
> But now  goes one character to the left! Can I set  directly  
> to the command to go to the beginning of the line?

Use :cnoremap instead of :cmap

This avoids the  mapping  to be reinterpreted again as .

-- 
Andreas.

--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Going to the beginning of a line in command mode

2009-03-24 Thread Per Thulin

Hi dear list of fellow vim users, I wanted to remap some keys:

cm  
cm  
cm  

But now  goes one character to the left! Can I set  directly  
to the command to go to the beginning of the line?

Thanks!
-Per Thulin

--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: Change the encoding ?

2009-03-24 Thread Tony Mechelynck

On 24/03/09 09:31, Tintin72 wrote:
>
> Hi,
>
> Under Ubuntu the default Vim encoding is utf-8 but I want to work in
> latin-1.
> So I put in my vimrc:
>
> set encoding=latin-1
>
> (I don't know if it's the good way to proceed)
>
> It seems to work but now some of the internal messages of Vim has
> strange symbols in place of the accentued characters.
>
> How could I fix this ?
> (What is the file containing the internal messages of Vim ?)
>
> Thanks.

I recommend leaving 'encoding' at UTF-8 if you're blessed with a system 
which uses it as its default.

If you want new files to be created in Latin1 encoding unless you 
explicitly tell Vim not to, use

setglobal fileencoding=latin1

The only problem with that is that you'll be able to type non-Latin1 
characters such as the Euro sign € or the French OE and oe ligatures Œ 
œ, the error will only become apparent when you try to write the file.

You can still deviate from Latin1 for some particular file then, by 
creating it with e.g.

e filename.ext
setlocal fileencoding=utf-16le bomb

You may want to keep a more general 'fileencodings' (plural) value than 
just Latin1, maybe

set fileencodings=ucs-bom,utf-8,latin1

so that you'll be able to edit most existing Unicode files (if you have 
any, now or in the future) with no problems. (Latin1 must be last, 
because anything after it will never be used.)

See http://vim.wikia.org/wiki/Working_with_Unicode about an explanation 
of what the various '...encoding' options are for, and where to find 
still more info about them.


Best regards,
Tony.
-- 
Beware of low-flying butterflies.

--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Change the encoding ?

2009-03-24 Thread Tintin72

Hi,

Under Ubuntu the default Vim encoding is utf-8 but I want to work in
latin-1.
So I put in my vimrc:

set encoding=latin-1

(I don't know if it's the good way to proceed)

It seems to work but now some of the internal messages of Vim has
strange symbols in place of the accentued characters.

How could I fix this ?
(What is the file containing the internal messages of Vim ?)

Thanks.
--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---