Re: How to clear number registers
howard Schwartz a écrit: > > Hi, > > I want to set the contents of the numbered registers ( 1-9) to nothing, each > time I enter a buffer. Thus only yanks and deletes done in the current buffer > will make their way into numbered registers. To this end, I put the following > autocommand in my .vimrc file: > > au BufRead * for i in range(1,9) | let @i = "" | endfor > > Tha shoud let @1 = "" and @2 = "" and so on. But the i variable never > iterates > to numbers. Instead this line just sets the register named, i, to nothing. > I've tried quoting i, using eval etc. Always, the i is not evaluated as a > number in the let statements. I must be doing something simple wrong? You should use ":exe[cute]": au BufRead * for i in range(1,9) | exe "let @" . i . " = ''" | endfor That (extremely useful) command executes a string as if it was fed to Vim. Best, Paul -- 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
How to clear number registers
Hi, I want to set the contents of the numbered registers ( 1-9) to nothing, each time I enter a buffer. Thus only yanks and deletes done in the current buffer will make their way into numbered registers. To this end, I put the following autocommand in my .vimrc file: au BufRead * for i in range(1,9) | let @i = "" | endfor Tha shoud let @1 = "" and @2 = "" and so on. But the i variable never iterates to numbers. Instead this line just sets the register named, i, to nothing. I've tried quoting i, using eval etc. Always, the i is not evaluated as a number in the let statements. I must be doing something simple wrong? -- 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
Re: OT: hosting (was Re: Dr Chip)
> There's also http://sites.google.com. But getting all of those plugins under > version control at GitHub would be a good idea. Gahd, I can't recommend Google sites. The UI is clunky, it's easy to find breakage, and you never know how long it will take to be fixed. Sites is not a Google priority, and it shows. -- 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
Re: OT: hosting (was Re: Dr Chip)
On Sat, Mar 3, 2012 at 5:04 PM, Tim Chase wrote: > On 03/03/12 18:39, Phil Dobbin wrote: > >> Or alternatively there are good deals to be had with a VPS >> nowadays if you want complete root access to a box (configure >> your own mail server& so forth) at realistically nearly the >> same price as shared hosting. I personally use 6sync& find >> them great. >> > > Getting a VPS is still pretty pricey. The best I've been able to find for > a lowest-end VPS is about $15-20/mo (both your suggested 6sync and Linode > fall into this category). For shared hosting, I've seen it as low as free > (I wouldn't trust anything valuable to such a site as they often inject > things into the output or reliability is an issue), frequently hovering > around $3/mo for the lowest, $5/mo for what I'd consider reasonable > reliability. That's a 3-5x price factor. > > If all your site is static (like I seem to recall Dr. Chip's pages were), > using something like github is a pretty tempting proposition: stable, > free, easy interface, and easy way to share and gather updates. There's also http://sites.google.com. But getting all of those plugins under version control at GitHub would be a good idea. -- /George V. Reilly geo...@reilly.org Twitter: @georgevreilly http://www.georgevreilly.com/blog http://blogs.cozi.com/tech -- 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
Re: OT: hosting (was Re: Dr Chip)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/03/2012 01:04, Tim Chase wrote: > On 03/03/12 18:39, Phil Dobbin wrote: >> Or alternatively there are good deals to be had with a VPS >> nowadays if you want complete root access to a box (configure >> your own mail server& so forth) at realistically nearly the >> same price as shared hosting. I personally use 6sync& find >> them great. > > Getting a VPS is still pretty pricey. The best I've been able to find > for a lowest-end VPS is about $15-20/mo (both your suggested 6sync and > Linode fall into this category). For shared hosting, I've seen it as > low as free (I wouldn't trust anything valuable to such a site as they > often inject things into the output or reliability is an issue), > frequently hovering around $3/mo for the lowest, $5/mo for what I'd > consider reasonable reliability. That's a 3-5x price factor. > > If all your site is static (like I seem to recall Dr. Chip's pages > were), using something like github is a pretty tempting proposition: > stable, free, easy interface, and easy way to share and gather updates. yeah, 6sync works out at around £110 p.a. for me whereas a good reliable shared web host is about £75 p.a. (includes five domains, MySQL, Perl, PHP, Ruby, etc). Bottom line is to me the VPS is about £2 a week. Spend more on tea bags/cat food/toilet paper (sorry all my prices are GBP). 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/ iQEcBAEBAgAGBQJPUsKjAAoJEKpMeDHWT5ADkkEIAM2B21maY10sJmxhNRDzGkoD NyueW1HVOL3g55aq3jQ7ks8zhimaUoZvPxzYq1LGLCjBH7qPmfkB2fQGwn6Xkegh 1FS+yWACNwkVVbygUTbthnzZawb0939no2CNN+qqrV//Q2mFjrKF9VXHyjYaOOnd BlEGL812IB379jc8IlcV5s3UxSB8KRBf9fkVjrkDcl0wn7aYnolOSBMwVR/1c2R1 MdYcX7YSWDL7dz/QpgwbD89r/JcN0sSCas2UTLhKiUasPc6F+MFcdkqBySTrjd9Z quETQbx1aDPtY1M4JK3TsPfn441JJFmbOSsjZY4ZSbLH5kXzdHStvWzSEcEECZo= =08le -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
OT: hosting (was Re: Dr Chip)
On 03/03/12 18:39, Phil Dobbin wrote: Or alternatively there are good deals to be had with a VPS nowadays if you want complete root access to a box (configure your own mail server& so forth) at realistically nearly the same price as shared hosting. I personally use 6sync& find them great. Getting a VPS is still pretty pricey. The best I've been able to find for a lowest-end VPS is about $15-20/mo (both your suggested 6sync and Linode fall into this category). For shared hosting, I've seen it as low as free (I wouldn't trust anything valuable to such a site as they often inject things into the output or reliability is an issue), frequently hovering around $3/mo for the lowest, $5/mo for what I'd consider reasonable reliability. That's a 3-5x price factor. If all your site is static (like I seem to recall Dr. Chip's pages were), using something like github is a pretty tempting proposition: stable, free, easy interface, and easy way to share and gather updates. -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
Re: Dr Chip
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/03/2012 20:52, sc wrote: > On Sat, Mar 03, 2012 at 01:27:10PM -0500, Charles E Campbell Jr wrote: >> Benjamin R. Haskell wrote: >>> 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. >>> >> Its a "new situation" -- I'd moved the website to drchip.0sites.net >> -- but the new website host has apparently decided to fold. There >> was no warning that the website was going down, although some ftp >> access to grab stuff is still present for a couple of weeks. The >> website as hosted is really a mirror, anyway, of what I have on my >> own computer. > >> So, I'm (again) in a process of finding a new webhost. >> Unfortunately, unlike before, I won't be able to put in redirects >> (well, I suppose I could, but they wouldn't be allowed to work). > > have you checked out github? if you put an index.html there > it'll be visible to the world -- i have yet to see a downside to > using it -- it's where i moved when my isp stopped web hosting > > ( http://toothpik.github.com ) -- layman's html but i had > fun creating it > > dang i just looked and i have lots of stuff out of date there -- > i better do some updates... Or alternatively there are good deals to be had with a VPS nowadays if you want complete root access to a box (configure your own mail server & so forth) at realistically nearly the same price as shared hosting. I personally use 6sync & find them great. I do not have any affiliation with them or benefit from any referral to them either... just so you know ;-) 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/ iQEcBAEBAgAGBQJPUrnKAAoJEKpMeDHWT5ADp64H/1w+3zkNbhEh/cHSgzW85wa9 EmJVLKqpsBeKvWbGsIiyUXecKcL5xSdVKn2oq3aSGTLy59lJEpwa6svQGFaUxXlX GyYSLUMiW3UMeHqc8U6yBnvus9/58jbPkcnSTpG3g/crhqexS8ibh3TWHewl1ZtY aaQwySdrQXrtU4MYLcRzig0ns1LDHmavYqCk8sIsKJmB8dolVpPeSbaISuweJ59N KTsm9SXsqrczLHkw+Qw4jojspQJVgqr3zqFlJjECG9B1XpGr5arVPuPrQO4U4TX2 aO8q7XcosY6GIujEQfM0D8rTKbGWlqI53nnMTzBmhdu2hMMAdM4WKDQOedoWU0k= =vVSb -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
Re: Dr Chip
On Sat, Mar 03, 2012 at 01:27:10PM -0500, Charles E Campbell Jr wrote: > Benjamin R. Haskell wrote: > >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. > > > Its a "new situation" -- I'd moved the website to drchip.0sites.net > -- but the new website host has apparently decided to fold. There > was no warning that the website was going down, although some ftp > access to grab stuff is still present for a couple of weeks. The > website as hosted is really a mirror, anyway, of what I have on my > own computer. > So, I'm (again) in a process of finding a new webhost. > Unfortunately, unlike before, I won't be able to put in redirects > (well, I suppose I could, but they wouldn't be allowed to work). have you checked out github? if you put an index.html there it'll be visible to the world -- i have yet to see a downside to using it -- it's where i moved when my isp stopped web hosting ( http://toothpik.github.com ) -- layman's html but i had fun creating it dang i just looked and i have lots of stuff out of date there -- i better do some updates... -- 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
Re: Alternating lines' color
On 03/03/12 15:33, Tarlika Elisabeth Schmitz wrote: func! s:ColorAltLines() if exists('b:ALTLINES_disable') || exists('g:ALTLINES_disable') What is the sifnificance of s:, b: and g: ? Could you point me to the relevant manual page? You can ask for help on any of the variants (so to speak): a:var b:var g:var l:var s:var t:var v:var w:var It's basically a scope-specifier. Most of them should be half-a-page down at :help E461 or right above :help b:var -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
Re: Alternating lines' color
On Fri, 2 Mar 2012 11:39:02 -0600 Benjamin Fritz 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. It would drive me nuts if applied to all buffers but dead useful if the alternate line display could be toggled on/off for a particular buffer or just a range. Presumably, this could be turned into a plugin and dropped in .vim/plugins. Daft question re vim syntax: func! s:ColorAltLines() if exists('b:ALTLINES_disable') || exists('g:ALTLINES_disable') What is the sifnificance of s:, b: and g: ? Could you point me to the relevant manual page? -- 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
Re: Vim for LaTeX
On Mar 2, 2012, at 8:46 PM, Chris Lott wrote: > On Wed, Feb 29, 2012 at 1:47 AM, Eric Weir 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. Thanks, Chris. I've learned a bit about pandoc since writing that. Intrigued, both for the extended markdown and document conversion capabilities. Since I manage larger writing projects in Scrivener, which provides direct export to latex via mmd, pandoc and the vimpandoc plugin strike me a bit as overkill for the simple smaller documents I'd like to format with latex. I just might adopt it anyway. Regards. -- Eric Weir Decatur, GA eew...@bellsouth.net "A man should be in the world as though he were not in it so that it will be no worse because of his life." - Wendell Berry -- 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
Re: mapping keys in any mode
On Sat, 3 Mar 2012 10:26:09 -0800 (PST) Ben Fritz wrote: > > >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 :nohlsearch >> imap :nohlsearchi >> > >Some suggestions: >[...] >nnoremap :nohlsearch >xnoremap :nohlsearch >imap implemented your suggestions many thanks! -- 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
Re: Dr Chip
Benjamin R. Haskell wrote: 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. Its a "new situation" -- I'd moved the website to drchip.0sites.net -- but the new website host has apparently decided to fold. There was no warning that the website was going down, although some ftp access to grab stuff is still present for a couple of weeks. The website as hosted is really a mirror, anyway, of what I have on my own computer. So, I'm (again) in a process of finding a new webhost. Unfortunately, unlike before, I won't be able to put in redirects (well, I suppose I could, but they wouldn't be allowed to work). I'll be sending out a note when I get a new host. 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
Re: EasyColour 1.0.0: Colour Schemes made Easy!
On Mar 3, 7:16 am, Michael Ludwig wrote: > Ben Fritz schrieb am 23.02.2012 um 10:45 (-0800): > > > On Feb 23, 9:28 am, "A. S. Budden" 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
Re: mapping keys in any mode
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 :nohlsearch > imap :nohlsearchi > Some suggestions: * For insert mode, a better way would probably be instead of ...i * Use nnoremap and xnoremap instead of just "map" which gets normal, operator-pending, and visual modes. You probably want to use a 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 :nohlsearch xnoremap :nohlsearch imap 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
Re: Dr Chip
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
mapping keys in any mode
If I want to map a function onto the same key in any mode, is this the best way of doing it? : map :nohlsearch imap :nohlsearchi -- 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
Re: EasyColour 1.0.0: Colour Schemes made Easy!
Ben Fritz schrieb am 23.02.2012 um 10:45 (-0800): > On Feb 23, 9:28 am, "A. S. Budden" 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
cinoptions limitations
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 class AClass { private: public: }; right: template 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
Re: cinoptions limitations
On Sat, Mar 3, 2012 at 12:39 PM, Carsten Mattner 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 > class AClass { > private: > public: > }; > > right: > template > 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
Re: search replace function
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 http://www.vim.org/maillist.php
Re: installing/upgrading Vim
-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
Re: Script mtime on vim.org
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
Re: installing/upgrading Vim
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