Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

vim · Vim (Vi IMproved) text editor users list

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 129353 - 129382 of 137824   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#129353 From: Marco <gaedol@...>
Date: Fri Mar 2, 2012 12:38 pm
Subject: Alternating lines' color
gaedol@...
Send Email Send Email
 
Hi,

I'd like to have lines' color alternating in both vim/terminal and in
gvim.
I have had a look on google and on themes but nothing seems to fit my
requirements: I don't want something I turn on and off, I simply want
it as a color.....

Ideas? Suggestions? RTFM with links provided? :)

Thanks in advance,

marco

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129354 From: Daniel Fetchinson <fetchinson@...>
Date: Fri Mar 2, 2012 10:22 am
Subject: Re: gnu scientific library reference like crefvim
fetchinson@...
Send Email Send Email
 
>> Hi folks, there is the excellent C reference help file for vim
>>
>> http://www.vim.org/scripts/script.php?script_id=614
>>
>> and I was wondering whether such a thing exists for gsl, the GNU
>> Scientific Library.
>>
>> Any ideas?
>>
> Well, something related -- you might find
> http://drchip.0sites.net/astronaut/vim/index.html#HINTS_GSL of interest.

Sounds good, but there is a problem with your hosting provider.

Cheers,
Daniel



> What it does is, when you insert   thefunctionname(   the prototype for
> thefunctionname will show on the bottom of your vim console.
>
> Regards,
> Chip Campbell
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>


--
Psss, psss, put it down! - http://www.cafepress.com/putitdown

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129355 From: Ben Fritz <fritzophrenic@...>
Date: Fri Mar 2, 2012 5:36 pm
Subject: Re: Alternating lines' color
fritzophrenic@...
Send Email Send Email
 
On Mar 2, 6:38 am, Marco <gae...@...> wrote:
> Hi,
>
> I'd like to have lines' color alternating in both vim/terminal and in
> gvim.
> I have had a look on google and on themes but nothing seems to fit my
> requirements: I don't want something I turn on and off, I simply want
> it as a color.....
>
> Ideas? Suggestions? RTFM with links provided? :)
>

What do you want, exactly? I'm not clear what you're asking for. I
thought from the first statement that you wanted to have odd lines
have a different color than even lines. I had to dig, but I found
these:

http://groups.google.com/group/vim_use/browse_thread/thread/83fa20161cf8acc5/f9b\
96825e9bfd468
http://groups.google.com/group/vim_use/browse_thread/thread/10e455c3619f9a34/cde\
8fad4da3a77dd

In the first I created a script which I may have modified since, I
will attach in a new post (google groups web interface doesn't allow
attachments, I need to post to get an email to reply to).

If instead, you want to simply change the color of something (which
seems to be what your second statement indicates), then you can
install a new colorscheme, or find one which is "pretty close" to what
you want, copy, and edit it. gvim supports 256*256*256 possible
colors, I'm sure you can find one you like.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129356 From: Benjamin Fritz <fritzophrenic@...>
Date: Fri Mar 2, 2012 5:39 pm
Subject: Re: Alternating lines' color
fritzophrenic@...
Send Email Send Email
 
Script attached to make odd and even lines have a different background
color. Simply source this script in your .vimrc and define a highlight
for EvenLbg to use.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129357 From: Ben Fritz <fritzophrenic@...>
Date: Fri Mar 2, 2012 5:42 pm
Subject: Re: Script mtime on vim.org
fritzophrenic@...
Send Email Send Email
 
On Mar 2, 1:52 am, Andre Majorel <aym-...@...> wrote:
> Hello all. Is there a way to download a script from vim.org
> without losing the timestamp ? So that after downloading a
> script, the mtime of the local file reflects the date of upload,
> not the date of download.
>
> Not through download_script.php, that's for sure. No
> Last-Modified: header there.
>

Why do you need this? Maybe there's a different solution someone could
suggest.

You could ask the script maintainer to package it in an archive of
some kind, I think most of those preserve file modification time. I
know .zip does, anyway. But I'm not sure they'd be that receptive.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129358 From: Marco <gaedol@...>
Date: Fri Mar 2, 2012 5:55 pm
Subject: Re: Alternating lines' color
gaedol@...
Send Email Send Email
 
On Fri, Mar 2, 2012 at 6:36 PM, Ben Fritz <fritzophrenic@...> wrote:
[snip]

