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

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

2009/3/25 Zeft slack@gmail.com

 what OS do you use ?
 u might wanna try http://www.vim.org/scripts/script.php?script_id=2508

 2009/3/24 彭灵俊 sampen...@gmail.com

 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 彭灵俊 sampen...@gmail.com

 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-25 Thread 彭灵俊
:)
I'm test this plugin just now.
This is far bettte!
Thanks for help!

2009/3/25 彭灵俊 sampen...@gmail.com

 I'm in the linux.
 Thank you very much.
 This plug was a good idear.

 2009/3/25 Zeft slack@gmail.com

 what OS do you use ?
 u might wanna try http://www.vim.org/scripts/script.php?script_id=2508

 2009/3/24 彭灵俊 sampen...@gmail.com

 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 彭灵俊 sampen...@gmail.com

 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: search in vim

2009-03-25 Thread John Beckett

andy richer wrote:
 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.

It sounds like you need the Featured Tip currently on:
http://vim.wikia.com/wiki/Main_Page

That is:
http://vim.wikia.com/wiki/Search_for_visually_selected_text

John


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



Re: search in vim

2009-03-25 Thread Christian Brabandt

On Wed, March 25, 2009 3:12 am, andy richer wrote:
 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   ?

This is not possible for simple search /, as the slash is used as
delimiter. This is probably due to historical reasons. I think Posix
demands that / acts as a delimiter for forward-search in vi.

All other metacharacters (except \) can be treated as ordinary
characters by the use of \V (see :help /\V). So the pragmatic solution
would be to search using backward search (?) followed by N (for next
search in reverse direction) together with a pattern that starts with \V
You still would have to escape the backslash, though.

You could also define a command to take care of the escaping, e.g.:
:com! -nargs=1 Search :let @/='\V'.escape(q-args, '\/')| normal! n

so you can literally search using Search a/b/c/d or even Search a\b\c\d
and also Search a.b.c


regards,
Christian
-- 
:wq!


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



Re: vim leaves zombies behind

2009-03-25 Thread Andreas Bernauer

John Little wrote:
 On Mar 16, 12:58 am, Spiros wrote:
 :%! some_executable
 the executable becomes a zombie after it terminates and
 remains a zombie until I exit vim.
 Ubuntu GNU/Linux.
 The version from the /var/lib/dpkg/status file is
 Version: 1:7.0-035+1ubuntu5
 
 That's the version, 7.0.135, in Ubuntu 8.04, aka Hardy, and is quite
 old now (October 2006).

Hardy can be updated to 8.04.2.
It has vim 7.1.138, where I don't see the problem.

Besides, I don't see the problem on SunOS 5.8 with a vim 6.3.
So maybe there is some other reason but vim?

-- 
Andreas.



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



vim ruby extension and visual selection

2009-03-25 Thread anton . hornquist

Hi,

I've checked the docs on the ruby scripting features in vim but I
cannot find a way to retrieve the visual selection area in either
VIM::window or VIM::buffer. Is there any way to do this or any easy
workaround for this?

As an example I would like to be able to visually select an area and
invoke a ruby script that would add a comment line to the top and
bottom of the selection (while of course preserving undo history).
Also I would like to be able to select an arbitrary area and execute a
ruby script that could search in for certain characters in the area.

/Anton

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



Single Line begin-end indentation

2009-03-25 Thread Anil Raj
Hi,

I have enable auto indentation ON.
When I write the following code in Perl, things get indented correctly.

if (a == b) {
  i++; #  This line is indented correct.
}
p = 10; #  This line also is indented correct.

But, if the whole state is in one line like this, the indentation is wrong.

if (a == b) {   i++; }
  p = 10; #  This line is NOT indented correct.

I have similar issues with other languages, where I use begin-end.

Can someone help me?

Regards
ANil

---
Jai Ho!


