Hi,I hope have one plugn to solve this problem!

2009-04-22 Thread SamPeng
l have same function redo input.I want don't to do it.
like this:
I have one diagnosticate
if ($a=1)
{
echo $a;
}
how can i do for only input any word(eg. input '\if' )can to complete like
this diagnosticate or loop or code;

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



Re: Hi,I hope have one plugn to solve this problem!

2009-04-22 Thread 张书瀚
SnipMate
http://www.vim.org/scripts/script.php?script_id=2540

It is the best one ^_^

On Wed, Apr 22, 2009 at 2:01 PM, SamPeng sampen...@gmail.com wrote:

 l have same function redo input.I want don't to do it.
 like this:
 I have one diagnosticate
 if ($a=1)
 {
 echo $a;
 }
 how can i do for only input any word(eg. input '\if' )can to complete like
 this diagnosticate or loop or code;


 


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



Re: How to open - and fileencodings for various code pages

2009-04-22 Thread 张书瀚
May be you want to try it:
FencView.vim : Autodetect multiple encodings
http://www.vim.org/scripts/script.php?script_id=1708

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



Updates to private Vim packages for Ubuntu

2009-04-22 Thread Matthew Smith

Hi everyone,

I have up-to-date packages of Vim, recompiled from the packages in 
Debian Sid, for Ubuntu Hardy, Intrepid and Jaunty, in my personal 
package archive.  If you want to use them, you need to edit your 
/etc/apt/sources.list file, and add this on its own line (if 
appropriate, replace hardy with intrepid or jaunty):

deb http://ppa.launchpad.net/indigojo/ppa/ubuntu hardy main

The current version is 7.2.148.

Note that if you activate my PPA, the package manager will give you 
warnings because my signature is not recognised.  You can ignore them, 
but you may find the key, and instructions for installing it, at this 
site if you wish:

https://launchpad.net/~indigojo/+archive/ppa

Regards,

Matt Smith

-- 

http://qtm.blogistan.co.uk/

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



Trailing ^M ...

2009-04-22 Thread Kiffin Gish

What's the quickest way to remove all the trailing ^M characters in my
file?

-  
Kiffin Gish kiffin.g...@planet.nl
Gouda, The Netherlands




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



Re: Trailing ^M ...

2009-04-22 Thread Tim Chase

Kiffin Gish wrote:
 What's the quickest way to remove all the trailing ^M characters in my
 file?

Though I think this is one of the FAQs, it's faster to just reply:

   :%s/\r

than to dig up a link to the FAQ :)

-tim



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



customize netrw, remove info header

2009-04-22 Thread Brendon Gleeson

how do i hide this part of the nerw file browser?:

 HIDE 


 Netrw Directory Listing
(netrw v114)
   /home/brendon
   Sorted by  name
   Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,\.[a-np-z]$,*,\.info$,\.swp$,
\.o$\.obj$,\.bak$
   Quick Help: F1:help  -:go up dir  D:delete  R:rename  s:sort-by
x:exec


 /HIDE 
../
./
 i have tried setting g:netrw_menu=0 in .vimrc but it doesn't work?
--~--~-~--~~~---~--~~
You received this message from the vim_use maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



RE: Trailing ^M ...

2009-04-22 Thread John Beckett

Kiffin Gish wrote:
 What's the quickest way to remove all the trailing ^M
 characters in my file?

Tim has beaten me again, but as a matter of interest, the tip
follows (that stuff on the end is ^M):
http://vim.wikia.com/wiki/%5EM

John


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



Re: :map vs. :map! (was Problem inserting '%' in vim)

2009-04-22 Thread Tim Chase

Matt Wozniski wrote:
   :map

 which may indicate that you have an insert-mode mapping for %
 
 That should be
 
 :map!
 
 Note the exclamation point.

Just out of curiosity, what does the ! net you?  I don't use 
mappings often enough (I only have [cni]noremap'ed f1 to esc 
on my machines because I accidentally mash f1 when stabbing for 
esc, particularly on my laptops) to have needed the nuances, 
and couldn't discern the difference from the help on mappings.

I read up at

   :help mapmode-ic

where it details that

Therefore the :map and :map! commands enter and
display mappings for several modes.