> If instead, you want to simply change the color of something (which
> seems to be what your second statement indicates), then you can
> install a new colorscheme, or find one which is "pretty close" to what
> you want, copy, and edit it. gvim supports 256*256*256 possible
> colors, I'm sure you can find one you like.

Hi,

no sorry, it's that I found a script which, once you bind it to a key,
does the alternating lines trick.

Thank you!

marco

PS
more in the next mail, be prepared! :)

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129359 From: Marco <gaedol@...>
Date: Fri Mar 2, 2012 6:01 pm
Subject: Re: Alternating lines' color
gaedol@...
Send Email Send Email
 
On Fri, Mar 2, 2012 at 6:39 PM, Benjamin Fritz <fritzophrenic@...> wrote:
> Script attached to make odd and even lines have a different background
> color. Simply source this script in your .vimrc and define a highlight
> for EvenLbg to use.


Hi,

ok for sourcing, but I am not really vimscript-prone: what is that
EvenLbg you mention?
(yeah, I have seen it in the script!).

Thanks!

marco

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129360 From: Ben Fritz <fritzophrenic@...>
Date: Fri Mar 2, 2012 6:37 pm
Subject: Re: Alternating lines' color
fritzophrenic@...
Send Email Send Email
 
On Mar 2, 12:01 pm, Marco <gae...@...> wrote:
> On Fri, Mar 2, 2012 at 6:39 PM, Benjamin Fritz <fritzophre...@...>
wrote:
> > Script attached to make odd and even lines have a different background
> > color. Simply source this script in your .vimrc and define a highlight
> > for EvenLbg to use.
>
> Hi,
>
> ok for sourcing, but I am not really vimscript-prone: what is that
> EvenLbg you mention?
> (yeah, I have seen it in the script!).
>

The script I attached will set up a :sign on every even line, to allow
it to work without interfering with syntax definitions, and to
highlight the entire line (even places in the line where there is no
text). The threads I refer to also show how to do it with syntax
definitions (which will interfere with existing syntax but be much
faster), or with matchadd() (which will not interfere with existing
syntax), however neither of these color the entire line, they only
color the part of the line with text in it.

The signs defined by the script will use the color defined by the
EvenLbg highlight group. This group does not exist by default. You
will need to add a highlight definition similar to the highlight
definitions in colorscheme scripts. For example,

:hi EvenLbg guibg=DarkRed

or

:hi EvenLbg guibg=#c0ffee

You will need to define this highlight group in a way which does not
get overwritten by your chosen colorscheme, assuming you have one.

One option is to add this definition to your .vimrc in a ColorScheme
autocmd:

autocmd ColorScheme * hi EvenLbg guibg=#c0ffee

Another option is to actually edit your chosen colorscheme to add this
line (preferably editing a copy placed in ~/.vim/colors on Unix, or
$HOME/vimfiles/colors on Windows; not the version in your runtime
files).

If you do not use any colorscheme you can just add the command to
your .vimrc directly.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129361 From: Tarlika Elisabeth Schmitz <vim@...>
Date: Fri Mar 2, 2012 6:36 pm
Subject: Re: creating syntax file - syn match problem
vim@...
Send Email Send Email
 
On Fri, 2 Mar 2012 09:24:28 -0800 (PST)
Ben Fritz <fritzophrenic@...> wrote:

>> b) multi-line blocks
>>  - are delimited by any number of braces (min 3)
>
>For this, I think you'll need to compromise and select some maximum
>number of braces to allow highlighting for.

I can happily settle for 4.

>>  - the code may contain sets of curly braces (they don't need to
>> match)
>
>I'm not sure what you mean by this. Are you saying {{{ does not always
>start a code block?

