Thursday, February 28, 2013

Re: Vim wiki editable by git

On 24 February 2013 23:34, Marc Weber wrote:

> As you all know I wrote VAM to solve a problem: Vim plugins
> distribution.
>
> The Vim community suffers from a second problem: There
> are many plugins - some are outdated - and its sometimes
> hard to find the "jewels" - because they may be hosted on
> github only. There is a wiki, but its not integrated in
> the main site - neither is it easy for external people to
> hack on it just using what they know best: "Vim" (right?)
>
> For this reason I'd like to start a wiki like text file
> based git repository which summarizes the most useful
> tools (and maybe alternatives) so that people who want to
> find answers about: "How to I most efficiently code xy"
> or do "z".
>
> [...]

I agree there's a problem. I think vim.org could do with
some modernising.

> Also would you be interested in joining and helping
> maintain such a git based wiki?

A wiki is a great idea. And they maintain themselves,
courtesy of those who give a shit. I think it should be on
vim.org though (I realise this is your ultimate intent too).

> Its not about writing comprehensive documentation, rather
> about creating an index about which tools are known to
> solve a problem. This can be completion, configuration,
> running a compiler and more.

Agreed. These questions come up *a lot*, and finding the
answers with Google is surprisingly difficult. What you get
are blog posts saying 'you can hack foo integration into Vim
with these custom mappings which happen to rely on custom
program x which is in my environment but you'll have to
compile it from source ...,' etc.

This isn't a criticism: because Vim is so customisable,
people can easily whip up their own systems which solve the
problem at hand but aren't always helpful for the beginner
(or seasoned professional!) trying to learn Python, for
example.

The current state of affairs is quite fragmented.
There's vim.org, the mailing list, the Vim tips wiki,
scripts on vim.org, other scripts on Github, discussion on
#vim, many questions on Stack Overflow .... Where to look?

Certainly I think the scripts section on vim.org needs
a thorough revamp.

> Feedback about this idea and ideas are welcome.

Well, I also think that vim.org would benefit from
a chatroom, Stack Overflow style. I've no doubt it
would be popular among new users of Vim. #vim has
loads of new users asking questions, and who uses IRC
these days? :-)

I think, given the enduring popularity of Vim, it needs
a centralised resource.

--Antony

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: netrw: unmark target directory for copy/move

On Feb 28, 3:58 pm, Charles Campbell <Charles.E.Campb...@nasa.gov>
wrote:
> Paul wrote:
>> In netrw, is there a way to unmark a targe directory for copy/move?
>> The display of the target directory is taking up valuable real
>> estate on the screen. Thanks.
>
> Try v147g of netrw from my
> website:http://www.drchip.org/astronaut/vim/index.html#NETRW.
>
> Seems to be something I'd overlooked. The method now:
>
> mt in the banner sets the target directory to the current window's
> current directory
>
> Unless it already is the target directory, in which case the target
> is removed.

Thanks, Charles. I'm going to put this on my to-do list (my real one,
which I do manage to chip away at) for the time being. Need to figure
out this dropping in of new plugins.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: netrw: unmark target directory for copy/move

Paul wrote:
> In netrw, is there a way to unmark a targe directory for copy/move?
> The display of the target directory is taking up valuable real estate
> on the screen. Thanks.
>
Try v147g of netrw from my website:
http://www.drchip.org/astronaut/vim/index.html#NETRW .

Seems to be something I'd overlooked. The method now:

mt in the banner sets the target directory to the current window's
current directory
Unless it already is the target directory, in which case the
target is removed.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

netrw: unmark target directory for copy/move

In netrw, is there a way to unmark a targe directory for copy/move?
The display of the target directory is taking up valuable real estate
on the screen. Thanks.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: vim edit help

First, the explanation.  See the references that Ben Fritz already listed.

/Array<CR>:  Search for the text "Array".  Do not type <CR> literally:  it means hit Enter or Return.
ciw:  Change the word (text object).  You could also use cw or ce (change word or change to end)
dojox.collections.ArrayList:  This will be added to the buffer, since you are in Insert mode after ciw.
<Esc>:  Leave Insert mode.  Do not type it literally.

As for doing it 11 times, I would record a macro, starting before the search command and ending after the :s command.  Roughly, if I want to use the x register for the macro (qx)