and just above the help for

   :help :map_l

I read

   Note that :map and :map! are used most often,
   because they include the other modes.

but neither details the difference between the two.

When I run both commands without parameters, I see different 
results, but I'm not sure what sifts some of my mappings into one 
or the other.

-tim




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



Re: How to open - and fileencodings for various code pages

2009-04-22 Thread David Fishburn

On Tue, Apr 21, 2009 at 11:09 PM, Tony Mechelynck
antoine.mechely...@gmail.com wrote:

 On 21/04/09 21:07, David Fishburn wrote:
...
 When we write out the file (from VB) we can tell it to create a unicode file.

 In VB, I can look up the code page of the email.
 It returns the last set of digits below, so for my Japanese email the
 following is returned by VB: 50220 so using the chart below, I see
 this line:
       Japanese (JIS) iso-2022-jp 50220

 So, now that I have written out a unicode file, I am trying to open it in 
 Vim.
 I can't figure out what the actual :e line is to open this file.

           :e ++enc=utf-16 myfile.txt
           :e ++enc=utf-8 myfile.txt

 Both leave the file unreadable in Vim (upside down question marks fill
 the screen).

 Windows Unicode files are typically little-endian UTF-16, while in
 Vim, if you don't specify the endianness for 16- or 32-bit Unicode you
 get big-endian. So if I were you I'd try

        :e ++enc=utf-16le myfile.txt
...

Thanks Tony, that does open the file into a format that I can actually
read (good).

Only one issue, when I open the file in Vim I get:
rad13544.outlook [converted][CONVERSION ERROR in line 377][unix] 424L, 10698C

Vim leaves the file in RO mode (which makes sense).

Notepad and Microsoft Word open the file without any messages.

Any ideas?

Dave

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



Re: How to open - and fileencodings for various code pages

2009-04-22 Thread David Fishburn

On Tue, Apr 21, 2009 at 4:36 PM, Jason Axelson bostonvaul...@gmail.com wrote:
...
 I know that this isn't what you were asking about specifically, but I
 wanted to mention ViEmu which is a Vim emulator for Outlook, Word, and
 Visual Studio because other people may be interested (and because they
 have an excellent graphical vim cheatsheet). Here is the website
 http://www.viemu.com/

Right, looks good, but of course it isn't Vim.
It only has a small subset of Vi functionality.

All of my customizations, mappings, commands which I have created via
plugins and my .vimrc are not present.

Dave

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



Re: :map vs. :map! (was Problem inserting '%' in vim)

2009-04-22 Thread Matt Wozniski

On Wed, Apr 22, 2009 at 9:38 AM, Tim Chase v...@tim.thechases.com wrote:

 Matt Wozniski wrote:
   :map

 which may indicate that you have an insert-mode mapping for %

 That should be

 :map!

 Note the exclamation point.

 Just out of curiosity, what does the ! net you?  I don't use
 mappings often enough (I only have [cni]noremap'ed f1 to esc
 on my machines because I accidentally mash f1 when stabbing for
 esc, particularly on my laptops) to have needed the nuances,
 and couldn't discern the difference from the help on mappings.

 I read up at

   :help mapmode-ic

 where it details that

    Therefore the :map and :map! commands enter and
    display mappings for several modes.

 and just above the help for

   :help :map_l

 I read

   Note that :map and :map! are used most often,
   because they include the other modes.

 but neither details the difference between the two.

Check out :help map-modes

 When I run both commands without parameters, I see different
 results, but I'm not sure what sifts some of my mappings into one
 or the other.

:map lists normal, visual, select, and operator pending mappings,
:map! lists insert, command line, and language mappings.

~Matt

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



Re: Hi,I hope have one plugn to solve this problem!

2009-04-22 Thread Ben Fritz



On Apr 22, 1:01 am, SamPeng sampen...@gmail.com wrote:
 l have same function redo input.I want don't to do it.
 like this:
 I have one diagnosticate
 if ($a=1)
 {
 echo $a;}

 how can i do for only input any word(eg. input '\if' )can to complete like
 this diagnosticate or loop or code;

If you don't need to do this all that often, or don't feel like
downloading a plugin, this is a perfect task for macro recording.

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



Re: Entering in visual mode selecting the next character