correct. {{{ does not start a code block if it is inside a code block.
Curly braces inside a code block are just text.

>>  - the block is closed by the first set of braces that contains the
>> same number of braces as the opening set
>
>This makes sense. But can blocks with the same number of braces nest?
>Can groups overlap, e.g. is this valid?
>
>begin block1 {{{
>code
>begin block2 {{{{
>end block1 }}}
>end block2 }}}}

There is no overlapping. Here, the first set of braces {{{ starts a
code block, which is terminated by }}}. The text enclosed between those
two sets of braces is "code". "end block2 }}}}" has no meaning and
should remain uncoloured.

Therefore, I would like {{{ and }}} to be highlighted blue and the text
inbetween green.


--
Tarlika

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129362 From: Tim Chase <vim@...>
Date: Fri Mar 2, 2012 6:53 pm
Subject: Re: abbreviation does not work after map <CR>
vim@...
Send Email Send Email
 
On 03/02/12 11:01, Christian Brabandt wrote:
> I think, this is because of the 'cpo' option including the '<' char (see
> :h cpo-<) which means, vim doesn't recognize<c-g>u as breaking the undo
> sequence. If you set cpo-=<  cpo-=u it should work however.

Issuing

    vim -u NONE
    :set cpo-=<
    :iab aa American Airlines
    :inoremap <cr> <c-]><c-g>u<cr>

is enough to re-trigger the breaking that was working fine
without the "set cpo-=<" in that sequence.

>> 1) when 'nocp' is set, using<c-]>  in a mapping doesn't expand
>> abbreviations.
>
> This seems like a bug, and here is a patch. I am not sure, this is the
> correct way to approach this bug, but it works for me™

[patch snipped]

sounds like enough to either get a reviewer's eyes to make sure
it's kosher, or have somebody poke in the Right™ place. :)

-tim


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129363 From: Bram Moolenaar <Bram@...>
Date: Fri Mar 2, 2012 8:33 pm
Subject: Re: Google Code Search shut down
Bram@...
Send Email Send Email
 
Marc Weber wrote:

The codesearch part didn't show up for me (in Chrome).  I removed it now.

> I forgot to say that these engines where listed a "alternatives"
> because they don't strip symbols while indexing.. I haven't tested them
>
> symbol search
> http://symbolhound.com/
> regex search
> http://searchco.de/

But can you restrict the search to Vim scripts only?

--
hundred-and-one symptoms of being an internet addict:
126. You brag to all of your friends about your date Saturday night...but
      you don't tell them it was only in a chat room.

  /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129364 From: Marco <gaedol@...>
Date: Fri Mar 2, 2012 9:19 pm
Subject: Re: Alternating lines' color
gaedol@...
Send Email Send Email
 
Hi Ben,

thanks a lot. It works great.
Now I just need to find a set of colors to which I can stare for some
6-8 hours a day without getting blind! :)

Thank you,

marco

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129365 From: Kartik Agaram <akkartik@...>
Date: Fri Mar 2, 2012 9:21 pm
Subject: Dr Chip
akkartik@...
Send Email Send Email
 
Holy crap, I just realized that Dr Chip's vim page is gone.

http://mysite.verizon.net/astronaut/vim
http://drchip.0sites.net/astronaut/vim

Has anyone else noticed this? Is it moved somewhere new?

Kartik
http://akkartik.name/code

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129366 From: "Benjamin R. Haskell" <vim@...>
Date: Fri Mar 2, 2012 9:32 pm
Subject: Re: Google Code Search shut down
vim@...
Send Email Send Email
 
On Fri, 2 Mar 2012, Marc Weber wrote:

> I commented that piece of code. Thus consider it being fixed.

Is the website's codebase publicly available?  The CVS repo at
vimonline.sf.net appears to be very out-of-date.

--
Best,
Ben

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129367 From: Marc Weber <marco-oweber@...>
Date: Fri Mar 2, 2012 9:58 pm
Subject: Re: Google Code Search shut down
marco-oweber@...
Send Email Send Email
 
Excerpts from Benjamin R. Haskell's message of Fri Mar 02 22:32:09 +0100 2012:
> Is the website's codebase publicly available?  The CVS repo at
> vimonline.sf.net appears to be very out-of-date.
Bram decided to not publish it for security reasons.

I personally think that we could risk it - if we published it and doing
backups.

But I'd also like to add some more features such as
   - code browsing
   - git based wiki everybody can contribute to
   - ....

Another guy (Cameron Eagons) started a rewrite 2 month ago, his code can
be found here. However it looks like it stalled:
https://github.com/cweagans/vim.org

