Re: Opening files in new windows

2011-05-18 Thread David Kahn
On Wed, May 18, 2011 at 4:18 PM, Ven Tadipatri vtadipa...@gmail.com wrote: So I'm in vim currently looking at a file that has another filename and I want to be able to open that particular file in a new, I guess 'buffer'. I tried ctrl+w then gf, but that opens it up into something that looks

Re: Opening files in new windows

2011-05-18 Thread David Kahn
On Wed, May 18, 2011 at 4:28 PM, Ven Tadipatri vtadipa...@gmail.com wrote: Ah, ok, so they are 'tabs'. But why should ctrl+w, gf open a new tab as opposed to a new window? And I can see that gt navigates through tabs, but is there a way I can navigate forward 3 tabs, like :b3 for buffers? I

Re: Foldings: why to they unfold below if I type a quote ( ' or )

2011-04-28 Thread David Kahn
On Thu, Apr 28, 2011 at 10:31 AM, Paul google01...@rainslide.net wrote: On Wed, Apr 27, 2011 at 04:26:13PM -0500, David Kahn wrote: I am curious if there is a way to make foldings not unfold if I type a quote. For example, if I am adding to the header or content in an open Maybe

Re: Any non-programmer users of Vim here?

2011-04-07 Thread David Kahn
On Thu, Apr 7, 2011 at 3:38 PM, tux. der_tux...@arcor.de wrote: Eric Weir schrob am 07.04.2011 22:15: So, I'm wondering if there are any ordinary, nonprogrammer writers here who've gotten comfortable with Vim as a writer's editor -- or is that just ridiculous to think of? I use Vim (also)

Re: Any non-programmer users of Vim here?

2011-04-07 Thread David Kahn
On Thu, Apr 7, 2011 at 3:59 PM, David Ohlemacher dohlemac...@scisol.comwrote: The way I learned vi: 1. Start a cheatsheet. Don't download one. Make your own. Making it will help you learn. I use Tomboy Notes, but at the beginning, paper is better. Agreed... I copied and pasted to an

Way to clear line without removing the line?

2011-03-28 Thread David Kahn
I am guessing this should be a real simple question but cant find an answer readily: If I want to remove all contents of a line, I press 'd' twice. But in most cases I want the line to still be there (meaning the space, so after deleting I would have a blank line), so I tend to find myself when

Re: Window resizing

2011-03-01 Thread David Kahn
On Sat, Feb 26, 2011 at 6:24 PM, AK andrei@gmail.com wrote: On 02/26/2011 07:13 PM, David Kahn wrote: I am having some trouble following (or getting the expected result) following the documentation in resizing a window: :res[ize] -N*:res* *:resize* *CTRL-W_-* CTRL-W

Window resizing

2011-02-26 Thread David Kahn
I am having some trouble following (or getting the expected result) following the documentation in resizing a window: :res[ize] -N*:res* *:resize* *CTRL-W_-* CTRL-W -Decrease current window height by N (default 1). If used after |:vertical|: decrease width by N.

Re: text substitution for all the files opened in vim

2011-02-24 Thread David Kahn
On Thu, Feb 24, 2011 at 6:33 AM, Christian Brabandt cbli...@256bit.orgwrote: On Thu, February 24, 2011 1:03 pm, Tim Chase wrote: On 02/23/2011 11:20 PM, Ben Schmidt wrote: :help :argdo :help :bufdo ...remembering that vim will complain if you try to leave a modified buffer unless you

Copy/delete/paste strategy?

2011-02-21 Thread David Kahn
Relatively new to vim. I know there are other ways to do this specific task such as search/replace but I want to understand how to repeatedly paste some text but also overwrite a certain character, in the case I want to do it manually. This has brought me to need to understand if there is a sort

Re: New to vim: How to get the matched string in a search and use it in a replace

2011-02-17 Thread David Kahn
On Thu, Feb 17, 2011 at 10:31 AM, Andrew Long andrew.l...@mac.com wrote: On 17 Feb 2011, at 16:05, DK wrote: This should be straight forward but I can't readily find an answer: If I have a search: :%s/search_text.*more_text/replace_text/gc How can I access the matched text (note

Re: OT: Vim Humans are...

2011-02-17 Thread David Kahn
On Thu, Feb 17, 2011 at 12:43 PM, meino.cra...@gmx.de wrote: Hi, first of all: My interest and/or question, which let me post here, is neither intended as the initial spark for a flame war nor as anything _against_ someone or something. May be it is a kind of exploring the psychology of the