2009-04-22 Thread Ben Fritz



On Apr 21, 9:34 pm, Tony Mechelynck antoine.mechely...@gmail.com
wrote:

 However, hitting Ctrl-O in Insert mode will let you execute exactly one
 Normal-mode command without first moving the cursor, so Ctrl-O v should
 visually highlight the current character. You would then be in Visual
 mode, but when you leave Visual mode you'll return to Insert mode: the
 'showmode' message at the very bottom says (insert) VISUAL.


Actually, CTRL-O will still move the cursor to be on a real character,
for example it will move the cursor backwards if at the end of the
line. CTRL-\ CTRL-O will execute a normal command without moving the
cursor. :help i_CTRL-\_CTRL-O
--~--~-~--~~~---~--~~
You received this message from the vim_use maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: :map vs. :map! (was Problem inserting '%' in vim)

2009-04-22 Thread Ben Fritz



On Apr 22, 8:38 am, Tim Chase v...@tim.thechases.com wrote:
 Just out of curiosity, what does the ! net you?  I don't use
 mappings often enough (I only have [cni]noremap'ed f1 to esc
 on my machines because I accidentally mash f1 when stabbing for
 esc, particularly on my laptops) to have needed the nuances,
 and couldn't discern the difference from the help on mappings.


Basically, :map will show you normal, visual, and operator pending
mode maps only. :map! will show you insert and command-line mode maps
only.

Since the problem here was possibly an insert-mode mapping, :map! was
needed instead of :map.
--~--~-~--~~~---~--~~
You received this message from the vim_use maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: :map vs. :map! (was Problem inserting '%' in vim)

2009-04-22 Thread Tim Chase

Matt Wozniski wrote:
 I read up at

   :help mapmode-ic
 and just above the help for
   :help :map_l
 but neither details the difference between the two.
 
 Check out :help map-modes

I've reread that section a third time (it's just above the 
mapmode-ic I had already read), and it takes seeing all three 
tables/sections (mapmode-nvo, mapmode-ic, and mapmode-x) as 
interrelated and mutually exclusive to discern 

 :map lists normal, visual, select, and operator pending mappings,
 :map! lists insert, command line, and language mappings.

 from that.  It might help to tweak the brief text at help 
map-modes to mention all three sections together to group them 
conceptually:

   Overview of which map command works in which mode:
|mapmode-nvo|, |mapmode-x|, |mapmode-ic|

(as an aside, it looks like there should be a help-target for 
mapmode-xs to follow the pattern of the other groupings)

Thanks for pointing me to the bigger-picture structure of that 
section.

-tim



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



ruby.vim error

2009-04-22 Thread Brandon Olivares

Hi,

I'm using Vim 7.1 on Cygwin.

When I set:

filetype plugin on

And then I open a .rb file in Vim, it throws an error. It's hard to paste it
because it only flashes in the status bar, but it says something like
cannot open file /tmp/ It refers to ftplugin/ruby.vim line 81.

I have been searching on Google for days, and can't find anything. Any idea
why this could be happening?

Thanks,
Brandon

www.perpetualseeker.com
Blog about college, programming, and other random things.
Follow me on Twitter: http://twitter.com/devbanana




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



Vim 7.2 on Solaris 10 Sparc

2009-04-22 Thread Roy Fulbright

I just installed (via pkgadd) Vim 7.2 on Solaris 10 Sparc after installing all

the prerequisites (glib, gtk+, ncurses, libgcc, libiconv, libintl). All the 
installs

completed successfully. When I run gvim I get the following error messages:

 

   Gdk-ERROR **: BadAccess (attempt to access private resources denied)

 serial 1711 error code 10 request_code 102 minor_code 0

   Gdk-ERROR **: BadAccess (attempt to access private resources denied)

 serial 1714 error code 10 request_code 102 minor_code 0

 

I have checked the permissions on all the paths under /usr/local where Vim was

installed, and they are all OK (0755). The messages do not say _what_ private

resources are denied. Any ideas on what may be causing this?

 

Thanks,

Roy Fulbright

 

_
Rediscover Hotmail®: Now available on your iPhone or BlackBerry
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile2_042009
--~--~-~--~~~---~--~~
You received this message from the vim_use maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: ruby.vim error