I'd like to improve these things / see them improved:
   - add kind of wiki (because lot's of content should be improved)
   - add a way to report strange scripts and a button (for admins) to
     delete them. Its not a big issue.
   - remove the "negative" voting or force users to also provide a comment
     why negative voting happens.
   - allow browsing code (master branch, latest revision of plugins)
   - code word search (based on simple bloom filters or grepping - don't know
     yet)
   - show top level README files and doc/*.txt files (getting rid of the
     install instructions you see now which means duplicate work at least for
     devs)

However I'd also like to add JS v8 support sometime in the future -
Maybe I never get started.

Marc Weber

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129368 From: susie <susiebily@...>
Date: Sat Mar 3, 2012 1:31 am
Subject: Re: Google Code Search shut down
susiebily@...
Send Email Send Email
 
Hi all,
If you get a chance, check out Code Sight at blackducksoftware.com/
code-sight.  You could index the appropriate vim code for search.  You
can put a search box on your site that makes an http request and
receive back html.  How many LOCs do you guys have?

In the meantime, we're working to upgrade koders.com to use the Code
Sight search engine (plus a few more features) and the list of
projects from Ohloh.  So in the future, you would be able to do a
search against koders.com in a similar way (even including a specific
project in the query) without having to index your code.

what do you think?  would this help?

best regards,
Susie

On Mar 2, 1:58 pm, Marc Weber <marco-owe...@...> wrote:
> Excerpts from Benjamin R. Haskell's message of Fri Mar 02 22:32:09 +0100
2012:> Is the website's codebase publicly available?  The CVS repo at
> > vimonline.sf.net appears to be very out-of-date.
>
> Bram decided to not publish it for security reasons.
>
> I personally think that we could risk it - if we published it and doing
> backups.
>
> But I'd also like to add some more features such as
>   - code browsing
>   - git based wiki everybody can contribute to
>   - ....
>
> Another guy (Cameron Eagons) started a rewrite 2 month ago, his code can
> be found here. However it looks like it
stalled:https://github.com/cweagans/vim.org
>
> I'd like to improve these things / see them improved:
>   - add kind of wiki (because lot's of content should be improved)
>   - add a way to report strange scripts and a button (for admins) to
>     delete them. Its not a big issue.
>   - remove the "negative" voting or force users to also provide a comment
>     why negative voting happens.
>   - allow browsing code (master branch, latest revision of plugins)
>   - code word search (based on simple bloom filters or grepping - don't know
>     yet)
>   - show top level README files and doc/*.txt files (getting rid of the
>     install instructions you see now which means duplicate work at least for
>     devs)
>
> However I'd also like to add JS v8 support sometime in the future -
> Maybe I never get started.
>
> Marc Weber

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129369 From: Chris Lott <chris@...>
Date: Sat Mar 3, 2012 1:46 am
Subject: Re: Vim for LaTeX
chris@...
Send Email Send Email
 
On Wed, Feb 29, 2012 at 1:47 AM, Eric Weir <eeweir@...> wrote:
>
> My reason for being interested in mmd is {1] I'm not a programmer, [2] I
> compose in and manage larger writing projects with Scrivener, which provides
> for export to latex via mmd, [3] I'm primarily interested in being able to
> use latex to format and print/publish short documents composed in vim.

I wonder if there isn't some kind of misunderstanding? You can use
vim-pandoc with markdown or multimarkdown. Which means you can use
Markdown and generate the print version using the pandoc program to
create LaTeX or HTML or just to clean up and normalize your
markdown/multimarkdown code. Pandoc as a markup adds some things to
the markdown/multimarkdown base, but the engine seems to have
everything I have thrown at it from md/mmd.

The pandoc plugin provides some syntax highlighting and other goodies
to help speed along the process writing in any of the markups.

c
--
Chris Lott <chris@...>

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129370 From: David Sanson <dsanson@...>
Date: Sat Mar 3, 2012 2:03 am
Subject: Re: Dr Chip
dsanson@...
Send Email Send Email
 
Can't answer your question, but you can still grab stuff from

http://web.archive.org/web/20110514062220/http://mysite.verizon.net/astronaut/vim/

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129371 From: Phil Dobbin <phildobbin@...>
Date: Sat Mar 3, 2012 4:48 am
Subject: installing/upgrading Vim
phildobbin@...
Send Email Send Email
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, all.

I've got a version of Vim (see below) which was the first Vim I used. I
compiled it myself from source into /usr/local/ & nowadays the Vim I use
is in /opt/local/ & has very many more features.

Question is I've pulled the latest source code from Mercurial with the
intention of installing that into /usr/local/ & now no longer having the
original source code I can't do a `sudo make uninstall` to clean the
directory.

Which is the better option? Trying to clean the old Vim from /usr/local/
(& if so, what's the best way to do it) or just install over the top?

Many thanks for any help or suggestions (vim --version to be deleted or
over written below)

`$ /usr/local/bin/vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep 28 2011 11:11:06)
MacOS X (unix) version
Compiled by dobbin@...
Normal version without GUI.  Features included (+) or not (-):
- -arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset
+cindent
- -clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info
+comments
- -conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con +diff
+digraphs
- -dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi
+file_in_path
+find_in_path +float +folding -footer +fork() -gettext -hangul_input -iconv
+insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape
- -mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse
+mouse_xterm -multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype
+path_extra -perl +persistent_undo +postscript +printer -profile -python
- -python3 +quickfix +reltime -rightleft -ruby +scrollbind +signs
+smartindent
- -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects
+title
  -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra
+viminfo
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset
- -xim -xsmp
  -xterm_clipboard -xterm_save
    system vimrc file: "$VIM/vimrc"
      user vimrc file: "$HOME/.vimrc"
       user exrc file: "$HOME/.exrc"
   fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X_UNIX
- -no-cpp-precomp  -g -O2 -D_FORTIFY_SOURCE=1
Linking:
gcc   -L/usr/local/lib -o vim       -lm -lncurses  -framework Cocoa`




-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPUaKWAAoJEKpMeDHWT5ADhgUIAIkpCtG3UgFggaC6BLzpmN0r
c/ZvwN40p+w2H0wWTeH+2CwkzV7osagkWIBla8LsQDkfPr3a38BDM7NBJvn3w360
/mmTYlo6jhFyePzvmsE6k/qGBcvCPVz+B5u7YErk7nSYUa2E2/2tq2KfKFnGSaJz
+P17bH+kLNigbN2hnOLymKyoEPab50IPwsFE/dkGV4LQJ/9IrOC5v2CqxaCaUAS8
ITf2SJ6zeLT7ogxjiaxot1s4PZHbXVXcPYzUbqnpMwR8W3e11piyIAgzYiWs9KtZ
k/cLJKVGgRV72uK38Q1EG41WXkTMte2197nn6vKH8hp+jnvK9tHg6ZBH4jy5h3o=
=y89o
-----END PGP SIGNATURE-----

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129372 From: Tony Mechelynck <antoine.mechelynck@...>
Date: Sat Mar 3, 2012 9:15 am
Subject: Re: installing/upgrading Vim
antoine.mechelynck@...
Send Email Send Email
 
On 03/03/12 05:48, Phil Dobbin wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi, all.
>
> I've got a version of Vim (see below) which was the first Vim I used. I
> compiled it myself from source into /usr/local/&  nowadays the Vim I use
> is in /opt/local/&  has very many more features.
>
> Question is I've pulled the latest source code from Mercurial with the
> intention of installing that into /usr/local/&  now no longer having the
> original source code I can't do a `sudo make uninstall` to clean the
> directory.
>
> Which is the better option? Trying to clean the old Vim from /usr/local/
> (&  if so, what's the best way to do it) or just install over the top?

The following will uninstall Vim if you have a standard installation:

	 rm -Rvf /usr/local/vim /usr/local/share/vim/vim??

You may want to do also the following (e.g. by pasting it as a script to
be run by bash) if you want to remove all traces of Vim executables
(other than macvim) from your system, but you should NOT do it if you
plan on reinstalling Vim (immediately or at some later time):

!#/bin/bash
test -x /usr/local/bin/vim      && rm -v /usr/local/bin/vim
test -x /usr/local/bin/gvim     && rm -v /usr/local/bin/gvim
# gvim could also be a softlink to macvim,
# which we are not removing
test -x /usr/local/bin/vi -o -L /usr/local/bin/vi \
                                  && rm -v /usr/local/bin/vi
test -L /usr/local/bin/ex       && rm -v /usr/local/bin/ex
test -L /usr/local/bin/exim     && rm -v /usr/local/bin/exim
# exim could also be an email routing program (unrelated to Vim), but
# in that case it would not be a softlink in /usr/local/bin
test -L /usr/local/bin/view     && rm -v /usr/local/bin/view
test -L /usr/local/bin/gex      && rm -v /usr/local/bin/gex
test -L /usr/local/bin/gview    && rm -v /usr/local/bin/gview
test -L /usr/local/bin/rvim     && rm -v /usr/local/bin/fvim
test -L /usr/local/bin/rview    && rm -v /usr/local/bin/rview
test -L /usr/local/bin/rgview   && rm -v /usr/local/bin/rgview
test -L /usr/local/bin/evim     && rm -v /usr/local/bin/evim
test -L /usr/local/bin/eview    && rm -v /usr/local/bin/eview
test -L /usr/local/bin/vimdiff  && rm -v /usr/local/bin/vimdiff
test -L /usr/local/bin/gvimdiff && rm -v /usr/local/bin/gvimdiff



Best regards,
Tony.
--
Equality is not when a female Einstein gets promoted to assistant
professor; equality is when a female schlemiel moves ahead as fast as a
male schlemiel.
		 -- Ewald Nyquist

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129373 From: Andre Majorel <aym-miv@...>
Date: Sat Mar 3, 2012 9:53 am
Subject: Re: Script mtime on vim.org
aym-miv@...
Send Email Send Email
 
On 2012-03-02 09:42 -0800, Ben Fritz wrote:

> Why do you need this? Maybe there's a different solution
> someone could suggest.

No big reason, just that the mtime of a file is arguably worse
than useless if it's at odds with its content. Anyone who does
want the mtime to reflect the time of download can always run
"find . -type f -cmin -10 | xargs touch".

> You could ask the script maintainer to package it in an
> archive of some kind, I think most of those preserve file
> modification time. I know .zip does, anyway. But I'm not sure
> they'd be that receptive.

download_script.php could generate a Last-Modified header from
the upload time (which is in the database). Maybe even include
the version number in the Content-Disposition: file name (it
also is in the database).

--
André Majorel http://www.teaser.fr/~amajorel/
Subliminal message : Vim needs arbitrary tab stops.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129374 From: Phil Dobbin <phildobbin@...>
Date: Sat Mar 3, 2012 11:20 am
Subject: Re: installing/upgrading Vim
phildobbin@...
Send Email Send Email
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/03/2012 09:15, Tony Mechelynck wrote:


> On 03/03/12 05:48, Phil Dobbin wrote:

>> I've got a version of Vim (see below) which was the first Vim I used. I
>> compiled it myself from source into /usr/local/&  nowadays the Vim I use
>> is in /opt/local/&  has very many more features.
>>
>> Question is I've pulled the latest source code from Mercurial with the
>> intention of installing that into /usr/local/&  now no longer having the
>> original source code I can't do a `sudo make uninstall` to clean the
>> directory.
>>
>> Which is the better option? Trying to clean the old Vim from /usr/local/
>> (&  if so, what's the best way to do it) or just install over the top?
>
> The following will uninstall Vim if you have a standard installation:
>
>     rm -Rvf /usr/local/vim /usr/local/share/vim/vim??
>
> You may want to do also the following (e.g. by pasting it as a script to
> be run by bash) if you want to remove all traces of Vim executables
> (other than macvim) from your system, but you should NOT do it if you
> plan on reinstalling Vim (immediately or at some later time):
>
> !#/bin/bash
> test -x /usr/local/bin/vim      && rm -v /usr/local/bin/vim
> test -x /usr/local/bin/gvim     && rm -v /usr/local/bin/gvim
> # gvim could also be a softlink to macvim,
> # which we are not removing
> test -x /usr/local/bin/vi -o -L /usr/local/bin/vi \
>                                 && rm -v /usr/local/bin/vi
> test -L /usr/local/bin/ex       && rm -v /usr/local/bin/ex
> test -L /usr/local/bin/exim     && rm -v /usr/local/bin/exim
> # exim could also be an email routing program (unrelated to Vim), but
> # in that case it would not be a softlink in /usr/local/bin
> test -L /usr/local/bin/view     && rm -v /usr/local/bin/view
> test -L /usr/local/bin/gex      && rm -v /usr/local/bin/gex
> test -L /usr/local/bin/gview    && rm -v /usr/local/bin/gview
> test -L /usr/local/bin/rvim     && rm -v /usr/local/bin/fvim
> test -L /usr/local/bin/rview    && rm -v /usr/local/bin/rview
> test -L /usr/local/bin/rgview   && rm -v /usr/local/bin/rgview
> test -L /usr/local/bin/evim     && rm -v /usr/local/bin/evim
> test -L /usr/local/bin/eview    && rm -v /usr/local/bin/eview
> test -L /usr/local/bin/vimdiff  && rm -v /usr/local/bin/vimdiff
> test -L /usr/local/bin/gvimdiff && rm -v /usr/local/bin/gvimdiff


Hi, Tony.

Thanks for that. The first rm -Rvf will work in this instance I think.
It was my first stab at Vim & I only built a console version. The
console version I use now has no links to it & is in a completely
different directory & the MacVim I built from source into the Apple
filesystem as per instructions I believe from Bjorn's README.

I'm using msmtp as replacement for sendmail so exim isn't involved but
to be on the safe side I'll run a `find / -name vim 2> /dev/null` to be
on the safe side.

Cheers,

   Phil...

- --
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

	 Wm. Shakespeare - Much Ado About Nothing


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPUf6QAAoJEKpMeDHWT5ADPWMH/3rt17tUQVnXBNndhtX5L4YU
ZBZbQDmhJX/PgqJfZ1er6Tkdw4vmvomb8D9aV4hJAqdcQKrtYdQKzewUWoy+pA/0
zwmvU8+VPaU3upbO9pitmAn1xMXNqihOLj6YBqNmbl4iXCAc5eEQLUA3qy6XLYGz
zO7yvQfnyYy5B+1fWCOOm8B2u4RXBsqkb2t5vc//KwPqwkDu29lK3KFL3fU0HlYB
CnKO0loJEk29F+3xSL8EtlobIVSdqKMCYzLOsEZWeGYGg6Eg66E/pfJ4znWshxGm
dks8OTa6ch7mIl+mC8is7GMc8xkqj0M8+f01xEmcTEgSsBwEE5bdvA3OpbjD4Hw=
=HDpH
-----END PGP SIGNATURE-----

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129375 From: Christian Brabandt <cblists@...>
Date: Sat Mar 3, 2012 12:32 pm
Subject: Re: search replace function
cblists@...
Send Email Send Email
 
Hi thinca!

On Fr, 02 Mär 2012, thinca wrote:

> Try this.
>
> %s@@\=system('cat /dev/urandom | strings | tr -d "\n" | head -c 15')@gc

Shorter:
%s@@\=system('head -c15 </dev/urandom|openssl base64')@gc

Mit freundlichen Grüßen
Christian
--
Nur wer früh seine Seele weit auszuspannen gelernt hat, vermag später
die ganze Welt in sich zu fassen.
		 -- Stefan Zweig

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129376 From: Carsten Mattner <carstenmattner@...>
Date: Sat Mar 3, 2012 12:21 pm
Subject: Re: cinoptions limitations
carstenmattner@...
Send Email Send Email
 
On Sat, Mar 3, 2012 at 12:39 PM, Carsten Mattner
<carstenmattner@...> wrote:
> Having searched the lists and web I couldn't find an answer.
>
> Relevant configuration:
> set smartindent
> set autoindent
> set cinoptions=:0,W4,l1,i0,g0,(0,t0
>
> I fail to configure cinoptions to not mis-indent two pieces
> of C++ code. C++ problem only, C indents correctly with
> the above cinoptions.
>
> C++ template (typename)
>
> wrong:
> template <typename T>
>    class AClass {
>    private:
>    public:
>    };
>
> right:
> template <typename T>
> class AClass {
> private:
> public:
> };
>
>
> C++ constructor initializer list
>
> wrong:
> AClass(int foo) {

syntax error: remove " {"

>    :flag(false)
>    { do_stuff(); }
>
> right:
> AClass(int foo) {

syntax error: remove " {"

>    :flag(false)
> { do_stuff(); }

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129377 From: Carsten Mattner <carstenmattner@...>
Date: Sat Mar 3, 2012 11:39 am
Subject: cinoptions limitations
carstenmattner@...
Send Email Send Email
 
Having searched the lists and web I couldn't find an answer.

Relevant configuration:
set smartindent
set autoindent
set cinoptions=:0,W4,l1,i0,g0,(0,t0

I fail to configure cinoptions to not mis-indent two pieces
of C++ code. C++ problem only, C indents correctly with
the above cinoptions.

C++ template (typename)

wrong:
template <typename T>
     class AClass {
     private:
     public:
     };

right:
template <typename T>
class AClass {
private:
public:
};


C++ constructor initializer list

wrong:
AClass(int foo) {
     :flag(false)
     { do_stuff(); }

right:
AClass(int foo) {
     :flag(false)
{ do_stuff(); }

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129378 From: Michael Ludwig <milu71@...>
Date: Sat Mar 3, 2012 1:16 pm
Subject: Re: EasyColour 1.0.0: Colour Schemes made Easy!
milu71@...
Send Email Send Email
 
Ben Fritz schrieb am 23.02.2012 um 10:45 (-0800):
> On Feb 23, 9:28 am, "A. S. Budden" <abud...@...> wrote:
> >
> >    http://www.cgtk.co.uk/vim-scripts/easycolour

> > This plugin makes it really easy to create your own colour scheme
> > for Vim.

> Something that bugs me about color schemes often is that important
> things like DiffChange, ColorColumn, and more are just plain missing.
> […] A related gripe is that similar items like Number and Constant are
> not always defined, even if the author just wants to link them
> together.

Which colour schemes would you quote as a model par excellence for
someone trying to learn them?

Michael

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129379 From: Tarlika Elisabeth Schmitz <vim@...>
Date: Sat Mar 3, 2012 6:07 pm
Subject: mapping keys in any mode
vim@...
Send Email Send Email
 
If I want to map a function onto the same key in any mode, is this the
best way of doing it? :

map <silent> <F6> :nohlsearch<CR>
imap <silent> <F6> <Esc>:nohlsearch<CR>i

--

Best Regards,
Tarlika Elisabeth Schmitz

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129380 From: "Benjamin R. Haskell" <vim@...>
Date: Sat Mar 3, 2012 6:21 pm
Subject: Re: Dr Chip
vim@...
Send Email Send Email
 
On Fri, 2 Mar 2012, Kartik Agaram wrote:

> Holy crap, I just realized that Dr Chip's vim page is gone.
>
> http://mysite.verizon.net/astronaut/vim
> http://drchip.0sites.net/astronaut/vim
>
> Has anyone else noticed this? Is it moved somewhere new?

Dr. Chip (Charles Campbell) posted on this list about the situation back
in August:

https://groups.google.com/d/topic/vim_use/OKue3zK9p3s/discussion

There wasn't a resolution on-list, but I'm sure the site hasn't just
vanished entirely.

--
Best,
Ben

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129381 From: Ben Fritz <fritzophrenic@...>
Date: Sat Mar 3, 2012 6:26 pm
Subject: Re: mapping keys in any mode
fritzophrenic@...
Send Email Send Email
 


On Saturday, March 3, 2012 12:07:18 PM UTC-6, Tarlika Elisabeth Schmitz wrote:
If I want to map a function onto the same key in any mode, is this the
best way of doing it? :

map <silent> <F6> :nohlsearch<CR>
imap <silent> <F6> <Esc>:nohlsearch<CR>i


Some suggestions:
* For insert mode, a better way would probably be <C-O> instead of <Esc>...i
* Use nnoremap and xnoremap instead of just "map" which gets normal, operator-pending, and visual modes. You probably want to use a <C-U> in the visual mode mapping to remove the range, and you probably don't want to do it at all in operator-pending mode.
* Either use inoremap, or keep using imap but simply use the normal-mode mapping instead of re-defining it on the RHS

For example:
nnoremap <silent> <F6> :nohlsearch<CR>
xnoremap <silent> <F6> :<C-U>nohlsearch<CR>
imap <silent> <F6> <C-O><F6>

Other than that...it should work fine the way you have it.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#129382 From: Ben Fritz <fritzophrenic@...>
Date: Sat Mar 3, 2012 6:28 pm
Subject: Re: EasyColour 1.0.0: Colour Schemes made Easy!
fritzophrenic@...
Send Email Send Email
 
On Mar 3, 7:16 am, Michael Ludwig <mil...@...> wrote:
> Ben Fritz schrieb am 23.02.2012 um 10:45 (-0800):
>
> > On Feb 23, 9:28 am, "A. S. Budden" <abud...@...> wrote:
>
> > >    http://www.cgtk.co.uk/vim-scripts/easycolour
> > > This plugin makes it really easy to create your own colour scheme
> > > for Vim.
> > Something that bugs me about color schemes often is that important
> > things like DiffChange, ColorColumn, and more are just plain missing.
> > […] A related gripe is that similar items like Number and Constant are
> > not always defined, even if the author just wants to link them
> > together.
>
> Which colour schemes would you quote as a model par excellence for
> someone trying to learn them?
>

I actually think I have yet to find a colorscheme which defines all
the groups, and sometimes the missing groups have pretty garish
default colors when combined with the scheme.

You can get a list of colors to define (actually 2 lists) at:

:help highlight-groups
:help group-name

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Messages 129353 - 129382 of 137824   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help