Vim Tips Wiki
No edit summary
m (Reverted edits by 117.25.247.89 (talk | block) to last version by Chrisbra)
Line 1: Line 1:
 
'''This is the starting point for all editors of the Vim Tips wiki.'''
 
'''This is the starting point for all editors of the Vim Tips wiki.'''
   
*Please see our [http://www.sellcapshats.com/mlb-hats-c-1.html MBL Hats] for ''how-to'' information.
+
*Please see our [[Project:Policy|'''policy introduction''']] for ''how-to'' information.
*To follow changes to this wiki, and to look for new events and problem edits, use [http://www.buynewera59fiftyhats.com/snapback-hats-c-1.html Snapback Hats].
+
*To follow changes to this wiki, and to look for new events and problem edits, use [[Special:Recentchanges|'''recent changes''']].
 
*To discuss a tip, please edit the tip page and add to the Comments at the bottom (see the [[Vim_Tips_Wiki:Discussion_guidelines|'''discussion guidelines''']] for why we avoid the discussion pages for tips).
 
*To discuss a tip, please edit the tip page and add to the Comments at the bottom (see the [[Vim_Tips_Wiki:Discussion_guidelines|'''discussion guidelines''']] for why we avoid the discussion pages for tips).
*On other pages (for example, this page), you are welcome to edit the [http://www.buynewera59fiftyhats.com/red-bull-hats-c-55.html Red Bull Hats] to talk about the content.
+
*On other pages (for example, this page), you are welcome to edit the [[Help:Talk page|'''discussion page''']] to talk about the content.
*If you want help editing, you could start with [[Wikia:Help:Tutorial|'''the tutorial''']] on the Central Wikia, or see our [http://www.cheapcapswholesaler.com/cheap-music-hats-c-60.html Cheap Music Hats].
+
*If you want help editing, you could start with [[Wikia:Help:Tutorial|'''the tutorial''']] on the Central Wikia, or see our [[Help:Editing|'''editing help''']].
 
*There are more help pages in the [[:category:Help|'''help category''']].
 
*There are more help pages in the [[:category:Help|'''help category''']].
 
*And even more on [http://meta.wikimedia.org/wiki/Help:Editing '''wikimedia.org''']
 
*And even more on [http://meta.wikimedia.org/wiki/Help:Editing '''wikimedia.org''']
   
More about the Vim community can be found at [http://www.sellcapshats.com/mlb-hats-c-1.html MBL Hats].
+
More about the Vim community can be found at [http://www.vim.org/community.php vim.org].
   
 
__TOC__
 
__TOC__
Line 15: Line 15:
 
On this wiki, we discuss how to improve tips, but we don't discuss how to use Vim.
 
On this wiki, we discuss how to improve tips, but we don't discuss how to use Vim.
   
'''Questions about Vim''' should be sent to the '''Vim mailing list''': subscribe to the appropriate list [http://www.sellcapshats.com/dc-hats-c-135.html DC Hats]. After subscribing, your first message to the list needs to be approved by a manager, so you may need to wait several hours before the message is sent. A description of each list follows, together with the name and URL of the mailing list archive at Google Groups:
+
'''Questions about Vim''' should be sent to the '''Vim mailing list''': subscribe to the appropriate list [http://www.vim.org/maillist.php here]. After subscribing, your first message to the list needs to be approved by a manager, so you may need to wait several hours before the message is sent. A description of each list follows, together with the name and URL of the mailing list archive at Google Groups:
*vim@vim.org – [http://www.capshatswholesaler.com/red-bull-c-30.html Red Bull Hats 2012]: General questions, how to use Vim, problems with scripts.
+
*vim@vim.org – [http://groups.google.com/group/vim_use vim_use]: General questions, how to use Vim, problems with scripts.
*vim-dev@vim.org – [http://www.sellcapshats.com/monster-energy-hats-c-101.html Monster Energy Hats]: Bug reports, how to build Vim, new features and development issues.
+
*vim-dev@vim.org – [http://groups.google.com/group/vim_dev vim_dev]: Bug reports, how to build Vim, new features and development issues.
*vim-mac@vim.org – [http://www.capshatswholesaler.com New Era Hats ]: Use and development of Vim on the Mac OS.
+
*vim-mac@vim.org – [http://groups.google.com/group/vim_mac vim_mac]: Use and development of Vim on the Mac OS.
   
The newsgroup comp.editors also discusses Vim – see its [http://www.cheapcapswholesaler.com/cheap-red-bull-hats-c-83.html Cheap Red Bull Hats]. IRC users should join the [[http://www.buynewera59fiftyhats.com/snapback-hats-c-1.html Snapback Hats]] on the Freenode network, server irc.freenode.net.
+
The newsgroup comp.editors also discusses Vim – see its [http://groups.google.com/group/comp.editors/topics Google Groups archive]. IRC users should join the [[Vim on Freenode|#vim channel]] on the Freenode network, server irc.freenode.net.
   
'''Questions about the Vim Tips wiki''' can be discussed on the [http://www.cheapcapswholesaler.com/cheap-nike-hats-c-70.html Cheap Nike Hats]. You are also welcome to edit the Talk (Discussion) page of any active user. You could view the [http://www.wholesalecapsuk.com/ Wholesale Caps], and click any blue ''Talk'' link (blue links refer to pages which exist), or edit the talk page of any [[http://www.cheapcapswholesaler.com/cheap-fox-hats-c-28.html Cheap Fox Hats]].
+
'''Questions about the Vim Tips wiki''' can be discussed on the [http://lists.wikia.com/mailman/listinfo/vim-l '''vim-l mailing list''']. You are also welcome to edit the Talk (Discussion) page of any active user. You could view the [[Special:Recentchanges|'''recent changes''']], and click any blue ''Talk'' link (blue links refer to pages which exist), or edit the talk page of any [[Special:Listusers|'''active user''']].
   
'''We don't encourage questions about using Vim on the wiki''' because they distract from our work of improving the tip collection. In addition, while there are currently only a handful of active maintainers on the [http://www.capsforcheap.com/ Cheap Caps for Sale], the mailing list, newsgroup and IRC channel listed above have thousands of active members who can all offer good support for Vim.
+
'''We don't encourage questions about using Vim on the wiki''' because they distract from our work of improving the tip collection. In addition, while there are currently only a handful of active maintainers on the wiki, the mailing list, newsgroup and IRC channel listed above have thousands of active members who can all offer good support for Vim.
   
With all this in mind, you are welcome to add a comment to the bottom of a tip pointing out any deficiencies that you have found in the content of the tip ([[http://www.wholesalecapsuk.com/dc-hats-c-5.html DC Hats]]).
+
With all this in mind, you are welcome to add a comment to the bottom of a tip pointing out any deficiencies that you have found in the content of the tip ([[Vim_Tips_Wiki:Discussion_guidelines|please don't use the talk pages]]).
   
 
===Creating a screenshot===
 
===Creating a screenshot===
 
It's usually best to use text to explain your problem (Vim users generally like text!). However, you may occasionally need to make a screenshot to illustrate a bug, make a feature request, or demonstrate some point.
 
It's usually best to use text to explain your problem (Vim users generally like text!). However, you may occasionally need to make a screenshot to illustrate a bug, make a feature request, or demonstrate some point.
   
Use the following instructions for your [http://www.capsforcheap.com/dc-hats-c-1.html DC Hats].
+
Use the following instructions for your platform.
*[http://www.newerahatsonsell.com/monster-energy-hats-c-1.html Monster Energy Hats]
+
*[http://www.wikihow.com/Take-a-Screenshot-in-Microsoft-Windows Windows]
*[http://www.buynewera59fiftyhats.com/red-bull-hats-c-55.html Red Bull Hats]
+
*[http://www.wikihow.com/Take-Screen-Shot-or-Print-Screen-on-a-Mac-Using-Grab Mac OS X]
*[http://www.newerahatsonsell.com/new-york-yankees-hats-c-2.html New York Yankees Hats]
+
*[http://tips.webdesign10.com/how-to-take-a-screenshot-on-ubuntu-linux Linux (Ubuntu)]
 
Be sure to save the screenshot as a PNG. PNG is a widely supported format with a nice compression ratio, and unlike JPG is "lossless"; thus, others will be able to see any fine detail (like text) in your image without problems caused by the compression.
 
Be sure to save the screenshot as a PNG. PNG is a widely supported format with a nice compression ratio, and unlike JPG is "lossless"; thus, others will be able to see any fine detail (like text) in your image without problems caused by the compression.
   
Upload the image somewhere, such as [http://www.sellcapshats.com/mlb-hats-c-1.html MBL Hats], and provide the URL in your post to the mailing list.
+
Upload the image somewhere, such as [http://www.flickr.com Flickr] or [http://imagebin.ca/ Imagebin], and provide the URL in your post to the mailing list.
   
 
==Following (watching) changes==
 
==Following (watching) changes==
Line 44: Line 44:
 
Logged-on users can choose to ''follow'' pages of interest: at the top of any article, click "Follow" ("Follow" changes to "Following" after the page is added to your followlist; click "Following" to ''unfollow''). If you follow a page, you are automatically also following its talk (discussion) page.
 
Logged-on users can choose to ''follow'' pages of interest: at the top of any article, click "Follow" ("Follow" changes to "Following" after the page is added to your followlist; click "Following" to ''unfollow''). If you follow a page, you are automatically also following its talk (discussion) page.
   
Following pages is a Wikia ''feature'' that '''makes your watchlist public'''. In standard MediaWiki (as used at Wikipedia) your watchlist is private (no one apart from developers can see what pages are on your watchlist at Wikipedia). However, the default at Wikia is that your followlist (the same list as your watchlist) can be viewed by anyone at your user page (a "Pages I'm Following" box shows some of the list, and the "Followed pages" tab lists them all). The followlist is also available at [http://www.newerahatsonsell.com/monster-energy-hats-c-1.html Monster Energy Hats].
+
Following pages is a Wikia ''feature'' that '''makes your watchlist public'''. In standard MediaWiki (as used at Wikipedia) your watchlist is private (no one apart from developers can see what pages are on your watchlist at Wikipedia). However, the default at Wikia is that your followlist (the same list as your watchlist) can be viewed by anyone at your user page (a "Pages I'm Following" box shows some of the list, and the "Followed pages" tab lists them all). The followlist is also available at <tt><nowiki>http://vim.wikia.com/wiki/Special:Following/USERNAME</nowiki></tt>
   
 
Your followlist can be made private in your Preferences: the "Followed pages" tab (in [[Special:Preferences|Preferences]]) includes "Make my followed pages lists private" (this setting applies to all Wikia wikis).
 
Your followlist can be made private in your Preferences: the "Followed pages" tab (in [[Special:Preferences|Preferences]]) includes "Make my followed pages lists private" (this setting applies to all Wikia wikis).
   
Viewing a followlist shows a list of clickable page titles. Viewing a watchlist shows the same list, but also shows recent changes (up to 30 days old) for each watched page. In addition, the watchlist page allows editing which pages are included (titles can easily be removed or added). Your watchlist is available at [http://www.cheapcapswholesaler.com/cheap-fox-hats-c-28.html Cheap Fox Hats] (which can be found by clicking "Special pages" in the sidebar).
+
Viewing a followlist shows a list of clickable page titles. Viewing a watchlist shows the same list, but also shows recent changes (up to 30 days old) for each watched page. In addition, the watchlist page allows editing which pages are included (titles can easily be removed or added). Your watchlist is available at [[Special:Watchlist|My watchlist]] (which can be found by clicking "Special pages" in the sidebar).
   
 
When creating or editing a page, there is a "Watch this page" option at the bottom, next to the "Preview" button.
 
When creating or editing a page, there is a "Watch this page" option at the bottom, next to the "Preview" button.
Line 54: Line 54:
 
Wikia will send you an email for each change that occurs to a followed page (if "User profile" in your Preferences includes an email address, and if you have not changed the default "E-mail me when a page I'm following is changed" at the same location). The "Followed pages" tab in your Preferences has further settings. (At Wikipedia, the option to send an email for watched pages is disabled due to the enormous quantity of changes that occur.)
 
Wikia will send you an email for each change that occurs to a followed page (if "User profile" in your Preferences includes an email address, and if you have not changed the default "E-mail me when a page I'm following is changed" at the same location). The "Followed pages" tab in your Preferences has further settings. (At Wikipedia, the option to send an email for watched pages is disabled due to the enormous quantity of changes that occur.)
   
For more information, see [http://www.cheapcapswholesaler.com/cheap-music-hats-c-60.html Cheap Music Hats] and [http://www.cheapcapswholesaler.com/cheap-nike-hats-c-70.html Cheap Nike Hats].
+
For more information, see [[Help:Followed pages]] and [[Help:Watchlist]].
   
 
==Downloading tips==
 
==Downloading tips==
Line 72: Line 72:
 
*<tt>pages_full.xml.gz</tt> – All revisions of each page.
 
*<tt>pages_full.xml.gz</tt> – All revisions of each page.
   
Links to download each file are at the bottom of [[Special:Statistics]]. In November 2009, the current dump is under 2MB (expands to 7MB), and the full dump is 6MB (expands to 67MB). If [http://www.capshatswholesaler.com/red-bull-c-30.html Red Bull Hats 2012] is installed (on Linux), either dump can be imported so you have a local web server that displays the html for all Vim tips, with working links.
+
Links to download each file are at the bottom of [[Special:Statistics]]. In November 2009, the current dump is under 2MB (expands to 7MB), and the full dump is 6MB (expands to 67MB). If [http://www.mediawiki.org/wiki/MediaWiki MediaWiki] is installed (on Linux), either dump can be imported so you have a local web server that displays the html for all Vim tips, with working links.
   
It is possible to download an xml file containing the wikitext of specified pages. At [[Special:SpecialPages|Special pages]], choose [[Special:Export|Export pages]]. For example, you could enter "Searching" in the ''Add pages from category'' box, then click the Add button, then click the Export button. The result will be an xml file (not compressed) with each page in [http://www.wholesalecapsuk.com/snapback-hats-c-1.html Snapback Hats].
+
It is possible to download an xml file containing the wikitext of specified pages. At [[Special:SpecialPages|Special pages]], choose [[Special:Export|Export pages]]. For example, you could enter "Searching" in the ''Add pages from category'' box, then click the Add button, then click the Export button. The result will be an xml file (not compressed) with each page in [[:Category:Searching]].
   
 
==Mirror sites==
 
==Mirror sites==
 
*http://broom9.com/Vim_Tips_Wiki (China)
 
*http://broom9.com/Vim_Tips_Wiki (China)
   
  +
[[Category:Policy]]
[http://www.newerahatsonsell.com/new-york-yankees-hats-c-2.html New York Yankees Hats]
 
[http://www.newerahatsonsell.com/monster-energy-hats-c-1.html Monster Energy Hats]
 
[http://www.capsforcheap.com/ Cheap Caps for Sale]
 
[http://www.capsforcheap.com/dc-hats-c-1.html DC Hats]
 
[http://www.capsforcheap.com/red-bull-hats-c-40.html Red Bull Hats]
 
[http://www.capsforcheap.com/mlb-hats-c-6.html MLB Hats]
 
[http://www.wholesalecapsuk.com/ Wholesale Caps]
 
[http://www.wholesalecapsuk.com/snapback-hats-c-1.html Snapback Hats]
 
[http://www.wholesalecapsuk.com/dc-hats-c-5.html DC Hats]
 
[http://www.wholesalecapsuk.com/leather-hats-c-15.html Leather Hats]
 
[http://www.cheapcapswholesaler.com/cheap-nike-hats-c-70.html Cheap Nike Hats]
 
[http://www.cheapcapswholesaler.com/cheap-music-hats-c-60.html Cheap Music Hats]
 
[http://www.cheapcapswholesaler.com/cheap-fox-hats-c-28.html Cheap Fox Hats]
 
[http://www.cheapcapswholesaler.com/cheap-red-bull-hats-c-83.html Cheap Red Bull Hats]
 
[http://www.buynewera59fiftyhats.com/snapback-hats-c-1.html Snapback Hats]
 
[http://www.buynewera59fiftyhats.com/dc-hats-c-5.html DC Hats]
 
[http://www.buynewera59fiftyhats.com/leather-hats-c-15.html Leather Hats]
 
[http://www.buynewera59fiftyhats.com/red-bull-hats-c-55.html Red Bull Hats]
 
[http://www.sellcapshats.com/dc-hats-c-135.html DC Hats]
 
[http://www.sellcapshats.com/red-bull-hats-c-98.html Red Bull Hats]
 
[http://www.sellcapshats.com/mlb-hats-c-1.html MBL Hats]
 
[http://www.sellcapshats.com/monster-energy-hats-c-101.html Monster Energy Hats]
 
[http://www.capshatswholesaler.com Wholesaler Caps Hats]
 
[http://www.capshatswholesaler.com/red-bull-c-30.html Red Bull Hats 2012]
 
[http://www.capshatswholesaler.com/monster-energy-c-7.html Monster Energy Drinks Hats]
 
[http://www.capshatswholesaler.com New Era Hats ]
 

Revision as of 07:23, 5 May 2012

This is the starting point for all editors of the Vim Tips wiki.

  • Please see our policy introduction for how-to information.
  • To follow changes to this wiki, and to look for new events and problem edits, use recent changes.
  • To discuss a tip, please edit the tip page and add to the Comments at the bottom (see the discussion guidelines for why we avoid the discussion pages for tips).
  • On other pages (for example, this page), you are welcome to edit the discussion page to talk about the content.
  • If you want help editing, you could start with the tutorial on the Central Wikia, or see our editing help.
  • There are more help pages in the help category.
  • And even more on wikimedia.org

More about the Vim community can be found at vim.org.

Asking questions

On this wiki, we discuss how to improve tips, but we don't discuss how to use Vim.

Questions about Vim should be sent to the Vim mailing list: subscribe to the appropriate list here. After subscribing, your first message to the list needs to be approved by a manager, so you may need to wait several hours before the message is sent. A description of each list follows, together with the name and URL of the mailing list archive at Google Groups:

  • vim@vim.org – vim_use: General questions, how to use Vim, problems with scripts.
  • vim-dev@vim.org – vim_dev: Bug reports, how to build Vim, new features and development issues.
  • vim-mac@vim.org – vim_mac: Use and development of Vim on the Mac OS.

The newsgroup comp.editors also discusses Vim – see its Google Groups archive. IRC users should join the #vim channel on the Freenode network, server irc.freenode.net.

Questions about the Vim Tips wiki can be discussed on the vim-l mailing list. You are also welcome to edit the Talk (Discussion) page of any active user. You could view the recent changes, and click any blue Talk link (blue links refer to pages which exist), or edit the talk page of any active user.

We don't encourage questions about using Vim on the wiki because they distract from our work of improving the tip collection. In addition, while there are currently only a handful of active maintainers on the wiki, the mailing list, newsgroup and IRC channel listed above have thousands of active members who can all offer good support for Vim.

With all this in mind, you are welcome to add a comment to the bottom of a tip pointing out any deficiencies that you have found in the content of the tip (please don't use the talk pages).

Creating a screenshot

It's usually best to use text to explain your problem (Vim users generally like text!). However, you may occasionally need to make a screenshot to illustrate a bug, make a feature request, or demonstrate some point.

Use the following instructions for your platform.

Be sure to save the screenshot as a PNG. PNG is a widely supported format with a nice compression ratio, and unlike JPG is "lossless"; thus, others will be able to see any fine detail (like text) in your image without problems caused by the compression.

Upload the image somewhere, such as Flickr or Imagebin, and provide the URL in your post to the mailing list.

Following (watching) changes

In the sidebar, click Recent changes to see a list of all recent changes that have occurred on this wiki. Logged-on users can customise the default settings: click "MORE" at the top of any page (on the right of your user name), then select "Preferences". In your preferences, select the "Recent changes" tab. You can also find Preferences by clicking "Special pages" in the sidebar.

Logged-on users can choose to follow pages of interest: at the top of any article, click "Follow" ("Follow" changes to "Following" after the page is added to your followlist; click "Following" to unfollow). If you follow a page, you are automatically also following its talk (discussion) page.

Following pages is a Wikia feature that makes your watchlist public. In standard MediaWiki (as used at Wikipedia) your watchlist is private (no one apart from developers can see what pages are on your watchlist at Wikipedia). However, the default at Wikia is that your followlist (the same list as your watchlist) can be viewed by anyone at your user page (a "Pages I'm Following" box shows some of the list, and the "Followed pages" tab lists them all). The followlist is also available at http://vim.wikia.com/wiki/Special:Following/USERNAME

Your followlist can be made private in your Preferences: the "Followed pages" tab (in Preferences) includes "Make my followed pages lists private" (this setting applies to all Wikia wikis).

Viewing a followlist shows a list of clickable page titles. Viewing a watchlist shows the same list, but also shows recent changes (up to 30 days old) for each watched page. In addition, the watchlist page allows editing which pages are included (titles can easily be removed or added). Your watchlist is available at My watchlist (which can be found by clicking "Special pages" in the sidebar).

When creating or editing a page, there is a "Watch this page" option at the bottom, next to the "Preview" button.

Wikia will send you an email for each change that occurs to a followed page (if "User profile" in your Preferences includes an email address, and if you have not changed the default "E-mail me when a page I'm following is changed" at the same location). The "Followed pages" tab in your Preferences has further settings. (At Wikipedia, the option to send an email for watched pages is disabled due to the enormous quantity of changes that occur.)

For more information, see Help:Followed pages and Help:Watchlist.

Downloading tips

There is no good way to download all tips because:

  • Any download will become out of date when tips are improved on the wiki.
  • Tips are stored as "wikitext" which can be downloaded but is not intended for reading.
  • There is no simple procedure to obtain files with a clean html version of each tip.
  • Links in downloaded files will not work.

A tool like wget can be used to download the wikitext for individual tips. For example, the following creates file 1.wik containing the wikitext for Searching:

wget -O 1.wik "http://vim.wikia.com/index.php?action=raw&title=Searching"

Wikia periodically creates database dumps with a snapshot of the entire Vim Tips wiki in xml format. Each dump contains all tips, templates, user pages, talk pages, and more. Image files and deleted pages are not included. Two dumps (gz compressed files) are available:

  • pages_current.xml.gz – The most-recent revision of each page.
  • pages_full.xml.gz – All revisions of each page.

Links to download each file are at the bottom of Special:Statistics. In November 2009, the current dump is under 2MB (expands to 7MB), and the full dump is 6MB (expands to 67MB). If MediaWiki is installed (on Linux), either dump can be imported so you have a local web server that displays the html for all Vim tips, with working links.

It is possible to download an xml file containing the wikitext of specified pages. At Special pages, choose Export pages. For example, you could enter "Searching" in the Add pages from category box, then click the Add button, then click the Export button. The result will be an xml file (not compressed) with each page in Category:Searching.

Mirror sites