2009-04-22 Thread Dennis Benzinger

Am 22.04.2009 16:46, Brandon Olivares schrieb:
 Hi,
 
 I'm using Vim 7.1 on Cygwin.
 
 When I set:
 
 filetype plugin on
 
 And then I open a .rb file in Vim, it throws an error. It's hard to paste it
 because it only flashes in the status bar, but it says something like
 cannot open file /tmp/
 [...]

Try the :messages command and post the complete message.

Can you update to a newer version of Vim? 7.1 is quite old.


Regards,
Dennis Benzinger

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



Re: listchars, tabs, and syntax colors through a terminal

2009-04-22 Thread Tiancheng

here's two images of my terminal

one with no colorscheme:
http://i37.photobucket.com/albums/e65/tiancheng/Picture3.png

one with slate colorscheme:
http://i37.photobucket.com/albums/e65/tiancheng/Picture4-1.png


both have the SpecialKeys highlighted...
haha, i have no idea what's going on anymore. :P  nothing i set
manually changes how the SpecialKey group shows up.

On Apr 21, 5:47 pm, Tony Mechelynck antoine.mechely...@gmail.com
wrote:
 On 22/04/09 01:07, Tiancheng wrote:



  nope, this doesn't help.  i've tried all sorts of different
  combinations of setting for SpecialKey... nothing works.  It's almost
  like, it's hard coded to always display slightly differently... and
  then my terminal displays it in a highlighted block haha

 What happens if you use the default colours? (you can get them by
 setting :colorscheme default if some colorscheme is already set, or at
 startup by removing or commenting out the :colorscheme line in your
 vimrc).

 Best regards,
 Tony.
 --
 Drawing on my fine command of language, I said nothing.
--~--~-~--~~~---~--~~
You received this message from the vim_use maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: listchars, tabs, and syntax colors through a terminal

2009-04-22 Thread Matt Wozniski

On Wed, Apr 22, 2009 at 2:40 PM, Tiancheng wrote:

 here's two images of my terminal

 one with no colorscheme:
 http://i37.photobucket.com/albums/e65/tiancheng/Picture3.png

 one with slate colorscheme:
 http://i37.photobucket.com/albums/e65/tiancheng/Picture4-1.png


 both have the SpecialKeys highlighted...
 haha, i have no idea what's going on anymore. :P  nothing i set
 manually changes how the SpecialKey group shows up.

Can you paste the rest of your vimrc for us?  One of the settings
there might be interfering.

 On Apr 21, 5:47 pm, Tony Mechelynck antoine.mechely...@gmail.com
 wrote:
 On 22/04/09 01:07, Tiancheng wrote:

Please bottom post on this list in the future; it's the list policy.

~Matt

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



renaming scratch buffer

2009-04-22 Thread Y. Hida

Is there a way to name a scratch buffer other than [Scratch] and still
be able to have multiple buffers with same name?  Right now I have a
bunch of scratch buffers:

:ls
  1 #a   [No Name]line 1
  2  h-  [Scratch]line 1
  3  a-  [Scratch]line 0
  4 %a-  [Scratch]line 1

and I'd like to rename some subset as [My scratch] or some such.

If I try 

  :f [My scratch] 

to more than one scratch buffer, it complains that buffers cannot have
the same name.

-Yozo



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



RE: ruby.vim error

2009-04-22 Thread Brandon Olivares



 -Original Message-
 From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On
 Behalf Of Dennis Benzinger
 Sent: Wednesday, April 22, 2009 12:57 PM
 To: vim_use@googlegroups.com
 Cc: v...@vim.org
 Subject: Re: ruby.vim error
 
 
 Try the :messages command and post the complete message.
 

Error detected while processing
/usr/local/share/vim/vim71/ftplugin/ruby.vim:
line   81:
E484: Can't open file /tmp/v433932/0

 Can you update to a newer version of Vim? 7.1 is quite old.
 

Sure I can try that. I'll report back if it works.

Thanks,
Brandon

 
 Regards,
 Dennis Benzinger
 
 

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



Re: renaming scratch buffer

2009-04-22 Thread Tim Chase

