Difference between pages "New mainpage" and "Package:Vim/Cheatsheet"

(Difference between pages)
(Created page with "<div style="float:right; width: 35%"> {{#Widget:MonthlyDonate}} <div class="boxy"> == Featured Video == In this video, Jonathan Vasquez (fearedbliss) wal...")
 
m (Actions)
 
Line 1: Line 1:
<div style="float:right; width: 35%">
+
* The description given in the "description" column is rather short, often it is best to try it your self and see what it actually does.
{{#Widget:MonthlyDonate}}
+
* Even if not specified in the "command" column, most commands fired in normal mode accept a "<num> prefix" (Eg. `5w` is equivalent to `wwwww`).
<div class="boxy">
+
* Most commands will work in visual mode as well as in normal mode.
== Featured Video ==
+
  
In this video, Jonathan Vasquez ([[User:Fearedbliss|fearedbliss]]) walks you through the process of installing Funtoo Linux with ZFS. See the [[ZFS Install Guide]] for detailed instructions.
+
== Deplacements ==
{{#widget:YouTube|id=kxEdSXwU0ZI|width=320|height=180}}
+
</div>
+
<div class="boxy">
+
== Get on the UserMap! ==
+
{{#compound_query:[[Category:People]] [[Role type::Staff]];?Geoloc;icon=Purplemarker.png;limit=9999
+
    |[[Category:People]][[Role type::Contributor]];?Geoloc;icon=Orangemarker.png;limit=9999
+
    |[[Category:People]][[Role type::User]];?Geoloc;icon=Greenmarker.png;limit=9999
+
    |format=googlemaps3|height=275|zoom=1|type=hybrid|markercluster=yes}}
+
See our full-size [[Usermap]] and find out how to become part of the Funtoo Universe!
+
</div>
+
</div>
+
  
== What is Funtoo Linux? ==
 
  
[[Funtoo Linux]] is a Linux-based operating system created by [[user:Drobbins|Daniel Robbins]], the creator and former Chief Architect of Gentoo Linux. Funtoo Linux is a Free software, or "Open Source" operating system. All distribution source code is freely available, and it can be used and distributed free of charge.
+
{{TableStart|striped=true}}
 +
<tr>
 +
  <th>command</th>
 +
  <th>meaning</th>
 +
  <th>description</th>
 +
</tr>
 +
<tr>
 +
  <td>w</td>
 +
  <td>word</td>
 +
  <td>move to next word</td>
 +
</tr>
 +
<tr>
 +
  <td>W</td>
 +
  <td>Word</td>
 +
  <td>move to the next word (broad sens)</td>
 +
</tr>
 +
<tr>
 +
  <td>b</td>
 +
  <td>begin</td>
 +
  <td>move to the previous word beginning</td>
 +
</tr>
 +
<tr>
 +
  <td>B</td>
 +
  <td>Begin</td>
 +
  <td>move to the previous word beginning (broad sense)</td>
 +
</tr>
 +
<tr>
 +
  <td>e</td>
 +
  <td>end</td>
 +
  <td>move to the next word end</td>
 +
</tr>
 +
<tr>
 +
  <td>E</td>
 +
  <td>End</td>
 +
  <td>move to the next word end (broad sense)</td>
 +
</tr>
 +
<tr>
 +
  <td><nowiki>{</nowiki></td>
 +
  <td></td>
 +
  <td>move to the previous blank line</td>
 +
</tr>
 +
<tr>
 +
  <td><nowiki>}</nowiki></td>
 +
  <td></td>
 +
  <td>move to the next blank line</td>
 +
</tr>
 +
<tr>
 +
  <td>f<char></td>
 +
  <td>fetch</td>
 +
  <td>move to the next occurrence of the character <char></td>
 +
</tr>
 +
<tr>
 +
  <td>F<char></td>
 +
  <td>Fetch</td>
 +
  <td>move to the previous occurrence of the character <char></td>
 +
</tr>
 +
<tr>
 +
  <td>$</td>
 +
  <td></td>
 +
  <td>move to the end of the line</td>
 +
</tr>
 +
<tr>
 +
  <td>^</td>
 +
  <td></td>
 +
  <td>move to the first non-whitespace character of the line</td>
 +
</tr>
 +
<tr>
 +
  <td>zz</td>
 +
  <td></td>
 +
  <td>center the viewport on the currently</td>
 +
</tr>
 +
<tr>
 +
  <td><num>gg</td>
 +
  <td>goto</td>
 +
  <td>move to line number <num> (default is 1 if <num> is omitted)</td>
 +
</tr>
 +
<tr>
 +
  <td>G</td>
 +
  <td></td>
 +
  <td>move to the last line</td>
 +
</tr>
 +
<tr>
 +
  <td>C-o</td>
 +
  <td></td>
 +
  <td>Go to the previous cursor position</td>
 +
</tr>
 +
{{TableEnd}}
  
Who develops and improves Funtoo Linux? '''You do.''' We are a completely open meta-distribution that is run by our users and a small group of support staff. Our development centers around the needs of our users. Any user can contribute code and help improve Funtoo Linux functionality on our [http://bugs.funtoo.org bug tracker].
+
== Switch to insert mode ==
<div>
+
  
== What's New? ==
+
{{TableStart|striped=true}}
 +
<tr>
 +
  <th>command</th>
 +
  <th>meaning</th>
 +
  <th>description</th>
 +
</tr>
 +
<tr>
 +
  <td>i</td>
 +
  <td>insert</td>
 +
  <td>insert before the cursor</td>
 +
</tr>
 +
<tr>
 +
  <td>I</td>
 +
  <td>Insert</td>
 +
  <td>insert at the beginning of the line (= <code>^i</code>)</td>
 +
</tr>
 +
<tr>
 +
  <td>a</td>
 +
  <td>append</td>
 +
  <td>insert after the cursor/td>
 +
</tr>
 +
<tr>
 +
  <td>A</td>
 +
  <td>Append</td>
 +
  <td>insert at the end of the line (= <code>$a</code>)</td>
 +
</tr>
 +
<tr>
 +
  <td>o</td>
 +
  <td></td>
 +
  <td>insert on a new blank line after the current line</td>
 +
</tr>
 +
<tr>
 +
  <td>O</td>
 +
  <td></td>
 +
  <td>insert on a new blank line before the current line</td>
 +
</tr>
 +
<tr>
 +
  <td>s</td>
 +
  <td>substitute</td>
 +
  <td>remove the current character and instert instead (= <code>xi</code>)</td>
 +
</tr>
 +
<tr>
 +
  <td>S</td>
 +
  <td>Substitute</td>
 +
  <td>remove the current line and insert instead (= <code>ddi</code></td>
 +
</tr>
 +
<tr>
 +
  <td>R</td>
 +
  <td>Replace</td>
 +
  <td>insert and override on the fly</td>
 +
</tr>
 +
{{TableEnd}}
  
{{Note}} Feb 12, 2014: '''Clean GNOME 3.6 merges''' from funtoo-gnome-overlay hit Portage tree, '''GNOME 3.10''' on horizon -- [https://groups.google.com/d/msg/funtoo-dev/4JLeMOn-xMk/SifhK2GsiBgJ Learn more here]...
+
== Actions ==
  
== Resources ==
+
{{TableStart|striped=true}}
 
+
<tr>
* Learn more about [[Funtoo Linux]].
+
  <th>command</th>
* Why you should [[Choose Funtoo]]: ...and how it is different from other distros.
+
  <th>meaning</th>
* Visit [[:Category:Projects|Funtoo Linux Projects]] and also look at the stuff online for [[Metro]].
+
  <th>description</th>
* Learn [[:Category:Linux Core Concepts| Core Linux concepts]] from articles originally written by Daniel Robbins.
+
</tr>
* [[Funtoo Linux Installation|Install Funtoo Linux]]
+
<tr>
Funtoo Linux is focused on the needs of our users. Here's how to get involved:
+
  <td><num>dd</td>
 
+
  <td>delete</td>
* '''wiki''': Help us maintain content on this wiki. Add yourself to the Funtoo [[Usermap]].
+
  <td>delete <num> lines</td>
* '''bugs''': Our [http://bugs.funtoo.org bug tracker] is used to track all ongoing development work in Funtoo Linux. If you find a bug in Funtoo Linux, report it here. Also used for enhancement requests.
+
</tr>
* '''IRC''': Join us in the <tt>#funtoo</tt> IRC channel on <tt>irc.freenode.net</tt>.
+
<tr>
* '''mailing list''': The [https://groups.google.com/forum/#!forum/funtoo-dev funtoo-dev mailing list] is used for development discussion.
+
  <td><num>yy</td>
* '''forums''': [http://forums.funtoo.org Funtoo Forums] are available for forum-style Funtoo discussion.
+
  <td>yank</td>
* '''blogs''': [http://larrythecow.org LarryTheCow.org] is a blog aggregation service for Gentoo ecosystem developers and users.
+
  <td>copy <num> lines to vim's default buffer</td>
* '''rss/atom''': [[Funtoo RSS and Atom Feeds]] displays the latest posts on the Forums and Planet Larry.
+
</tr>
 
+
<tr>
__NOTOC__
+
  <td>x</td>
__NOTITLE__
+
  <td></td>
__NOEDITSECTION__
+
  <td>remove the character under the cursor</td>
 
+
</tr>
[[Category:Funtoo|*]]
+
<tr>
 +
  <td><num>p</td>
 +
  <td>paste</td>
 +
  <td>paste <num> times vim's default buffer after the cursor</td>
 +
</tr>
 +
<tr>
 +
  <td><num>P</td>
 +
  <td>Paste</td>
 +
  <td>paste <num> times vim's default buffer before the cursor</td>
 +
</tr>
 +
<tr>
 +
  <td><code>~</code> (tilde)</td>
 +
  <td></td>
 +
  <td>swap case under the cursor</td>
 +
</tr>
 +
<tr>
 +
  <td>.</td>
 +
  <td></td>
 +
  <td>repeat previous action (kind of "live macro", try it yourself and see)</td>
 +
</tr>
 +
<tr>
 +
  <td>/<pattern><CR></td>
 +
  <td></td>
 +
  <td>search next occurrence of <pattern></td>
 +
</tr>
 +
<tr>
 +
  <td>?<pattern><CR></td>
 +
  <td></td>
 +
  <td>search previous occurrence of <pattern></td>
 +
</tr>
 +
<tr>
 +
  <td>*</td>
 +
  <td></td>
 +
  <td>look for the next occurrence of the word under the cursor</td>
 +
</tr>
 +
<tr>
 +
  <td>n</td>
 +
  <td></td>
 +
  <td>forward search last searched pattern</td>
 +
</tr>
 +
<tr>
 +
  <td>N</td>
 +
  <td></td>
 +
  <td>backward search last searched pattern</td>
 +
</tr>
 +
{{TableEnd}}

Latest revision as of 21:22, April 7, 2015

  • The description given in the "description" column is rather short, often it is best to try it your self and see what it actually does.
  • Even if not specified in the "command" column, most commands fired in normal mode accept a "<num> prefix" (Eg. `5w` is equivalent to `wwwww`).
  • Most commands will work in visual mode as well as in normal mode.

Deplacements

command meaning description
w word move to next word
W Word move to the next word (broad sens)
b begin move to the previous word beginning
B Begin move to the previous word beginning (broad sense)
e end move to the next word end
E End move to the next word end (broad sense)
{ move to the previous blank line
} move to the next blank line
f<char> fetch move to the next occurrence of the character <char>
F<char> Fetch move to the previous occurrence of the character <char>
$ move to the end of the line
^ move to the first non-whitespace character of the line
zz center the viewport on the currently
<num>gg goto move to line number <num> (default is 1 if <num> is omitted)
G move to the last line
C-o Go to the previous cursor position

Switch to insert mode

command meaning description
i insert insert before the cursor
I Insert insert at the beginning of the line (= ^i)
a append insert after the cursor/td>
A Append insert at the end of the line (= $a)
o insert on a new blank line after the current line
O insert on a new blank line before the current line
s substitute remove the current character and instert instead (= xi)
S Substitute remove the current line and insert instead (= ddi
R Replace insert and override on the fly

Actions

command meaning description
<num>dd delete delete <num> lines
<num>yy yank copy <num> lines to vim's default buffer
x remove the character under the cursor
<num>p paste paste <num> times vim's default buffer after the cursor
<num>P Paste paste <num> times vim's default buffer before the cursor
~ (tilde) swap case under the cursor
. repeat previous action (kind of "live macro", try it yourself and see)
/<pattern><CR> search next occurrence of <pattern>
?<pattern><CR> search previous occurrence of <pattern>
* look for the next occurrence of the word under the cursor
n forward search last searched pattern
N backward search last searched pattern