On Wed, Mar 25, 2009 at 1:43 AM, Christian Brabandt cbli...@256bit.orgwrote:


 On Wed, March 25, 2009 3:12 am, andy richer wrote:
  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   ?

 This is not possible for simple search /, as the slash is used as
 delimiter. This is probably due to historical reasons. I think Posix
 demands that / acts as a delimiter for forward-search in vi.

 All other metacharacters (except \) can be treated as ordinary
 characters by the use of \V (see :help /\V). So the pragmatic solution
 would be to search using backward search (?) followed by N (for next
 search in reverse direction) together with a pattern that starts with \V
 You still would have to escape the backslash, though.

 You could also define a command to take care of the escaping, e.g.:
 :com! -nargs=1 Search :let @/='\V'.escape(q-args, '\/')| normal! n

 so you can literally search using Search a/b/c/d or even Search a\b\c\d
 and also Search a.b.c


 regards,
 Christian
 --
 :wq!


 


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



Re: search in vim

2009-03-25 Thread Tim Chase

 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   ?

Well, this is tricky, but for your particular case, you can do 
things like manually set the search register to a pattern:

   :let @/='/a/b/c/d/e/f'
   n

or use ? to search backwards instead of forwards, and then 
reverse your search direction (which has about the same effect):

   ?/a/b/c/d/e/f
   N


For not-escaping-other-characters, you may also be interested in 
the no-magic setting and search atom:

   /\Mfile[0-9]{a-z}.txt

