Vim Tips Wiki
m (typo)
 
(21 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
'''''Please use this page to discuss pages that have been labeled for deletion.'''''
 
'''''Please use this page to discuss pages that have been labeled for deletion.'''''
   
Archives: [[/Archive1|'''1''']] • [[/Archive2|'''2''']] • [[/Archive3|'''3''']] • [[/Archive4|'''4''']] • [[/Archive5|'''5''']] • [[/Archive6|'''6''']] • [[/Archive7|'''7''']] • [[/Archive8|'''8''']]
+
'''Archives:''' [[/Archive1|'''1''']] • [[/Archive2|'''2''']] • [[/Archive3|'''3''']] • [[/Archive4|'''4''']] • [[/Archive5|'''5''']] • [[/Archive6|'''6''']] • [[/Archive7|'''7''']] • [[/Archive8|'''8''']] • [[/Archive9|'''9''']] • [[/Archive10|'''10''']]
   
  +
'''Removed tips''' are listed [[Talk:Candidates for deletion/Removed|here]].
*I've marked [[Restoring_indent_after_typing_hash]] for deletion. <tt>'smartindent'</tt> should (in general) be avoided like the plague, and it doesn't seem to be a very good tip anyway. ([[User:Spiiph|Spiiph]] 14:01, 29 July 2009 (UTC))
 
::I disagree with this deletion (although I do agree that 'smartindent' isn't smart at all). For now, I'd mark the tip <nowiki>{{dodgy}}</nowiki> instead of <nowiki>{{delete}}</nowiki>. Eventually, we should merge in the comments and recommend NOT using 'smartindent' (and using 'cindent' or filetype indentation instead) before we present the workaround for bad 'smartindent' behavior. But, some people will no doubt ignore our advice about not using 'smartindent', and information about how to work around it is probably useful. --[[User:Fritzophrenic|Fritzophrenic]] 14:22, 29 July 2009 (UTC)
 
:::Fair enough. I guess it might be a good page to catch people using <tt>'smartindent'</tt> and give them a slap on the fingers. ;) That the example in the {{help|'smartindent'}} doesn't work in <tt>.vimrc</tt> is bogus information, though, and we should just copy that text. ([[User:Spiiph|Spiiph]] 15:19, 29 July 2009 (UTC))
 
:::: <nowiki>[OT]</nowiki> Why give them a slap on the fingers? I <u>like</u> <tt>'smartindent'</tt> much better than I do <tt>:filetype indent on</tt> — it indents my vim-scripts reasonably nicely and doesn't try to mess with my unsystematic HTML indenting. (I rarely program in C, and when I do I use /* */ comments, and directives with # in column 1 possibly followed by indenting spaces before if, ifdef, define, etc.; in sh-script I don't use # other than in the first column; so I don't have the described problem anyway.) — [[User:Tonymec|Tonymec]] 22:25, 2 August 2009 (UTC)
 
::::: Because <tt>'smartindent'</tt> adds nothing of value on top of <tt>:filetype indent on</tt>. It also creates a lot of support questions from users wondering why their <tt>#</tt>'s keep ending up in the first column in their Ruby or Python files. I can allow that an experienced user might prefer <tt>'smartindent'</tt>, (even though I don't understand why), but I don't think it should be advocated; ever. Anyway, the "slap on their fingers" was said jokingly; a "don't use this option unless you know what you're doing"-warning might be more suitable. ([[User:Spiiph|Spiiph]] 22:35, 2 August 2009 (UTC))
 
:::::: <tt>'smartindent'</tt> was never meant to add anything of value '''on top of''' <tt>:filetype indent on</tt> — indeed, it is overridden by either <tt>'cindent'</tt> or <tt>'indentexpr'</tt> (which are the options usually set by filetype-related indenting, except maybe for Lisp), so if you use <tt>:filetype indent on</tt>, <tt>'smartindent'</tt> will probably rarely or never make any difference to you. But <tt>:filetype indent on</tt> tries to overrule my own way of indenting files (HTML pages for instance) — thinking that it knows how I ought to behave better than I do, so ''it tries to make what it calls "my own good" in its own way and against my will,'' something I hate — so I disable it. <u>Then</u> <tt>'smartindent'</tt> gives me something useful — something of value '''instead of''' <tt>:filetype indent on</tt> or, if you prefer, on top of <tt>:filetype indent '''off'''</tt>. As for Ruby, I don't know anything about it it, and I dislike Python because it gives syntax meaning to whitespace — the amount of it at the start of a line. I want to be able to restore correct indenting in a program even if some accident (in mail transport, say) removes all start-of-line indenting. — [[User:Tonymec|Tonymec]] 23:05, 2 August 2009 (UTC)
 
:::::: P.S. I might say that I like smart indenting, but not smartass-indenting, which is what I get when the indenting routine tries to appear smarter than it really is. — [[User:Tonymec|Tonymec]] 23:16, 2 August 2009 (UTC)
 
:::::::So just because you don't use Ruby, and dislike Python, you recommend using <tt>'smartindent'</tt> to users? Regardles of what {{help|'indendexpr'}} says, <tt>'smartindent'</tt> interferes with indentation even if <tt>'indentexpr'</tt> is set, by placing <tt>#</tt>'s at the first column. This is why recommending <tt>'smartindent'</tt> is a bad idea. ([[User:Spiiph|Spiiph]] 10:17, 3 August 2009 (UTC))
 
::::::::I don't '''recommend''' that everyone use it, but neither do I approve the statement that no one should ever use it, even up to saying (if jocularly) that its users ought to be slapped on the fingers for it. <tt>'smartindent'</tt>, like anything in Vim, should not be <u>misused</u> but it can (and should) be <u>used</u> with reason, by users with whose style it meshes well, and in particular, I don't believe that one should use '''both''' <tt>:set smartindent</tt> and <tt>:filetype indent on</tt> globally in the vimrc. When I was a Vim newbie, it took me months to track why Vim was <u>bossily</u> changing the indents in my HTML pages without my say-so, and that the solution was to add <tt>:filetype indent off</tt> after I source the <tt>vimrc_example.vim</tt> At least, <tt>'smartindent'</tt> is off by default, regardless of whether the example vimrc is being used: You can only have it on if you explicitly set it on. — [[User:Tonymec|Tonymec]] 11:06, 3 August 2009 (UTC)
 
   
  +
==In discussion==
  +
*[[Replace the file name extension]]
  +
:Do we have a suitable tip for using {{help|prefix=no|filename-modifiers}}? This tip needs work, but is much more geared toward using filename-modifiers than it is toward compiling Tex files, as the deletion comment suggests as the reason for deletion. --[[User:Fritzophrenic|Fritzophrenic]] 17:47, November 28, 2011 (UTC)
  +
*[[Some useful mappings for TeX]]
  +
:Some of these mappings are basically included it [[Automatically append closing characters]], others are similar to various snippet/template plugins or tips in [[:Category:Automated Text Insertion]], but I don't recall seeing the CleverSpace() stuff anywhere. And we do tend to show people how to do it, rather than just direct them to plugins (although certainly we should mention plugins where they're potentially better/more versatile than the mappings in a tip). --[[User:Fritzophrenic|Fritzophrenic]] 17:47, November 28, 2011 (UTC)
   
  +
Redirect and proposal for a tip that was not completed:
*I've marked another tip ([[Access_Python_Help]]) for deletion, as a duplicate of [[Get_help_on_Python_libraries]], and I think that no further merging is necessary. Is it okay to remove the <nowiki>{{review}}</nowiki> template after having done so? ([[User:Spiiph|Spiiph]] 21:36, 29 July 2009 (UTC))
 
  +
*[[Using Vim with Loreto]]
  +
*[[User:Goj/Using Vim with Loreto]]
  +
*[[:File:Vim-loreto-1.png]] – [[Special:Contributions/Goj|Goj]]
  +
*[[:File:Vim-loreto-2.png]] – [[Special:Contributions/Goj|Goj]]
  +
*[[:File:Vim-loreto-3.png]] – [[Special:Contributions/Goj|Goj]]
  +
*[[:File:Vim-loreto-4.png]] – [[Special:Contributions/Goj|Goj]]
  +
:I don't think we should delete these. Without a very good reason (spam, inappropriate content, etc.) I see no point in removing user subpages, and would consider it rude if somebody removed mine without my agreement.
  +
:I could accept deleting the redirect, but would prefer that stays too. Wikia isn't hurting for space or anything. The fact that you're redirected to a user subpage if you do happen to stumble on the redirect should be a clue that something is different about this page, plus the fact that there will be no tip template with an ID.
 
:--[[User:Fritzophrenic|Fritzophrenic]] 16:47, August 25, 2011 (UTC)
   
  +
==To be deleted==
;Advice on review/delete/merge
 
  +
Proposed new tips; agreed to delete at [[Vim Tips Wiki:New tips/201011|201011]]:
Remove <tt><nowiki>{{review}}</nowiki></tt> if you are confident that the advice in a tip is good and that it should work. Preferably, you would test that the tip does work, but if you are very confident, that is probably enough. A reviewed tip does not need to be perfect (it may have a couple of "todo" or other comments). By removing review you are saying that the tip is not misguided, and is in a fit state to be read (it does not have bad advice, and does not have a lot of comments, particularly conflicting comments).
 
  +
*[[C++ code completiongoogle]]
  +
*[[How to create a dictionary for every .NET component - a project plan]]
  +
*[[Quick switching two alternate commented out blocks in C++]]
   
  +
No useful content, and no suitable target for a redirect:
I also remove review if flagging a tip as merged (it's a bit confusing having "this tip has been merged" ''and'' "this tip needs review").
 
  +
*[[Use taglist and tags with VIM 7.0]]
   
  +
Script pages created with wrong title:
Merge guidelines: We prefer to merge high-numbered tips to the tip with the lowest tip number on the basis that the first tip created has a prior claim, and in an ideal world, the later tips would have been merged into the first tip instead of being created as separate tips. There are exceptions, particularly if the first tip is misguided.
 
  +
*[[Transcription Name Helper Script]]
  +
*[[Script:2332 - Pathogen plugin]]
   
  +
Talk pages that are not needed (issues either have been noted on tip page, or are too vague to be useful):
The important point is to not remove useful information. For example, in the case above, one tip creates a temp file then uses <tt>:pedit</tt> to view that file. The other tip attempts to make a scratch buffer (I think not quite correctly), then reads the standard output from running an external program. We would need to consider whether the second method is worth mentioning as an alternative in the final merged tip. I'm not going to think about that right now – I'm just pointing out the general issue. There is no need to take this advice too far: the perfect is the enemy of the good, and if some incidental info is omitted, that is too bad.
 
  +
:''I have not bothered tagging these with "delete".''
  +
*[[Talk:Building Vim]]
  +
*[[Talk:Change font size quickly]]
  +
*[[Talk:Change to the directory of the current file]]
  +
*[[Talk:Display output of shell commands in new window]]
  +
*[[Talk:Editing remote files via scp in vim]]
  +
*[[Talk:Improved hex editing]]
  +
*[[Talk:In line copy and paste to system clipboard]]
  +
*[[Talk:Internet search for the current word]]
  +
*[[Talk:Launch files in new tabs under Windows]]
  +
*[[Talk:Move cursor by display lines when wrapping]]
  +
*[[Talk:Open vimrc file]]
  +
*[[Talk:Perl compatible regular expressions]]
  +
*[[Talk:Swapping characters, words and lines]]
  +
*[[Talk:Using vim color schemes with Putty]]
   
  +
Images flagged for deletion, with uploader (see [[:Category:Candidates for deletion|cat page]] for images):
We only ''delete'' a tip if it really is unhelpful and we don't have another similar tip. Suppose tip 101 and tip 102 cover roughly the same topic, using different methods. We might decide that 102 is completely superfluous (maybe Vim 7 does not require its hacks, or perhaps 101 has been improved so it's much better than 102). Even if we just want to delete 102, we would still declare that 102 has been merged into 101. When I process it, the title for 102 would become a redirect to the title of 101, and VimTip102 would be replaced with a message saying to see VimTip101. Also, it's much more friendly to the author of a tip to find that their work has been merged rather than deleted.
 
  +
*[[:File:061211172601.jpg]] – [[Special:Contributions/Anthonybaldwin|Anthonybaldwin]]
  +
*[[:File:Annoying_ad.png]] – [[Special:Contributions/Fritzophrenic|Fritzophrenic]]
  +
*[[:File:Muhammad_Umair.JPG]] – [[Special:Contributions/MUS|MUS]]
  +
*[[:File:Screenshot.png]] – [[Special:Contributions/Xioko|Xioko]]
  +
*[[:File:Shell_script_code.png]] – [[Special:Contributions/Lotusone|Lotusone]]
  +
*[[:File:Shot.jpg]] – [[Special:Contributions/Xerces123|Xerces123]]
  +
*[[:File:Smallercmn.jpg]] – [[Special:Contributions/Octopusgrabbus|Octopusgrabbus]]
  +
*[[:File:Vim-cleanser.jpg]] – [[Special:Contributions/Nicolasherry|Nicolasherry]]
  +
*[[:File:Vim-editor_logo.png]] – [[Special:Contributions/Kdimou|Kdimou]]
   
  +
Following is questionable; might flag it for deletion at a later time:
With the above example, after confirming that all useful info from 102 is in 101, you would put <tt><nowiki>{{merged|101}}</nowiki></tt> at the top of 102 (replacing <tt><nowiki>{{review}}</nowiki></tt> if present).
 
  +
*[[:File:截图01.jpg]] – [[Special:Contributions/Bruce.oy|Bruce.oy]]
   
  +
Above is a summary of pages flagged for deletion, except for talk pages (I intend deleting the flagged talk pages after moving any useful content to the tip). I have flagged the above images (except the last) for deletion as I don't think they are needed, and I plan to get a backup of images that are needed, and repeatedly wondering what these are is unnecessary for those of us maintaining the wiki. Please add any comments below. [[User:JohnBeckett|JohnBeckett]] 09:38, August 21, 2011 (UTC)
If I merge information from 102 into 101, I would put an edit summary on the addition to 101 like "merge in from 102 by X", replacing X with the author of 102. That is to give credit. Lately, I have been doing history merges as well, which means that the edit history of 102 becomes merged into the edit history of 101. I'm not sure how often I'll do that, but it is the proper procedure.
 
   
  +
:It's fine with me to delete smallercmn.jpg. I never knew it was a problem. I cannot figure out how to delete the page, or I would do it myself. --cmnorton Municipal Programmer / Systems Integrator 20:01, August 21, 2011 (UTC)
One day I'll put this advice somewhere more permanent. [[User:JohnBeckett|JohnBeckett]] 00:18, 30 July 2009 (UTC)
 
  +
::I'm only trying to clean out stuff that has no apparent purpose, and images that help tips or that display relevant info on a user page to help build our community are of course welcome. Please use the image if you want, or do nothing and I will remove it along with the others in a few days. [[User:JohnBeckett|JohnBeckett]] 02:07, August 22, 2011 (UTC)
:Got it. Updating. ([[User:Spiiph|Spiiph]] 08:51, 30 July 2009 (UTC))
 
::There, I think I managed to get that right. ([[User:Spiiph|Spiiph]] 11:34, 30 July 2009 (UTC))
 
----
 
Hmm, are there instructions or at least information about merging the history as you mention? I do occasionally (very occasionally, I admit) get around to doing some big merges, and it would probably be good if that trick was up my sleeve as well. I assume I have all the privileges needed?
 
   
  +
I have just updated the list (use history to see changes if wanted). [[User:JohnBeckett|JohnBeckett]] 04:13, August 25, 2011 (UTC)
--[[User:Fritzophrenic|Fritzophrenic]] 00:55, 30 July 2009 (UTC)
 
  +
:I just made two subpages (see my user page for links) with the guidelines I mentioned above, and with history merge info. [[User:JohnBeckett|JohnBeckett]] 04:26, 30 July 2009 (UTC)
 
  +
== [[:File:Screengrab.png]] ==
  +
  +
Delete, because it's not used and doesn't seem to serve any purpose. --[[User:Fritzophrenic|Fritzophrenic]] ([[User talk:Fritzophrenic|talk]]) 19:47, September 27, 2012 (UTC)

Latest revision as of 19:47, 27 September 2012

Please use this page to discuss pages that have been labeled for deletion.

Archives: 12345678910

Removed tips are listed here.

In discussion[]

Do we have a suitable tip for using filename-modifiers? This tip needs work, but is much more geared toward using filename-modifiers than it is toward compiling Tex files, as the deletion comment suggests as the reason for deletion. --Fritzophrenic 17:47, November 28, 2011 (UTC)
Some of these mappings are basically included it Automatically append closing characters, others are similar to various snippet/template plugins or tips in Category:Automated Text Insertion, but I don't recall seeing the CleverSpace() stuff anywhere. And we do tend to show people how to do it, rather than just direct them to plugins (although certainly we should mention plugins where they're potentially better/more versatile than the mappings in a tip). --Fritzophrenic 17:47, November 28, 2011 (UTC)

Redirect and proposal for a tip that was not completed:

  • Using Vim with Loreto
  • User:Goj/Using Vim with Loreto
  • File:Vim-loreto-1.pngGoj
  • File:Vim-loreto-2.pngGoj
  • File:Vim-loreto-3.pngGoj
  • File:Vim-loreto-4.pngGoj
I don't think we should delete these. Without a very good reason (spam, inappropriate content, etc.) I see no point in removing user subpages, and would consider it rude if somebody removed mine without my agreement.
I could accept deleting the redirect, but would prefer that stays too. Wikia isn't hurting for space or anything. The fact that you're redirected to a user subpage if you do happen to stumble on the redirect should be a clue that something is different about this page, plus the fact that there will be no tip template with an ID.
--Fritzophrenic 16:47, August 25, 2011 (UTC)

To be deleted[]

Proposed new tips; agreed to delete at 201011:

  • C++ code completiongoogle
  • How to create a dictionary for every .NET component - a project plan
  • Quick switching two alternate commented out blocks in C++

No useful content, and no suitable target for a redirect:

  • Use taglist and tags with VIM 7.0

Script pages created with wrong title:

Talk pages that are not needed (issues either have been noted on tip page, or are too vague to be useful):

I have not bothered tagging these with "delete".

Images flagged for deletion, with uploader (see cat page for images):

Following is questionable; might flag it for deletion at a later time:

Above is a summary of pages flagged for deletion, except for talk pages (I intend deleting the flagged talk pages after moving any useful content to the tip). I have flagged the above images (except the last) for deletion as I don't think they are needed, and I plan to get a backup of images that are needed, and repeatedly wondering what these are is unnecessary for those of us maintaining the wiki. Please add any comments below. JohnBeckett 09:38, August 21, 2011 (UTC)

It's fine with me to delete smallercmn.jpg. I never knew it was a problem. I cannot figure out how to delete the page, or I would do it myself. --cmnorton Municipal Programmer / Systems Integrator 20:01, August 21, 2011 (UTC)
I'm only trying to clean out stuff that has no apparent purpose, and images that help tips or that display relevant info on a user page to help build our community are of course welcome. Please use the image if you want, or do nothing and I will remove it along with the others in a few days. JohnBeckett 02:07, August 22, 2011 (UTC)

I have just updated the list (use history to see changes if wanted). JohnBeckett 04:13, August 25, 2011 (UTC)

File:Screengrab.png[]

Delete, because it's not used and doesn't seem to serve any purpose. --Fritzophrenic (talk) 19:47, September 27, 2012 (UTC)