Vim Tips Wiki
Advertisement

New tips August 2008

For each proposed new tip:

  • Is it worth keeping as a separate tip?
  • Should it be merged into an existing tip? Which?
  • If it should be kept, is it ready for release? Which points need fixing? Should it be renamed?

Please edit this page (not the talk page) in the appropriate section below the following table.
Alternatively, comments can be posted on the mailing list.

Proposed new tip Link Current consensus
Check and set alternate value for set options discuss -
Converting variables to camelCase discuss -
Detect window creation with WinEnter discuss Keep
Display shell commands' output on Vim window discuss Rename and Keep
Edit a file or jump to it if already open discuss Keep
Indenting for Qt C++ discuss -
Recreate Tempfile Directory discuss -
Redirect K command or perl files to perldoc (K-lookup manual page) discuss -
Using VimBall with 'Make' discuss Rename and Keep
Verbose Regular Expressions for Vim discuss -

Please add your comment (sign with ~~~~) below the appropriate heading. Use ---- between comments.

General comments (not for a specific tip)

Check and set alternate value for set options

Perhaps merge to 37 Managing boolean options? --JohnBeckett 03:05, 13 January 2009 (UTC)

Converting variables to camelCase

Possibly not achievable, but perhaps merge to 1016 for a camel case tip, or to 1527 for a $var tip? --JohnBeckett 03:05, 13 January 2009 (UTC)

Detect window creation with WinEnter

This works fine, I use it for a few things in my .vimrc. Not too common of a problem, but a useful tip nevertheless. --Fritzophrenic 22:25, 12 January 2009 (UTC)

Keep. --JohnBeckett 03:05, 13 January 2009 (UTC)

Display shell commands' output on Vim window

I think this tip rocks and should be kept!!! LightKnight 07:22, 8 September 2008 (UTC)

This was discussed on the GIT mail list. Some improvements to the original script have been made. Refer to http://marc.info/?t=122073004900001 for more information.
It looks good to me. Merge in any improvement from the link and keep, after a rename to remove punctuation ("Display output of shell commands in new window"?). --Fritzophrenic 22:25, 12 January 2009 (UTC)
Agree (rename as above and keep). I quickly looked through the git mailing list link, and my guess is that all enhancements have been included here. --JohnBeckett 03:05, 13 January 2009 (UTC)

Edit a file or jump to it if already open

I did not know about the :drop command when I wrote this tip. I don't think it does anything not offered by :drop and :tab drop. Do we want to delete it or completely rewrite it to point out :drop and :tab drop? I would lean toward deleting it. --Fritzophrenic 18:45, 30 December 2008 (UTC)

I've rethought...we should rewrite it to demonstrate the :drop command. :drop is hardly an obvious thing to search the help for, and the problem is common enough that we really need something that people can find if they search for it. --Fritzophrenic 22:25, 12 January 2009 (UTC)
Keep. No tips discuss :drop. --JohnBeckett 03:05, 13 January 2009 (UTC)

Indenting for Qt C++

This tip doesn't work very well. It seems to work on some code, but doesn't on other code. IMO, it clearly needs more work to become publishable.


Luckily, indentation is something easy to fix by hand if the indent script isn't perfect. Also, just because a tip doesn't work in all cases doesn't mean we shouldn't keep it. I say we keep it, with a note in the comments that it "doesn't work" on all code (though, what does it do that is unexpected? What cases does it fail in? Just stating that it "doesn't work" is fairly useless). If the quality is very bad (which it doesn't look like, becase "it seems to work on some code," then we could consider removing it or applying a "dodgy" template. From what I know at the moment, however, I say keep. --Fritzophrenic 16:34, 14 January 2009 (UTC)

Recreate Tempfile Directory

Keep, but rename for our naming conventions for the case of words (e.g. Recreate tempfile directory). I don't know how common this problem is, but I see no reason to remove the tip. No doubt someone will find it useful. --Fritzophrenic 16:30, 14 January 2009 (UTC)

Redirect K command or perl files to perldoc (K-lookup manual page)

Maybe merge to one of following? --JohnBeckett 03:05, 13 January 2009 (UTC)

Using VimBall with 'Make'

I like it! -- Chip Campbell

Verbose Regular Expressions for Vim

I don't see much of a point to this one. It may as well be called "Comment your Vim script so you know what your regexes do". It is good advice, but is it worth having a tip for? Personally, I think not. Recommendation: delete --Fritzophrenic 22:27, 12 January 2009 (UTC)


Advertisement