Y. Hida wrote:
 Is there a way to name a scratch buffer other than [Scratch] and still
 be able to have multiple buffers with same name?  Right now I have a
 bunch of scratch buffers:
 
 :ls
   1 #a   [No Name]line 1
   2  h-  [Scratch]line 1
   3  a-  [Scratch]line 0
   4 %a-  [Scratch]line 1
 
 and I'd like to rename some subset as [My scratch] or some such.
 
 If I try 
 
   :f [My scratch] 
 
 to more than one scratch buffer, it complains that buffers cannot have
 the same name.

The :file command is the right way to go.  You may be hitting 
one of two problems that occur to me:

1) if your new name is literally [My scratch], the [ and ] 
characters may be intercepted as shell metachars and trigger 
weirdness.  Try without them:

   :file my_scratch

2) you didn't include the error number, but if you're getting an 
E95: buffer with this name already exists, choose another name 
for the 2nd buffer.

-tim





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



Re: renaming scratch buffer

2009-04-22 Thread Y. Hida

On 2009-04-22, Tim Chase v...@tim.thechases.com wrote:

 Y. Hida wrote:
 Is there a way to name a scratch buffer other than [Scratch] and still
 be able to have multiple buffers with same name?  Right now I have a
 bunch of scratch buffers:
 
 2) you didn't include the error number, but if you're getting an 
 E95: buffer with this name already exists, choose another name 
 for the 2nd buffer.