will search for the literal string file[0-9]{a-z}.txt instead 
of treating the [, { and . as metacharacters (terminal $ 
and initial ^ are still treated as metacharacters).

   :help /\M
   :help 'magic'

However, BEWARE:  the 'magic' setting breaks a lot of scripts 
that assume it's not set.

-tim




--~--~-~--~~~---~--~~
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-25 Thread mitch

Got it.  Thanks for the help.  I really did try to read the docs
before asking,
but they are pretty hard to understand.

The problem I'm trying to solve is with the Google Chrome browser.
I exported my bookmarks, and then imported them into Chrome on another
machine, and it didn't work.  I'm thinking maybe it doesn't like some
of the
characters in the exported file, and looking around there are some
latin-1
chars that have accents.  So I thought I would search for all those
chars
and get rid of them.  I've removed all those chars now and we'll see
if the
import works any better.  Thanks for the help.

On Mar 24, 7:43 pm, Gary Johnson garyj...@spocom.com wrote:
 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
-~--~~~~--~~--~--~---



How to get a '+' in norm fold like diff fold

2009-03-25 Thread 张书瀚
Hi everyone!
   In diff mode,the fold looks like this:

 some text
+some thing
 some text

*If I click '+', the fold will be opened/closed*. But if it is not in diff
mode, there is no such '+'.
How to get a similar function for other kinds of fold?

--~--~-~--~~~---~--~~
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-25 Thread Joe Castro
Thanks for the quick response.

 

This is a side by side picture of some XML in notepad and Gvim with this 
behavior:

http://cid-a8c4875178efed94.skydrive.live.com/self.aspx/Public/FuzzyGvim.png

The system DPI in the shot is 150% normal (144dpi).  The font in both is 
Consolas.

 

It's not a clear type issue.  When an app doesn't opt-in to DPI awareness 
Windows just scales the visuals.  I think this is just a matter of calling 
user32!SetProcessDPIAware early near the app's entry point, or embedding a 
manifest along the lines of:

?xml version='1.0' encoding='UTF-8' standalone='yes'?
assembly xmlns=urn:schemas-microsoft-com:asm.v1 manifestVersion=1.0
  asmv3:application xmlns:asmv3=urn:schemas-microsoft-com:asm.v3
asmv3:windowsSettings
 xmlns=http://schemas.microsoft.com/SMI/2005/WindowsSettings;
  dpiAwaretrue/dpiAware
/asmv3:windowsSettings
  /asmv3:application
/assembly

 

Everything might automatically work if this was done, though it's likely bitmap 
images on the menus won't look right.  Still I'd rather have fuzzy pictures 
than text :)


Thanks,

-Joe

 

From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On Behalf Of 
George V. Reilly
Sent: Tuesday, March 24, 2009 9:20 PM
To: vim_use@googlegroups.com
Cc: v...@vim.org
Subject: Re: Feature Request: Dpi awareness on Windows

 

 

On Tue, Mar 24, 2009 at 1:48 PM, Joe Castro joe.cas...@hotmail.com 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
-~--~~~~--~~--~--~---



Re: How to get Intellisense working in VIM

2009-03-25 Thread Andrew Falanga
On Fri, Mar 20, 2009 at 1:53 PM, StarWing weasley...@sina.com wrote:




 On 3月20日, 下午10时18分, af300...@gmail.com wrote:
  Hi,
 
  I downloaded the VimIntellisense program listed in the vim wiki (I got
  version 1.4.1). I've installed it and I have an Intellisense menu option
 in
  vim, however, it doesn't seem to be working. How do I make it work? For
  example, I also installed the Visual Studio plugin for vim and can open
  solutions/projects from vim now, but when I start typing object names,
  etc., I don't get a drop down menu for completion. I guess I'm just
 curious
  how I'm supposed to get this potentially awesome plugin working. I'm
 hoping
  that someone here has it, uses it, and knows how to help.
 
  Thanks,
  Andy

 is it still work in Vim7.2? Vim 7.x has it built-in omni-complete,
 just try cppomnicomplete (http://vim.sourceforge.net/scripts/
 script.php?script_id=1520http://vim.sourceforge.net/scripts/%0Ascript.php?script_id=1520
 )
 


This looks like it only supports C  C++.  I need something that will
support C# as well.  What exists for that?

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

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



Re: IntelliSense for C#

2009-03-25 Thread Jeff Lanzarotta
I too have been searching for a solution for this for quite a long time now but 
have found nothing. I hope someone can shed some light on this topic...

--- On Wed, 3/25/09, Andrew Falanga af300...@gmail.com wrote:

From: Andrew Falanga af300...@gmail.com
Subject: IntelliSense for C#
To: vim_use@googlegroups.com
Date: Wednesday, March 25, 2009, 12:17 PM

Hi,

I asked about this in a thread a few weeks ago to which I got only one 
response.  I was linked to something called OmniCppComplete 
(http://vim.sourceforge.net/scripts/script.php?script_id=1520).  I'm using Vim 
7.2 and would really prefer to use Vim over Visual Studio.  (Frankly, it's bad 
enough having to work in Windows instead of UNIX, being deprived of Vim is 
worse.)  The main thing keeping me from using Vim all the time is the lack of 
IntelliSense in Vim that is in Visual Studio.  I'm not familiar with each 
assembly that I have to link with and using IntelliSense to see what's in the 
objects, etc., is a real time saver.


So, I'm installed the Visual Studio plugin for Vim and can link to Visual 
Studio from within Vim now.  However, I'm still lacking the IntelliSense.  I 
thought that this would be the answer, 
http://www.vim.org/scripts/script.php?script_id=747 or the site 
http://insenvim.sourceforge.net/.  Is there anything in Vim that acts like 
Intellisense that I can use for C#, C++ and C (the three languages that I'm 
working with)?  


Thanks,
Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?








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



IntelliSense for C#

2009-03-25 Thread Andrew Falanga
Hi,

I asked about this in a thread a few weeks ago to which I got only one
response.  I was linked to something called OmniCppComplete (
http://vim.sourceforge.net/scripts/script.php?script_id=1520).  I'm using
Vim 7.2 and would really prefer to use Vim over Visual Studio.  (Frankly,
it's bad enough having to work in Windows instead of UNIX, being deprived of
Vim is worse.)  The main thing keeping me from using Vim all the time is the
lack of IntelliSense in Vim that is in Visual Studio.  I'm not familiar with
each assembly that I have to link with and using IntelliSense to see what's
in the objects, etc., is a real time saver.

So, I'm installed the Visual Studio plugin for Vim and can link to Visual
Studio from within Vim now.  However, I'm still lacking the IntelliSense.  I
thought that this would be the answer,
http://www.vim.org/scripts/script.php?script_id=747 or the site
http://insenvim.sourceforge.net/.  Is there anything in Vim that acts like
Intellisense that I can use for C#, C++ and C (the three languages that I'm
working with)?

Thanks,
Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

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



Toggle language when I switch to command mode.

2009-03-25 Thread Paris

Hello,

I am using vim to edit documents in greek and it is really frustrating
to have to alt_shift all the time to enter commands. Can vim ignore the
language when in command mode? If not, can I have it toggling the
language while switching to command mode? 

Thanks in advance for any answers.


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



Re: Toggle language when I switch to command mode.

2009-03-25 Thread Agathoklis D. Hatzimanikas

Γειά σου Πάρη,

On Wed, Mar 25, at 08:11 Paris wrote:
 
 Hello,
 
 I am using vim to edit documents in greek and it is really frustrating
 to have to alt_shift all the time to enter commands. Can vim ignore the
 language when in command mode? If not, can I have it toggling the
 language while switching to command mode? 

This can be partly solved by using the 'langmap' option, see help 'langmap'
for details, where is also a specific example for the greek language.

However, until recently (patch 7.2.109) this option was broken for
multibyte locales and judging from the headers of your email this also
should apply to you.

So the recommended solution is to upgrade Vim (current patchlevel is
148).

Regards,
Agathoklis

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



Re: Toggle language when I switch to command mode.

2009-03-25 Thread Paris

Thank you for your fast reply my friend. 
well I checked and:

pa...@protagoras:~$ vim --version
VIM - Vi IMproved 7.2 
Included patches: 1-130

so I guess I might be ok. I will check langmap and I will let you
know...

Ευχαριστώ!


On Wed, 2009-03-25 at 20:58 +0200, Agathoklis D. Hatzimanikas wrote:
 Γειά σου Πάρη,
 
 On Wed, Mar 25, at 08:11 Paris wrote:
  
  Hello,
  
  I am using vim to edit documents in greek and it is really frustrating
  to have to alt_shift all the time to enter commands. Can vim ignore the
  language when in command mode? If not, can I have it toggling the
  language while switching to command mode? 
 
 This can be partly solved by using the 'langmap' option, see help 'langmap'
 for details, where is also a specific example for the greek language.
 
 However, until recently (patch 7.2.109) this option was broken for
 multibyte locales and judging from the headers of your email this also
 should apply to you.
 
 So the recommended solution is to upgrade Vim (current patchlevel is
 148).
 
 Regards,
 Agathoklis
 
  
 
 


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



Re: vim ruby extension and visual selection

2009-03-25 Thread benjamin.thoma...@gmail.com

Hi,
I'm a noob myself but I believe VIM::Buffer.current.line + a vmap
is all you need.
Here's what I've coded recently, maybe that'll help you out:

###
start of vimscript#
###

autocmd bufenter * :call Get_filetype()

nmap S-F4 :call PrependComment(up)cr
nmap F4 :call PrependComment(down)cr
imap S-F4 esc:call PrependComment(up)cr
imap F4 esc:call PrependComment(down)cr

 F16 is C-F4 (for me)
nmap F16 :call PrependComment(stationary)cr
imap F16 esc:call PrependComment(stationary)cr
vmap F4 :call PrependComment(stationary_vmap)cr

fun! Get_filetype()
ruby  EOF_Get_filetype

  filetype = VIM::evaluate(filetype)
  $comment_token = case filetype
  when sh, perl, python, ruby: #
  when c, cpp, java: //
  when vim: ''
  else 
  end
EOF_Get_filetype
endfun

fun! PrependComment(direction)
ruby  EOF_PrependComment

  direction = VIM::evaluate(a:direction)
  if direction == 'up'
VIM.command(normal -)
  end

  line = VIM::Buffer.current.line
  if line =~ /^\s*#{$comment_token}[ [:alnum:]].*/   #
if comment at beginning of line
line.gsub!(/(^\s*)(#{$comment_token}[ ]?)(.*)/, '\1\3')  #
delete comment
  else
if direction == stationary_vmap
  line.gsub!(/.+/, #{$comment_token} \\0)  #
comment token on the far left
else
  line.gsub!(/[^ ].*/, #{$comment_token} \\0)  #
otherwise add comment
end
  end
  VIM::Buffer.current.line = line

  if direction == 'down'
VIM.command(normal +)
  end
EOF_PrependComment
endfun

#
end of vimscript#
#

If that's of any interest, I can send you the rest of the file if you
wish.

All the best and good luck,
Ben


On Mar 25, 10:24 am, anton.hornqu...@gmail.com wrote:
 Hi,

 I've checked the docs on the ruby scripting features in vim but I
 cannot find a way to retrieve the visual selection area in either
 VIM::window or VIM::buffer. Is there any way to do this or any easy
 workaround for this?

 As an example I would like to be able to visually select an area and
 invoke a ruby script that would add a comment line to the top and
 bottom of the selection (while of course preserving undo history).
 Also I would like to be able to select an arbitrary area and execute a
 ruby script that could search in for certain characters in the area.

 /Anton
--~--~-~--~~~---~--~~
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-25 Thread George V. Reilly
The difference is obvious in your screenshot, but I can't repro it. At
high DPI on my Win32 Vista SP1, gvim 7.2.147 looks just as sharp as
Notepad or Notepad++.

Nevertheless, here's a patch. I tested it on XP SP 2 also.

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



On Wed, Mar 25, 2009 at 8:38 AM, Joe Castro joe.cas...@hotmail.com wrote:
 Thanks for the quick response.



 This is a side by side picture of some XML in notepad and Gvim with this
 behavior:

 http://cid-a8c4875178efed94.skydrive.live.com/self.aspx/Public/FuzzyGvim.png

 The system DPI in the shot is 150% normal (144dpi).  The font in both is
 Consolas.



 It's not a clear type issue.  When an app doesn't opt-in to DPI awareness
 Windows just scales the visuals.  I think this is just a matter of calling
 user32!SetProcessDPIAware early near the app's entry point, or embedding a
 manifest along the lines of:

 ?xml version='1.0' encoding='UTF-8' standalone='yes'?
 assembly xmlns=urn:schemas-microsoft-com:asm.v1 manifestVersion=1.0
   asmv3:application xmlns:asmv3=urn:schemas-microsoft-com:asm.v3
     asmv3:windowsSettings
          xmlns=http://schemas.microsoft.com/SMI/2005/WindowsSettings;
       dpiAwaretrue/dpiAware
     /asmv3:windowsSettings
   /asmv3:application
 /assembly



 Everything might automatically work if this was done, though it's likely
 bitmap images on the menus won't look right.  Still I'd rather have fuzzy
 pictures than text :)

 Thanks,

 -Joe



 From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On Behalf
 Of George V. Reilly
 Sent: Tuesday, March 24, 2009 9:20 PM
 To: vim_use@googlegroups.com
 Cc: v...@vim.org
 Subject: Re: Feature Request: Dpi awareness on Windows





 On Tue, Mar 24, 2009 at 1:48 PM, Joe Castro joe.cas...@hotmail.com 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
-~--~~~~--~~--~--~---



vim-high-dpi.patch
Description: Binary data


Re: How to get a '+' in norm fold like diff fold

2009-03-25 Thread Tony Mechelynck

On 25/03/09 15:56, 张书瀚 wrote:
 Hi everyone!
 In diff mode,the fold looks like this:

   some text
 +some thing
   some text

 *If I click '+', the fold will be opened/closed*. But if it is not in
 diff mode, there is no such '+'.
 How to get a similar function for other kinds of fold?

Make sure 'foldcolumn' is non-zero.


Best regards,
Tony.
-- 
Remember, drive defensively!  And of course, the best defense is a good
offense!

--~--~-~--~~~---~--~~
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-25 Thread Joe Castro

XP does DPI scaling differently so I don't think it would be affected the same 
way.  Not sure what the difference would be on Vista for you, it may behave 
differently with DWM on/off?

The patch works great for me. (indirectly, I embedded the manifest using mt 
rather than rebuilding Vim).  Thanks for the quick turnaround!  The toolbar is 
at the size it would be for 96DPI, but other than that I don't see any side 
effects.  Is there anything I should do to hopefully get this included in Vim 
7.3?

Thanks!
-Joe

-Original Message-
From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On Behalf Of 
George V. Reilly
Sent: Wednesday, March 25, 2009 3:03 PM
To: vim_use@googlegroups.com
Cc: v...@vim.org
Subject: Re: Feature Request: Dpi awareness on Windows

The difference is obvious in your screenshot, but I can't repro it. At high DPI 
on my Win32 Vista SP1, gvim 7.2.147 looks just as sharp as Notepad or Notepad++.

Nevertheless, here's a patch. I tested it on XP SP 2 also.

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



On Wed, Mar 25, 2009 at 8:38 AM, Joe Castro joe.cas...@hotmail.com wrote:
 Thanks for the quick response.



 This is a side by side picture of some XML in notepad and Gvim with this
 behavior:

 http://cid-a8c4875178efed94.skydrive.live.com/self.aspx/Public/FuzzyGvim.png

 The system DPI in the shot is 150% normal (144dpi).  The font in both is
 Consolas.



 It's not a clear type issue.  When an app doesn't opt-in to DPI awareness
 Windows just scales the visuals.  I think this is just a matter of calling
 user32!SetProcessDPIAware early near the app's entry point, or embedding a
 manifest along the lines of:

 ?xml version='1.0' encoding='UTF-8' standalone='yes'?
 assembly xmlns=urn:schemas-microsoft-com:asm.v1 manifestVersion=1.0
   asmv3:application xmlns:asmv3=urn:schemas-microsoft-com:asm.v3
 asmv3:windowsSettings
  xmlns=http://schemas.microsoft.com/SMI/2005/WindowsSettings;
   dpiAwaretrue/dpiAware
 /asmv3:windowsSettings
   /asmv3:application
 /assembly



 Everything might automatically work if this was done, though it's likely
 bitmap images on the menus won't look right.  Still I'd rather have fuzzy
 pictures than text :)

 Thanks,

 -Joe



 From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On Behalf
 Of George V. Reilly
 Sent: Tuesday, March 24, 2009 9:20 PM
 To: vim_use@googlegroups.com
 Cc: v...@vim.org
 Subject: Re: Feature Request: Dpi awareness on Windows





 On Tue, Mar 24, 2009 at 1:48 PM, Joe Castro joe.cas...@hotmail.com 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
-~--~~~~--~~--~--~---



Re: Feature Request: Dpi awareness on Windows

2009-03-25 Thread George V. Reilly
I wasn't expecting the change to the manifest to do anything different on
XP; I was confirming that it didn't cause any problems.

I'll try turning off Aero (DWM) tomorrow when I'm at work.

I believe Bram monitors this mailing list, but I'll pass the patch on to him
anyway.
-- 
/George V. Reilly  geo...@reilly.org
http://www.georgevreilly.com/blog  http://blogs.cozi.com/tech


On Wed, Mar 25, 2009 at 4:49 PM, Joe Castro joe.cas...@hotmail.com wrote:


 XP does DPI scaling differently so I don't think it would be affected the
 same way.  Not sure what the difference would be on Vista for you, it may
 behave differently with DWM on/off?

 The patch works great for me. (indirectly, I embedded the manifest using mt
 rather than rebuilding Vim).  Thanks for the quick turnaround!  The toolbar
 is at the size it would be for 96DPI, but other than that I don't see any
 side effects.  Is there anything I should do to hopefully get this included
 in Vim 7.3?

 Thanks!
 -Joe

 -Original Message-
 From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On Behalf
 Of George V. Reilly
 Sent: Wednesday, March 25, 2009 3:03 PM
 To: vim_use@googlegroups.com
 Cc: v...@vim.org
 Subject: Re: Feature Request: Dpi awareness on Windows

 The difference is obvious in your screenshot, but I can't repro it. At high
 DPI on my Win32 Vista SP1, gvim 7.2.147 looks just as sharp as Notepad or
 Notepad++.

 Nevertheless, here's a patch. I tested it on XP SP 2 also.

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



 On Wed, Mar 25, 2009 at 8:38 AM, Joe Castro joe.cas...@hotmail.com
 wrote:
  Thanks for the quick response.
 
 
 
  This is a side by side picture of some XML in notepad and Gvim with this
  behavior:
 
 
 http://cid-a8c4875178efed94.skydrive.live.com/self.aspx/Public/FuzzyGvim.png
 
  The system DPI in the shot is 150% normal (144dpi).  The font in both is
  Consolas.
 
 
 
  It's not a clear type issue.  When an app doesn't opt-in to DPI awareness
  Windows just scales the visuals.  I think this is just a matter of
 calling
  user32!SetProcessDPIAware early near the app's entry point, or embedding
 a
  manifest along the lines of:
 
  ?xml version='1.0' encoding='UTF-8' standalone='yes'?
  assembly xmlns=urn:schemas-microsoft-com:asm.v1 manifestVersion=1.0
asmv3:application xmlns:asmv3=urn:schemas-microsoft-com:asm.v3
  asmv3:windowsSettings
   xmlns=http://schemas.microsoft.com/SMI/2005/WindowsSettings;
dpiAwaretrue/dpiAware
  /asmv3:windowsSettings
/asmv3:application
  /assembly
 
 
 
  Everything might automatically work if this was done, though it's likely
  bitmap images on the menus won't look right.  Still I'd rather have fuzzy
  pictures than text :)
 
  Thanks,
 
  -Joe
 
 
 
  From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On
 Behalf
  Of George V. Reilly
  Sent: Tuesday, March 24, 2009 9:20 PM
  To: vim_use@googlegroups.com
  Cc: v...@vim.org
  Subject: Re: Feature Request: Dpi awareness on Windows
 
 
 
 
 
  On Tue, Mar 24, 2009 at 1:48 PM, Joe Castro joe.cas...@hotmail.com
 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
-~--~~~~--~~--~--~---



syntax file: blocks

2009-03-25 Thread Karl Merkley
I'm becoming more familiar with the syntax file format but I'm still pretty
new at this!

I have a file format that is organized like the following:

begin procedure string

  multiple_procedure commands

  begin region string

 multiple_region_commands

  end [region]

end [procedure]

The string values are variable but required and white space is allowed.
The keywords in the square brackets [ ] are optional.   There are multiple
commands that are only valid in the scope of only the procedure or region.
The separate block types are not recursively defined.

I would like to get syntax highlighting for the scope delimiters and correct
syntax highlighting for the commands that are acceptable in a given scope.

Does anybody have any direction on how I could proceed to create this kind
of syntax file?

   Thanks,
 Karl

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



Re: How to get a '+' in norm fold like diff fold

2009-03-25 Thread 张书瀚
囧……
I can't believe I didn't find it Thank you very much Tony!

On Thu, Mar 26, 2009 at 6:08 AM, Tony Mechelynck 
antoine.mechely...@gmail.com wrote:


 On 25/03/09 15:56, 张书瀚 wrote:
  Hi everyone!
  In diff mode,the fold looks like this:
 
some text
  +some thing
some text
 
  *If I click '+', the fold will be opened/closed*. But if it is not in
  diff mode, there is no such '+'.
  How to get a similar function for other kinds of fold?

 Make sure 'foldcolumn' is non-zero.


 Best regards,
 Tony.
 --
 Remember, drive defensively!  And of course, the best defense is a good
 offense!

 


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