qx
/Array<CR>
ciwdojox.collections.ArrayList<Esc>
^w"yye
f(
dib
o<Esc>
p
:s#"[^"]\+",\?\s*#<C-R>y.add(\0);\r#g
q

(Note that I have yanked into the y register instead of typing the word "illness" literally.)  If all of the works, then you can repeat it with

@x
@x
8@x

:help recording

-- 
HTH
Benji Fisher

On Thu, Feb 28, 2013 at 1:59 PM, vicky b <vickyb2084@gmail.com> wrote:
actuall i have to 11 such variables can you please help

var flightDelay = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlConfArlSupId","tvlConfArlcompaid","tvlRepeei","tvlPolRep");
var baggageDelay = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlProIr","tvlConfArlcompaid","tvlRepeei","tvlPolRep");
var baggageLoss = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlProIr","tvlListLost","tvlPolRep");
var tripCacel = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlConfArlcompaid","tvlRrepdsc","tvlPolRep");
var repariation = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlMdRp","tvlRee","tvldc","tvlPolRep","tvladrdc");
var accidentalDisablement = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlMdRp","tvlPolRep","tvladrdc");
var lossOfTravel = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlMhdr","tvlPolRep","tvladrdc");
var secureWallet= new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlMhdr","tvlPolRep","tvladrdc");
var others= new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlRrepdsc","tvlPolRep","tvladrdc");



On Fri, Mar 1, 2013 at 12:25 AM, vicky b <vickyb2084@gmail.com> wrote:
Can you  please explain more on this section

/Array<CR>
ciwdojox.collections.ArrayList<Esc>


On Fri, Mar 1, 2013 at 12:17 AM, Ben Fritz <fritzophrenic@gmail.com> wrote:
On Thursday, February 28, 2013 12:33:23 PM UTC-6, vicky b wrote:
> HI All,
>
>
>  I have text in below format 
> var illness = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlRepMedEi","tvlMdRp","tvlRrepdsc","tvlPolRep")
>
>
>
>
> i need to convert it 
>
>
>
> var illness = new dojox.collections.ArrayList();
> illness.add("tvlPlyCp");
> illness.add("tvlPlcyCertID")
>
> illness.add("tvlShdIt")
>
>
> illness.add("tvlRepMedEi")
> illness.add("tvlMdRp");
> illness.add("tvlRrepdsc");
> illness.add("tvlPolRep");
>
>
>
> Can anybody help me on this--
> Thanks & Regards
>  Vickyb

Here regular expressions are your friend.

I'd start by changing the "new" line to be correct:
/Array<CR>
ciwdojox.collections.ArrayList<Esc>
f(
dib

Now paste the deleted list of initializers on a new line and put it in the right format:
o<Esc>
p
:s#"[^"]\+",\?\s*#illness.add(\0);\r#g

Done!

All this is untested but it's pretty straightforward so you should be able to fix it.

Help topics so you know what you're doing:
:help text-objects
:help :s
:help /\0
:help /[
:help /\+
:help /\?
:help /\s

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.





--
Thanks & Regards
 Vickyb





--
Thanks & Regards
 Vickyb


--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: vim edit help

actuall i have to 11 such variables can you please help

var flightDelay = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlConfArlSupId","tvlConfArlcompaid","tvlRepeei","tvlPolRep");
var baggageDelay = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlProIr","tvlConfArlcompaid","tvlRepeei","tvlPolRep");
var baggageLoss = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlProIr","tvlListLost","tvlPolRep");
var tripCacel = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlConfArlcompaid","tvlRrepdsc","tvlPolRep");
var repariation = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlMdRp","tvlRee","tvldc","tvlPolRep","tvladrdc");
var accidentalDisablement = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlMdRp","tvlPolRep","tvladrdc");
var lossOfTravel = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlMhdr","tvlPolRep","tvladrdc");
var secureWallet= new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlMhdr","tvlPolRep","tvladrdc");
var others= new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlRrepdsc","tvlPolRep","tvladrdc");



On Fri, Mar 1, 2013 at 12:25 AM, vicky b <vickyb2084@gmail.com> wrote:
Can you  please explain more on this section

/Array<CR>
ciwdojox.collections.ArrayList<Esc>


On Fri, Mar 1, 2013 at 12:17 AM, Ben Fritz <fritzophrenic@gmail.com> wrote:
On Thursday, February 28, 2013 12:33:23 PM UTC-6, vicky b wrote:
> HI All,
>
>
>  I have text in below format 
> var illness = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlRepMedEi","tvlMdRp","tvlRrepdsc","tvlPolRep")
>
>
>
>
> i need to convert it 
>
>
>
> var illness = new dojox.collections.ArrayList();
> illness.add("tvlPlyCp");
> illness.add("tvlPlcyCertID")
>
> illness.add("tvlShdIt")
>
>
> illness.add("tvlRepMedEi")
> illness.add("tvlMdRp");
> illness.add("tvlRrepdsc");
> illness.add("tvlPolRep");
>
>
>
> Can anybody help me on this--
> Thanks & Regards
>  Vickyb

Here regular expressions are your friend.

I'd start by changing the "new" line to be correct:
/Array<CR>
ciwdojox.collections.ArrayList<Esc>
f(
dib

Now paste the deleted list of initializers on a new line and put it in the right format:
o<Esc>
p
:s#"[^"]\+",\?\s*#illness.add(\0);\r#g

Done!

All this is untested but it's pretty straightforward so you should be able to fix it.

Help topics so you know what you're doing:
:help text-objects
:help :s
:help /\0
:help /[
:help /\+
:help /\?
:help /\s

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.





--
Thanks & Regards
 Vickyb





--
Thanks & Regards
 Vickyb


--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: vim edit help

Can you  please explain more on this section

/Array<CR>
ciwdojox.collections.ArrayList<Esc>


On Fri, Mar 1, 2013 at 12:17 AM, Ben Fritz <fritzophrenic@gmail.com> wrote:
On Thursday, February 28, 2013 12:33:23 PM UTC-6, vicky b wrote:
> HI All,
>
>
>  I have text in below format 
> var illness = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlRepMedEi","tvlMdRp","tvlRrepdsc","tvlPolRep")
>
>
>
>
> i need to convert it 
>
>
>
> var illness = new dojox.collections.ArrayList();
> illness.add("tvlPlyCp");
> illness.add("tvlPlcyCertID")
>
> illness.add("tvlShdIt")
>
>
> illness.add("tvlRepMedEi")
> illness.add("tvlMdRp");
> illness.add("tvlRrepdsc");
> illness.add("tvlPolRep");
>
>
>
> Can anybody help me on this--
> Thanks & Regards
>  Vickyb

Here regular expressions are your friend.

I'd start by changing the "new" line to be correct:
/Array<CR>
ciwdojox.collections.ArrayList<Esc>
f(
dib

Now paste the deleted list of initializers on a new line and put it in the right format:
o<Esc>
p
:s#"[^"]\+",\?\s*#illness.add(\0);\r#g

Done!

All this is untested but it's pretty straightforward so you should be able to fix it.

Help topics so you know what you're doing:
:help text-objects
:help :s
:help /\0
:help /[
:help /\+
:help /\?
:help /\s

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.





--
Thanks & Regards
 Vickyb


--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: vim edit help

On Thursday, February 28, 2013 12:33:23 PM UTC-6, vicky b wrote:
> HI All,
>
>
>  I have text in below format 
> var illness = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlRepMedEi","tvlMdRp","tvlRrepdsc","tvlPolRep")
>
>
>
>
> i need to convert it 
>
>
>
> var illness = new dojox.collections.ArrayList();
> illness.add("tvlPlyCp");
> illness.add("tvlPlcyCertID")
>
> illness.add("tvlShdIt")
>
>
> illness.add("tvlRepMedEi")
> illness.add("tvlMdRp");
> illness.add("tvlRrepdsc");
> illness.add("tvlPolRep");
>
>
>
> Can anybody help me on this--
> Thanks & Regards
>  Vickyb

Here regular expressions are your friend.

I'd start by changing the "new" line to be correct:
/Array<CR>
ciwdojox.collections.ArrayList<Esc>
f(
dib

Now paste the deleted list of initializers on a new line and put it in the right format:
o<Esc>
p
:s#"[^"]\+",\?\s*#illness.add(\0);\r#g

Done!

All this is untested but it's pretty straightforward so you should be able to fix it.

Help topics so you know what you're doing:
:help text-objects
:help :s
:help /\0
:help /[
:help /\+
:help /\?
:help /\s

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

vim edit help


HI All,

 I have text in below format 
var illness = new Array("tvlPlyCp","tvlPlcyCertID","tvlShdIt","tvlRepMedEi","tvlMdRp","tvlRrepdsc","tvlPolRep")

i need to convert it 

var illness = new dojox.collections.ArrayList();
illness.add("tvlPlyCp");
illness.add("tvlPlcyCertID")
illness.add("tvlShdIt")

illness.add("tvlRepMedEi")
illness.add("tvlMdRp");
illness.add("tvlRrepdsc");
illness.add("tvlPolRep");

Can anybody help me on this
--
Thanks & Regards
 Vickyb


--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: ctrlP to navigate arbitrary directory

thanks for the quick response.

I did try .. and ../  but didn't try ..<cr> . :)

So when CtrlP started, I can only stay at project directory. or ../../../......../../ <enter> to root :)
i think i have to get used to it if I use it.



On Thu, Feb 28, 2013 at 3:42 PM, Benjamin R. Haskell <vim@benizi.com> wrote:
On Thu, 28 Feb 2013, Kent wrote:

Hello,
I use FuzzyFinder for years. Recently I heard a lot about CtrlP. And gave it a try. It does have some good features over FF. However one thing I didn't figure out, with FF(File search), I can type "/etc" to navigate to my root directory and do search, no matter which directory I am in.

However for CtrlP, it seems that it searches only under current directory. In doc I found I can type .. to go to parent dir. but it didn't work for me somehow. 

You type .., then hit enter.



How can I navigate to arbitrary directory with CtrlP?

You can't navigate to an arbitrary directory once CtrlP is up, but you can invoke CtrlP on an arbitrary directory, e.g.:

:CtrlP /home/bhaskell/git/project

Also see:

:help g:ctrlp_working_path_mode

And:

:help :CtrlPCurFile

I've mapped the latter to ,n with:

:nm <leader>n :CtrlPCurFile<CR>

--
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

--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: ctrlP to navigate arbitrary directory

On Thu, 28 Feb 2013, Benjamin R. Haskell wrote:

> On Thu, 28 Feb 2013, Kent wrote:
>
>> Hello,
>> I use FuzzyFinder for years. Recently I heard a lot about CtrlP. And gave
>> it a try. It does have some good features over FF. However one thing I
>> didn't figure out, with FF(File search), I can type "/etc" to navigate to
>> my root directory and do search, no matter which directory I am in.
>>
>> However for CtrlP, it seems that it searches only under current directory.
>> In doc I found I can type .. to go to parent dir. but it didn't work for me
>> somehow. 
>
> You type .., then hit enter.
>
>
>> How can I navigate to arbitrary directory with CtrlP?
>
> You can't navigate to an arbitrary directory once CtrlP is up, but you can
> invoke CtrlP on an arbitrary directory, e.g.:
>
> :CtrlP /home/bhaskell/git/project
>
> Also see:
>
> :help g:ctrlp_working_path_mode
>
> And:
>
> :help :CtrlPCurFile

Scratch that... The help tag has been removed in recent versions
(wtf?), though the command remains.

It's equivalent to CtrlP with the ctrlp_working_path_mode of 1.

> I've mapped the latter to ,n with:
>
> :nm <leader>n :CtrlPCurFile<CR>

--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: ctrlP to navigate arbitrary directory

On Thu, 28 Feb 2013, Kent wrote:

> Hello,
> I use FuzzyFinder for years. Recently I heard a lot about CtrlP. And
> gave it a try. It does have some good features over FF. However one
> thing I didn't figure out, with FF(File search), I can type "/etc" to
> navigate to my root directory and do search, no matter which directory
> I am in.
>
> However for CtrlP, it seems that it searches only under current
> directory. In doc I found I can type .. to go to parent dir. but it
> didn't work for me somehow. 

You type .., then hit enter.


> How can I navigate to arbitrary directory with CtrlP?

You can't navigate to an arbitrary directory once CtrlP is up, but you
can invoke CtrlP on an arbitrary directory, e.g.:

:CtrlP /home/bhaskell/git/project

Also see:

:help g:ctrlp_working_path_mode

And:

:help :CtrlPCurFile

I've mapped the latter to ,n with:

:nm <leader>n :CtrlPCurFile<CR>

--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

ctrlP to navigate arbitrary directory

Hello,

I use FuzzyFinder for years. Recently I heard a lot about CtrlP. And gave it a try. It does have some good features over FF. However one thing I didn't figure out, with FF(File search), I can type "/etc" to navigate to my root directory and do search, no matter which directory I am in.

However for CtrlP, it seems that it searches only under current directory. In doc I found I can type .. to go to parent dir. but it didn't work for me somehow. 

How can I navigate to arbitrary directory with CtrlP?
 
thanks.

--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: Search Patterns

Hi Frédéric!

On Do, 28 Feb 2013, Frédéric Heulin wrote:

> As Christian suggested, removing the colors escaped sequences from the source may be simplier. For grep, just append \ : cmd | \grep pattern > file

It might be easier to set the grep alias apropriately. It sounds, the
grep alias appends the --color=always which in this case causes the
problem. You probably want rather --color=auto so that grep does not
color output, that is not displayed on a terminal.

regards,
Christian
--
Mit der Liebelei ist es wie mit der Elektrizität: erst Starkstrom,
dann Schwachstrom, zuletzt Wechselstrom.
-- Jaques Tati

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Search Patterns




John Lusby <jlusby42@gmail.com> a écrit :
That worked almost perfectly. The only problem with this one is that the files that are in the working directory aren't proceeded by a slash. I gather that the pattern you gave is for ^ followed by any number of non / characters. I guess I got confused and thought that * was itself a wild card. 

Thank you very much Christian. I've figured out what I needed and more. With your start and a bit of googling the right answer ended up being :%s/^\S*\s//. Another source of confusion had been that I didn't realize >> was append so I was sometimes opening files and not realizing I was seeing outputs from different versions of my command. The proper output from just the grep with no modification was just

[01;31m [Kpreprocessing [m [K /home/john/local/tinyos-2.x/tos/chips/msp430/McuSleepC.nc
[01;31m [Kpreprocessing [m [K /home/john/local/tinyos-2.x/tos/interfaces/McuPowerState.nc
[01;31m [Kpreprocessing [m [K /home/john/local/tinyos-2.x/tos/interfaces/McuPowerOverride.nc
[01;31m [Kpreprocessing [m [K gridEyeAppC.nc
[01;31m [Kpreprocessing [m [K /home/john/local/tinyos-2.x/tos/system/MainC.nc
[01;31m [Kpreprocessing [m [K /home/john/local/tinyos-2.x/tos/interfaces/Boot.nc
[01;31m [Kpreprocessing [m [K /home/john/local/tinyos-2.x/tos/interfaces/Init.nc

The pattern you gave me worked great for every pattern except the ones in the current directory because they didnt have a /, but thats my fault because I linked a portion of the list that didn't include that. Thank you again

-John


On Wed, Feb 27, 2013 at 12:08 AM, Christian Brabandt <cblists@256bit.org> wrote:
On Wed, February 27, 2013 06:37, John Lusby wrote:
> Hello,
>
> I'm currently trying to read a list of files from a make output and push
> them into ctags but I'm having trouble with the substitute. I've been
> using
> vim to try to get the pattern right but I cant seem to figure it out.
>
> I'm currently at the point where my command looks like
>
> make telosb verbose 2>&1 >/dev/null | grep 'preprocessing' | sed -e
> 's/preprocessing//' -e 's/ //' >>somefilenames2.txt
>
> but the lines in somefilenames look all garbled
>
> Heres a snippet
>
> [01;31m [K [m [K/usr/lib/ncc/deputy_nodeputy.h
>  [01;31m [K [m [K/usr/lib/ncc/nesc_nx.h
> [01;31m [K [m [K/home/john/local/tinyos-2.x/tos/system/tos.h
> [01;31m [K [m [K/home/john/local/tinyos-2.x/tos/system/TinySchedulerC.nc
> [01;31m [K [m [K/home/john/local/tinyos-2.x/tos/interfaces/Scheduler.nc
>
> I tried using a pattern like :%s/^*\/// to replace it but that just said
> no
> pattern ^*\/ found. Does anyone know what I'm doing wrong?
>
> Thanks for the help,

Looks like your make program outputs terminal sequences to e.g. display
colors? Try explicitly setting your terminal to somthing dumb for make.
It shouldn't then output those chars:
TERM=vt100 make ...

Your pattern doesn't look right btw. I think what you want to search for
is :%s/^[^/]*//

Your pattern ^*\/ is actually looking for line start followed by a '*'
followed by a slash, which is obviously not what you need.

regards,
Christian

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


As Christian suggested, removing the colors escaped sequences from the source may be simplier. For grep, just append \ : cmd | \grep pattern > file

--
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.

Re: Syntax highlighting in vimdiff makes stuff unreadable (Linux xterm)

This helps.. Thanks...

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Wednesday, February 27, 2013

Re: tab order

Here is what i'm using

function! MoveCurrentTab(value)
if a:value == 0
return
endif
let move = a:value - 1
let move_to = tabpagenr() + move
if move_to < 0
let move_to = 0
endif
exe 'tabmove '.move_to
endfunction

map <silent> <A-S-j> :call MoveCurrentTab(-1)<Esc>
map <silent> <A-S-k> :call MoveCurrentTab(1)<Esc>

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] rece...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: dbext and sqlplus with...)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: dbext and sqlplus without tnsnames)))))

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: dbext and sqlplus without tnsnames))))

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: dbext and sqlplus without tnsnames)))

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: [CSC507-Homework] receipt acknowledged! (was: dbext and sqlplus without tnsnames))

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

[CSC507-Homework] receipt acknowledged! (was: dbext and sqlplus without tnsnames)

Hello,

(this is an automatic reply)

Your homework has been received.

Thank you,
C Campbell

Re: dbext and sqlplus without tnsnames

...
You're right, that is the one I needed. I had tested it before bu
thought it didn't work because I was sending my queries to sqlplus
without a semicolon at the end, so it would hang forever!

By the way, is there any way to do that automatically in dbext?


We can take this off list and you can email me directly.
In short, dbext is supposed to automatically terminate your command if one is not already present.

After you have connected and sent a request, can you run:
:DBGetOption

And send me the output.

David

--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: dbext and sqlplus without tnsnames

Hi David,

On Tue, Feb 26, 2013 at 10:17 PM, David Fishburn
<dfishburn.vim@gmail.com> wrote:
> Two suggestions:
>
> 1. :DBSetOption display_cmd_line=1
> 2. Try each profile setting.
> - Show us the profile string you used.
> - Show us the sqlplus cmd line generated.
> - Show us the error.

Thank you, that really helped me figure out what I was doing wrong!
(I won't paste the results here since what I was doing was really
stupid, as I suspected)

> From the dbext.txt I suspect the example that you want to use for your
> profile is:
> let g:dbext_default_profile_ORA_Extended =
> 'type=ORA:user=scott:passwd=tiger:srvname=(description=(address=(protocol=TCP)(host=localhost)(port=1521))(connect_data=(server=dedicated)(service_name=10gR2)))'

You're right, that is the one I needed. I had tested it before bu
thought it didn't work because I was sending my queries to sqlplus
without a semicolon at the end, so it would hang forever!

By the way, is there any way to do that automatically in dbext? I'm
really not used to doing it in the graphical DEs I use and it would be
nice to get the same behavior with dbext.

Thank you!

Vitor

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Vim wiki editable by git

Excerpts from glts's message of Tue Feb 26 22:15:55 +0100 2013:
> Oh, it's just a personal list, something I could point a newcomer to. If
> you take a look at "wikimatrix.org": I think that's an excellent format,
> lots of tabular data points that you can compare directly with one
> another.
Which says nothing. Again - why do you prefer pathogen over the others?
Why is it starred? That's why your list is useless.

My goal is a guide like this:

A lot of people prefer X for this reason, others prefer Y for that
reason. Then people know which solution to choose and why without trying
everything and the kitchen sink.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Search Patterns

On Wed, February 27, 2013 06:37, John Lusby wrote:
> Hello,
>
> I'm currently trying to read a list of files from a make output and push
> them into ctags but I'm having trouble with the substitute. I've been
> using
> vim to try to get the pattern right but I cant seem to figure it out.
>
> I'm currently at the point where my command looks like
>
> make telosb verbose 2>&1 >/dev/null | grep 'preprocessing' | sed -e
> 's/preprocessing//' -e 's/ //' >>somefilenames2.txt
>
> but the lines in somefilenames look all garbled
>
> Heres a snippet
>
> [01;31m [K [m [K/usr/lib/ncc/deputy_nodeputy.h
> [01;31m [K [m [K/usr/lib/ncc/nesc_nx.h
> [01;31m [K [m [K/home/john/local/tinyos-2.x/tos/system/tos.h
> [01;31m [K [m [K/home/john/local/tinyos-2.x/tos/system/TinySchedulerC.nc
> [01;31m [K [m [K/home/john/local/tinyos-2.x/tos/interfaces/Scheduler.nc
>
> I tried using a pattern like :%s/^*\/// to replace it but that just said
> no
> pattern ^*\/ found. Does anyone know what I'm doing wrong?
>
> Thanks for the help,

Looks like your make program outputs terminal sequences to e.g. display
colors? Try explicitly setting your terminal to somthing dumb for make.
It shouldn't then output those chars:
TERM=vt100 make ...

Your pattern doesn't look right btw. I think what you want to search for
is :%s/^[^/]*//

Your pattern ^*\/ is actually looking for line start followed by a '*'
followed by a slash, which is obviously not what you need.

regards,
Christian

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: noscrollbind ignored (kind of)

On Wed, February 27, 2013 07:49, AndyHancock wrote:
> Hi, Christian,
>
> The diffoff command seems to solve the problem. As for reproducing the
> problem, I ran
>
> "C:\Program Files (x86)\Vim\vim73\gvim.exe" -u NONE -N
>
> Then I split the window vertically. In the left half I loaded any text
> file that was long enough to occupy several screens. On the right window,
> I loaded a 2nd text file whose contents were identical to the first one.
> I then issued:
>
> :windo diffthis
> :windo set nofenable
>
> Then I issued:
>
> :windo set nodiff foldcolumn=0 noscrollbind
>
> When I pressed ctrl-F to page forward in any one window for 2-3 times, the
> other window followed. This is consistent with cursorbind, as suggested
> by Ben Fritz. So I think the problem is solved. Thanks.

I think, what you are seeing is the effect of 'cursorbind', which
get's set by diff-mode and is still set in all windows.

I am currently puzzled, what cursorbind does, that scrollbind doesn't
provide e.g. why we need both options and I don't understand it in
the manual.

So yes, using :diffoff! is easier to stop diff mode.

regards,
Christian

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Tuesday, February 26, 2013

Re: noscrollbind ignored (kind of)

Hi, Christian,

The diffoff command seems to solve the problem. As for reproducing the problem, I ran

"C:\Program Files (x86)\Vim\vim73\gvim.exe" -u NONE -N

Then I split the window vertically. In the left half I loaded any text file that was long enough to occupy several screens. On the right window, I loaded a 2nd text file whose contents were identical to the first one. I then issued:

:windo diffthis
:windo set nofenable

Then I issued:

:windo set nodiff foldcolumn=0 noscrollbind

When I pressed ctrl-F to page forward in any one window for 2-3 times, the other window followed. This is consistent with cursorbind, as suggested by Ben Fritz. So I think the problem is solved. Thanks.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Patterns

Hello,

I'm currently trying to read a list of files from a make output and push them into ctags but I'm having trouble with the substitute. I've been using vim to try to get the pattern right but I cant seem to figure it out.

I'm currently at the point where my command looks like

make telosb verbose 2>&1 >/dev/null | grep 'preprocessing' | sed -e 's/preprocessing//' -e 's/ //' >>somefilenames2.txt

but the lines in somefilenames look all garbled

Heres a snippet

[01;31m [K [m [K/usr/lib/ncc/deputy_nodeputy.h
[01;31m [K [m [K/usr/lib/ncc/nesc_nx.h
[01;31m [K [m [K/home/john/local/tinyos-2.x/tos/system/tos.h
[01;31m [K [m [K/home/john/local/tinyos-2.x/tos/system/TinySchedulerC.nc
[01;31m [K [m [K/home/john/local/tinyos-2.x/tos/interfaces/Scheduler.nc

I tried using a pattern like :%s/^*\/// to replace it but that just said no pattern ^*\/ found. Does anyone know what I'm doing wrong?

Thanks for the help,

-John

--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: dbext and sqlplus without tnsnames




On Tue, Feb 26, 2013 at 6:32 PM, Vitor Eiji Justus Sakaguti <vitoreiji0@gmail.com> wrote:
...
 
I'm trying to setup a dbext environment on a Windows machine to
connect to a remote Oracle database.
However, I don't have write access to tnsnames.ora and cannot add the
proper entry for the database to which I need to connect.

I tried several different forms of profile setting, according to the
very examples in the help file

Two suggestions:

1.  :DBSetOption display_cmd_line=1
2.  Try each profile setting.
- Show us the profile string you used.
- Show us the sqlplus cmd line generated.
- Show us the error.


 
but whatever I did, when I tried to
execute somthing I saw that a cmd.exe was run with something like
this:

cmd.exe /c sqlplus -S "myUser/myPass@myServiceName"
@C:\Users\More\Path\dbext.sql > C:\You\Get\The\idea\sdkfg.tmp 2>&1

The :DBSetOption above will show you this cmd line in the normal dbext output buffer.

From the dbext.txt I suspect the example that you want to use for your profile is:
    let g:dbext_default_profile_ORA_Extended = 'type=ORA:user=scott:passwd=tiger:srvname=(description=(address=(protocol=TCP)(host=localhost)(port=1521))(connect_data=(server=dedicated)(service_name=10gR2)))'

Also, if you continue have problems can you run:
:DBGetOption

And post it's contents with your other output from above.

David

--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: How to refresh (reload) an opened file?

On 2013-02-26, Tim Chase wrote:
> On 2013-02-26 10:53, Andy Richer wrote:
> > I opened a report file that is changed once I correct some code and
> > re-generate report.
> > Is there a way that I can do "refresh" or "reload" without quit the
> > re-open the file to see updated contents?
>
> Depends on what behavior you want, and whether you want to preserve
> any changes you made in the first version of the output. To re-read
> the file from disk, you can use
>
> :e
>
> (note: no filename) If you've made changes in the current buffer,
> you can abandon those with
>
> :e!
>
> If you want to keep the current version in Vim and read the existing
> file into another buffer, ...

An easy way to compare the current buffer contents with the version
on-disk is to use the DiffOrig command. See

:help DiffOrig

Regards,
Gary

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

dbext and sqlplus without tnsnames

Hi,

This is actually a question about a vim plugin, but I guess this is
the best place to ask it. Please forgive me if I'm wrong.

I'm trying to setup a dbext environment on a Windows machine to
connect to a remote Oracle database.
However, I don't have write access to tnsnames.ora and cannot add the
proper entry for the database to which I need to connect.

I tried several different forms of profile setting, according to the
very examples in the help file, but whatever I did, when I tried to
execute somthing I saw that a cmd.exe was run with something like
this:

cmd.exe /c sqlplus -S "myUser/myPass@myServiceName"
@C:\Users\More\Path\dbext.sql > C:\You\Get\The\idea\sdkfg.tmp 2>&1

Those are not really my username, password, service name os
directories, but they show correctly.
There is no mention, however, to the host and port, even though I did
set them in my profile.

I suppose dbext tries to use the info from tnsnames, but it is not there...

What am I missing here?

(it is my first time trying dbext out! I usually connect to oracle
databases using SQLWorkbench/J with a JDBC connection string and no
tnsnames...)

Thank you!

Vitor

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: How to refresh (reload) an opened file?

On Tuesday, February 26, 2013 1:10:32 PM UTC-6, Tim Chase wrote:
> On 2013-02-26 10:53, Andy Richer wrote:
>
> > I opened a report file that is changed once I correct some code and
>
> > re-generate report.
>
> > Is there a way that I can do "refresh" or "reload" without quit the
>
> > re-open the file to see updated contents?
>
>
>
> Depends on what behavior you want, and whether you want to preserve
>
> any changes you made in the first version of the output. To re-read
>
> the file from disk, you can use
>
>
>
> :e
>
>
>
> (note: no filename) If you've made changes in the current buffer,
>
> you can abandon those with
>
>
>
> :e!
>
>
>

Note, this will destroy undo history, unless you have 'undofile' set, and 'undoreload' is a number larger than the number of lines in your file.

If 'undofile' and 'undoreload' are set properly, you can actually undo reading in the file if it abandoned your unsaved changes.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: How to refresh (reload) an opened file?

On Tuesday, February 26, 2013 1:49:20 PM UTC-6, Sven Guckes wrote:
>
> you can probably map this to a key...
>
>
>
> map <f9> :new|:r #|:1d
>
>
>
> but when i enter this mapping then the '#' is
>
> expanded right away and gives me an error:
>
>
>
> E484: Can't open file #
>
>
>
> how to stop that from happening again?
>


In mappings you must either escape the | or use <Bar>.

map <f9> :new\|:r #\|:1d
map <f9> :new<Bar>:r #<Bar>:1d

Otherwise, Vim sees this as:

map <F9> :new

Followed by a separate :r # command.

Actually, this is best written without the redundant : characters, and you will need to end command-line mode with <CR>:

map <f9> :new\|r #\|1d<CR>

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Vim wiki editable by git

Oh, it's just a personal list, something I could point a newcomer to. If
you take a look at "wikimatrix.org": I think that's an excellent format,
lots of tabular data points that you can compare directly with one
another.

I just tried to emulate that format in a primitive way. The date should
give some indication whether development is active, the "plug-and-play"
tick should tell you if you can just unzip/git clone and don't need
external dependencies/config, etc.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Vim wiki editable by git

> http://glts.github.com/VimPluginMatrix/
You're welcome to join and contribute. In which way does your list
differ from what www.vim.org provides?

Example: does it tell me why you starred pathogen and not Vundle or VAM
(using plugin management filter?)

You have both in the list: YouCompleteMe and neocomplcache - which one
do you use for what reason?

I think this is the information users are looking for.

I don't understand what PnP means. Probably you mean viml only - no need
to compile vim with python or external tools?

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Vim wiki editable by git

Hi Marc

I made my own list of popular plugins recently. My approach was less
wiki, more "wikimatrix.org". Maybe you can find some useful ideas in
there:

http://glts.github.com/VimPluginMatrix/

Cheers, glts

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Always restore buffer list from .viminfo file

Hello Adrian,

On Tue, Feb 26, 2013 at 08:21:23AM -0800, Adrian Luff wrote:
> I use the following lines in my .vimrc…
>
> > " Auto save/load session
> > function! CheckSessionFile()
> > if filereadable(expand("$HOME/.vim/session/default.vim"))
> > source $HOME/.vim/session/default.vim
> > endif
> > endfunction
> >
> >
> > if has('gui_running')
> > autocmd VimLeave * mksession! $HOME/.vim/session/default.vim
> > autocmd VimEnter * nested call CheckSessionFile()
> > autocmd * SessionLoadPost source $MYVIMRC
> > endif
>
> This automatically saves a session when GUI Vim leaves and loads the
> session file if it exists on start up.
>
Thank you. I think some function like that might be helpful.

> It may not work well for you since it sounds like you're always in
> terminal Vim but I thought I'd pass it along.
>
No, I don't believe in GUIs.

Cheers,
Arvid

--
[ Arvid Warnecke ][ arvid (at) nostalgix (dot) org ]
[ IRC/OPN: "madhatter" ][ http://www.nostalgix.org ]
---[ ThreePiO was right: Let the Wookiee win. ]---

Re: How to refresh (reload) an opened file?

* Tim Chase <vim@tim.thechases.com> [2013-02-26 20:36]:
> Or, you can leave the current buffer pointed at
> the file and read the new file into a new buffer:
> :new " create a new empty buffer
> :r filename.txt " read in the contents from disk
> :1d " delete the initial blank line

slight variation:

:new " create a new empty buffer
:r # " read in the contents from disk
:1d " delete the initial blank line

where the '#' is the "alternate file name" (read:
the file name associated with the alternate buffer).

you can probably map this to a key...

map <f9> :new|:r #|:1d

but when i enter this mapping then the '#' is
expanded right away and gives me an error:

E484: Can't open file #

how to stop that from happening again?

Sven

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: How to refresh (reload) an opened file?

On Wednesday, February 27, 2013 7:53:00 AM UTC+13, andy richer wrote:

> Is there a way that I can do "refresh" or "reload" without quit the re-open the file to see updated contents?

The 'autoread' option does this. This works well in gvim because there is an implicit
:checktime
when gvim regains the input focus. See :help timestamp.

If you want a vim in a terminal to refresh, or gvim without getting the input focus, one can use the client-server stuff to tell vim to check if the file has changed. See :help client-server.

Regards, John Little

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Always restore buffer list from .viminfo file

Hello Emmanuel,

On Tue, Feb 26, 2013 at 11:01:10AM +0100, Emmanuel GALLOIS wrote:
> On 20/02/13 10:26, Arvid Warnecke wrote:
> >is there any chance to recover all opened buffers in vim from the
> >~/.viminfo file somehow?
> >I understood that vim trashes the buffers list when vim is started with
> >a specific file to edit. But as I use vim in mutt as my default editor
> >as well, I always loose my buffers because mutt opens it like this:
> >
> >`vim /tmp/mutt-archbookPro-1000-895-3021467551525290154`
> >
>
> Maybe :mksession is the right answer for you...
>
> :h mksession
>
> see point #7.
>
>
Thank you. This seems to be a solution, I will give it a try. The only
thing that might cause some trouble is that I will still have multiple
vim sessions, because mutt, crontab and others won't use the vim I
always have open for coding.

Cheers,
Arvid

--
[ Arvid Warnecke ][ arvid (at) nostalgix (dot) org ]
[ IRC/OPN: "madhatter" ][ http://www.nostalgix.org ]
---[ ThreePiO was right: Let the Wookiee win. ]---

Re: Favourite Terminal for use with vim ?

Hi!

On Wed, 13 Feb 2013, Erik Christiansen wrote:
> programmer and for banging out posts within mutt. I've heard of people
> preferring urxvt, but never figured out why.

For a long time, urxvt's unicode support was multiple orders of
magnitude better than xterm's (as in: xterm didn't have any). If
you use more than the 26 Latin chars used in ASCII English in your
everyday language, proper first-order support is important. Since
you're an old fart like me: Unicode support was/is the modern
equivalent of being 8-bit clean.

Also, urxvt can be compiled to be very, very small, which some
people prefer for whatever reason.

Regards,
Tobias

--
Sent from aboard the Culture ship
GCU Only Slightly Bent

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: How to refresh (reload) an opened file?

On 2013-02-26 10:53, Andy Richer wrote:
> I opened a report file that is changed once I correct some code and
> re-generate report.
> Is there a way that I can do "refresh" or "reload" without quit the
> re-open the file to see updated contents?

Depends on what behavior you want, and whether you want to preserve
any changes you made in the first version of the output. To re-read
the file from disk, you can use

:e

(note: no filename) If you've made changes in the current buffer,
you can abandon those with

:e!

If you want to keep the current version in Vim and read the existing
file into another buffer, you can do that either by preserving what
you have into another scratch buffer and re-reading as above:

:%y " yank the old contents
:new " create a new buffer
:put " dump the old contents into this buffer
:1d " delete the initial blank line
:e! " reread the updated file

Or, you can leave the current buffer pointed at the file and read the
new file into a new buffer:

:new " create a new empty buffer
:r filename.txt " read in the contents from disk
:1d " delete the initial blank line

If you want to compare the old-version with the new version, I
recommend the "yank, new, put, e!" version, possibly followed by a
":diffthis" in each buffer.

-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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: How to refresh (reload) an opened file?

use 
:e 

to reload the file.  if you've made changes to the file
:e! 


On Tue, Feb 26, 2013 at 1:53 PM, Andy Richer <andy.richer@gmail.com> wrote:
Hi vim Guru:

I opened a report file that is changed once I correct some code and re-generate report.
Is there a way that I can do "refresh" or "reload" without quit the re-open the file to see updated contents?


Thanks in advance
Andy Richer

--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

How to refresh (reload) an opened file?

Hi vim Guru:

I opened a report file that is changed once I correct some code and re-generate report.
Is there a way that I can do "refresh" or "reload" without quit the re-open the file to see updated contents?


Thanks in advance
Andy Richer

--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: Favourite Terminal for use with vim ?

On Tuesday, 12 February, 2013 at 15:37:20 GMT, Patrick wrote:
>What is your favourite terminal to run vim in?

Terminator. It supports tabs, multiple inside windows and customisable key bindings to move around them, UTF8, can hide the mouse cursor, and has plugins to alert upon activity or silence. The only thing is it doesn't come pre-installed (with Slackware). I'd use konsole because it supports all of the above plus its 'find' feature actually worked, but there was a titlebar bug in previous versions and I haven't tried the latest.

--

.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Always restore buffer list from .viminfo file

I use the following lines in my .vimrc…

> " Auto save/load session
> function! CheckSessionFile()
> if filereadable(expand("$HOME/.vim/session/default.vim"))
> source $HOME/.vim/session/default.vim
> endif
> endfunction
>
>
> if has('gui_running')
> autocmd VimLeave * mksession! $HOME/.vim/session/default.vim
> autocmd VimEnter * nested call CheckSessionFile()
> autocmd * SessionLoadPost source $MYVIMRC
> endif

This automatically saves a session when GUI Vim leaves and loads the session file if it exists on start up. It may not work well for you since it sounds like you're always in terminal Vim but I thought I'd pass it along.

-Adrian

On Feb 20, 2013, at 1:26 AM, Arvid Warnecke <arvid@nostalgix.org> wrote:

> Hello,
>
> is there any chance to recover all opened buffers in vim from the
> ~/.viminfo file somehow?
> I understood that vim trashes the buffers list when vim is started with
> a specific file to edit. But as I use vim in mutt as my default editor
> as well, I always loose my buffers because mutt opens it like this:
>
> `vim /tmp/mutt-archbookPro-1000-895-3021467551525290154`
>
> So it does not help when I try to use only one vim instance running on
> my workstation to keep all buffers around.
>
> I read something about v:oldfiles, but I have no clue how this file
> might be of any help, because I just have a list of all old files in a
> new buffer. I am not able to restore the buffers from it.
>
> Best regards,
> Arvid
>
> --
> [ Arvid Warnecke ][ arvid (at) nostalgix (dot) org ]
> [ IRC/OPN: "madhatter" ][ http://www.nostalgix.org ]
> ---[ ThreePiO was right: Let the Wookiee win. ]---

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.