Thanks.  Yes, this is what I'm encountering.  I guess I have to keep my
scratch buffer names unique, perhaps by appending an increasing number
(the scratch buffer is being opened by a script I'm writing).

-Yozo



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



Re: display width of strings with double-width characters

2009-04-22 Thread Y. Hida

On 2009-04-16, Tony Mechelynck antoine.mechely...@gmail.com wrote:

 Y. Hida wrote:
Is there a way figure out how wide a string containing double-width
 characters are when displayed?  I'm trying to right-justify some strings
 in foldtext.

snip



 Here's another proposal, which can meet every possibility, and doesn't 
 loop over all characters (faster for long strings), but at the cost of 
 opening a temporary window (IOW, it requires has('windows))

   function VirtLen(string)
   new
   0put =a:string
   let rv = virtcol('$') - 1
   q!
   return rv
   endfunction


After some digging I found out that this doesn't work for foldtext since
it is evaluated in a sandbox.  Argh.  I guess I'll either use the other
poster's method, or use perl (apparently you can use perl from sandbox ?)

-Yozo



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



RE: ruby.vim error

2009-04-22 Thread Brandon Olivares





 -Original Message-
 From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On
 Behalf Of Dennis Benzinger
 Sent: Wednesday, April 22, 2009 12:57 PM
 To: vim_use@googlegroups.com
 Cc: v...@vim.org
 Subject: Re: ruby.vim error
 
 
 Am 22.04.2009 16:46, Brandon Olivares schrieb:
  Hi,
 
  I'm using Vim 7.1 on Cygwin.
 
  When I set:
 
  filetype plugin on
 
  And then I open a .rb file in Vim, it throws an error. It's hard to
 paste it
  because it only flashes in the status bar, but it says something like
  cannot open file /tmp/
  [...]
 
 Try the :messages command and post the complete message.
 
 Can you update to a newer version of Vim? 7.1 is quite old.
 

Recompiled, it gives the same error, same line, only difference is it's
/usr/local/share/vim/vim72 instead of /usr/local/share/vim/vim71.

Sometimes it doesn't give the error. Occasionally it'll just open the file
without any error. But if I quit and open it again, usually I twill give the
error again. I thought this was almost solved because it actually ran twice
without the error.

What happens is I open it, and it stalls for about 10 seconds, flashes this
error, before displaying the content of the file.

Thanks,
Brandon

 
 Regards,
 Dennis Benzinger
 
 
www.perpetualseeker.com
Blog about college, programming, and other random things.
Follow me on Twitter: http://twitter.com/devbanana


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



Re: listchars, tabs, and syntax colors through a terminal

2009-04-22 Thread Tiancheng

sorry about that matt.

matt, you're a genius :P

i went through my vimrc commenting out different lines and this line
was the culprit:
set highlight=8r,db,es,hs,mb,Mr,nu,rs,sr,tb,vr,ws

i don't even know what that line does hehehe (I can't find any
documentation on that syntax for set highlight

after i commented out that line, everything else worked perfectly!

so can you point me in the right direction of some documentation for
that line?  i'd like to find out why i had that in the first place,
and whether or not i want to keep it for the future.

On Apr 22, 12:59 pm, Matt Wozniski m...@drexel.edu wrote:
 On Wed, Apr 22, 2009 at 2:40 PM, Tiancheng wrote:

  here's two images of my terminal

  one with no colorscheme:
 http://i37.photobucket.com/albums/e65/tiancheng/Picture3.png

  one with slate colorscheme:
 http://i37.photobucket.com/albums/e65/tiancheng/Picture4-1.png

  both have the SpecialKeys highlighted...
  haha, i have no idea what's going on anymore. :P  nothing i set
  manually changes how the SpecialKey group shows up.

 Can you paste the rest of your vimrc for us?  One of the settings
 there might be interfering.

  On Apr 21, 5:47 pm, Tony Mechelynck antoine.mechely...@gmail.com
  wrote:
  On 22/04/09 01:07, Tiancheng wrote:

 Please bottom post on this list in the future; it's the list policy.

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



digraphs available in gvim but not vim

2009-04-22 Thread Vera, Pedro L.

Hello:
I want to enter the greek letter 'mu' in my text. I can't see the digraph using 
vim console (get a number of  question marks next to character codes), however, 
I can easily see them using gvim.

Aside from using gvim for this particular file, is there another solution so 
that I  can use the digraphs in vim console?

By the way, I'm running vim in my Linux (AntiX; debian derivative) system.

thanks.

Pedro

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



Re: customize netrw, remove info header

2009-04-22 Thread _sc_

On Wednesday 22 April 2009 2:38 pm, Charles Campbell wrote:
 
 Brendon Gleeson wrote:
  how do i hide this part of the nerw file browser?:
 
   HIDE 
  
  
   Netrw Directory Listing
  (netrw v114)
 /home/brendon
 Sorted by  name
 Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,\.[a-np-z]$,*,\.info$,\.swp$,
  \.o$\.obj$,\.bak$
 Quick Help: F1:help  -:go up dir  D:delete  R:rename  s:sort-by
  x:exec
  
  
   /HIDE 
  ../
  ./
   i have tried setting g:netrw_menu=0 in .vimrc but it doesn't work?

 Setting g:netrw_menu to zero works; its just that it suppresses 
 generation of the pull-down
 menu usually available under the gui-version of vim (gvim), not the banner.
 
 There is no option to suppress the banner.

could there be, if we asked nicely?

sc



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



Re: ruby.vim error

2009-04-22 Thread Matt Wozniski

Brandon Olivares wrote:
 Dennis Benzinger wrote:

 Try the :messages command and post the complete message.

 Error detected while processing
 /usr/local/share/vim/vim71/ftplugin/ruby.vim:
 line   81:
 E484: Can't open file /tmp/v433932/0

What is the output of this command:

:verb set shell? shcf? sxq? srr? sp? shq?

Is there anything unusual in your vimrc?  It seems like a completely innocuous
system() command is failing, which would indicate that some of your shell
settings are in some way wrong... though I'm not sure why it would work some of
the time.

~Matt

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



RE: digraphs available in gvim but not vim

2009-04-22 Thread Vera, Pedro L.

Matt:

thanks for your help. Even though I can see 'mu' and can insert it into text 
using gvim, cat 'file' still displays just '?' where the character should go. 
So I guess that this  terminal (rox-term) is not configured to display greek 
letters. I'll have to figure out how to set it up.

Pedro

Matt wrote:

If you write a mu into a file with gvim, can you view it on the
command line with cat?  With vim?  Either your vim encoding is wrong,
or your terminal font doesn't contain the glyph for mu.

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



Re: listchars, tabs, and syntax colors through a terminal

2009-04-22 Thread Matt Wozniski

On Wed, Apr 22, 2009 at 5:38 PM, Tiancheng wrote:
 i went through my vimrc commenting out different lines and this line
 was the culprit:
 set highlight=8r,db,es,hs,mb,Mr,nu,rs,sr,tb,vr,ws

 i don't even know what that line does hehehe (I can't find any
 documentation on that syntax for set highlight

 after i commented out that line, everything else worked perfectly!

 so can you point me in the right direction of some documentation for
 that line?  i'd like to find out why i had that in the first place,
 and whether or not i want to keep it for the future.

:help 'highlight'

In particular, you'll note that 8r (the first thing in that list),
says that you want to use reverse video instead of SpecialKey.

~Matt

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



RE: ruby.vim error

2009-04-22 Thread Brandon Olivares




 -Original Message-
 From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On
 Behalf Of Matt Wozniski
 Sent: Wednesday, April 22, 2009 8:20 PM
 To: vim_use@googlegroups.com
 Subject: Re: ruby.vim error
 
 
 Brandon Olivares wrote:
  Dennis Benzinger wrote:
 
  Try the :messages command and post the complete message.
 
  Error detected while processing
  /usr/local/share/vim/vim71/ftplugin/ruby.vim:
  line   81:
  E484: Can't open file /tmp/v433932/0
 
 What is the output of this command:
 
 :verb set shell? shcf? sxq? srr? sp? shq?
 

shell=sh
  shellcmdflag=-c
  shellxquote=
  shellredir=%s 21
  shellpipe=21| tee
  shellquote=

 Is there anything unusual in your vimrc?  It seems like a completely
 innocuous
 system() command is failing, which would indicate that some of your
 shell
 settings are in some way wrong... though I'm not sure why it would work
 some of
 the time.
 

I don't think there's anything unusual in the vimrc. I deleted all of the lines 
except:

set nocompatible
filetype on
filetype plugin on

And it still has that error.

Thanks,
Brandon

 ~Matt
 
 
www.perpetualseeker.com
Blog about college, programming, and other random things.
Follow me on Twitter: http://twitter.com/devbanana



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



Re: ruby.vim error

2009-04-22 Thread bill lam
On Wed, 22 Apr 2009, Brandon Olivares wrote:
 I don't think there's anything unusual in the vimrc. I deleted all of the 
 lines except:

Apparently ruby.vim will itself execute ruby code when loading. Did
your vim compiled with ruby enabled as checked by :version?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩200 韓翃  同題仙游觀
仙臺初見五城樓  風物淒淒宿雨收  山色遙連秦樹晚  砧聲近報漢宮秋
疏松影落空壇靜  細草香閑小洞幽  何用別尋方外去  人間亦自有丹丘

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



Vimplugin: does it work on Vista or OS X?

2009-04-22 Thread George V. Reilly
On Mon, Apr 6, 2009 at 11:46 AM, George V. Reilly geo...@reilly.org wrote:
 On Sun, Apr 5, 2009 at 9:32 PM, George V. Reilly geo...@reilly.org
wrote:
  Does Vimplugin work on OS X?
 
  I installed eclipse-SDK-3.4.2-macosx-carbon.tar.gz, the Aptana plugin,
  and the Vim plugin. Aptana is working fine.
 
  The Vim plugin shows up in the Preferences. I configured the path to
  gvim as /Applications/MacVim.app/Contents/MacOS/Vim and left the Port,
  Host, and Password parameters at their defaults. I tried enabling and
  disabling Embedding, but neither had any apparent effect.


 I installed eclipse-SDK-3.4.2-win32.zip on Vista this morning. This
 time, I read the installation instructions a little more carefully and
 associated *.py with Vim.

 Regardless of whether I embed Vim or not, I get the following error.
 If it's not embedded, I briefly see gvim flicker into existence, then
 disappear.

 java.lang.ClassCastException: org.eclipse.ui.ide.FileStoreEditorInput
 cannot be cast to org.eclipse.ui.IFileEditorInput
 at
org.vimplugin.editors.AbstractVimEditor.createPartControl(AbstractVimEditor.java:148)
 at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
 at
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
 at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
 at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:306)
 ... [long stacktrace omitted]

I tried installing Vimplugin for Eclipse on both Mac OS X 10.5 and Vista
a couple of weeks ago, without success.
I mailed the Vimplugin-devel list, asking for tips, but got no answer.
That list is overrun with spam.

Anyone here have any better luck?
-- 
/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
-~--~~~~--~~--~--~---