Difference between pages "Package:Vim/Cheatsheet" and "Translations:Funtoo Profiles/3/pt-br"

From Funtoo
< Package:Vim(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
* 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.
{{TableStart}}
* Even if not specified in the "command" column, most commands fired in normal mode accept a "<num> prefix" (Eg. `5w` is equivalent to `wwwww`).
{{2ColHead|Tipo de Sub-Profile |Descrição}}
* Most commands will work in visual mode as well as in normal mode.
{{2Col|{{c|arch}}|Tipicamente {{c|x86-32bit}} ou {{c|x86-64bit}}, isso define o suporte ao tipo de processador do sistema. É definido quando o stage é construído e não pode ser mudado.}}
 
{{2Col|{{c|build}}|Define se seu sistema é {{c|current}}, {{c|stable}} ou {{c|experimental}}. Sistema {{c|current}} tem mais pacotes novos desmascarados que sistemas {{c|stable}}. É definido quando o stage é construído e normalmente não é alterado.}}
== Deplacements ==
{{2Col|{{c|subarch}}|Define a otimização para CPU do sistema. É definido na construção do stage3, mas pode ser alterado depois, se necessário. Esteja certo da compatibilidade com seu CPU.}}
 
{{2Col|{{c|flavor}}|Define o tipo geral do sistema que pode ser {{c|server}} ou {{c|desktop}}, e irá definir USE flags apropriadas para cada situação.}}
 
{{2Col|{{c|mix-ins}}|Define várias configurações opcionais que podem ser de seu interesse.}}
{{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}}
 
== Switch to insert mode ==
 
{{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}}
 
== Actions ==
 
{{TableStart|striped=true}}
<tr>
  <th>command</th>
  <th>meaning</th>
  <th>description</th>
</tr>
<tr>
  <td><num>dd</td>
  <td>delete</td>
  <td>delete <num> lines</td>
</tr>
<tr>
  <td><num>yy</td>
  <td>yank</td>
  <td>copy <num> lines to vim's default buffer</td>
</tr>
<tr>
  <td>x</td>
  <td></td>
  <td>remove the character under the cursor</td>
</tr>
<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}}
{{TableEnd}}

Latest revision as of 15:50, August 18, 2015

Tipo de Sub-Profile Descrição
archTipicamente x86-32bit ou x86-64bit, isso define o suporte ao tipo de processador do sistema. É definido quando o stage é construído e não pode ser mudado.
buildDefine se seu sistema é current, stable ou experimental. Sistema current tem mais pacotes novos desmascarados que sistemas stable. É definido quando o stage é construído e normalmente não é alterado.
subarchDefine a otimização para CPU do sistema. É definido na construção do stage3, mas pode ser alterado depois, se necessário. Esteja certo da compatibilidade com seu CPU.
flavorDefine o tipo geral do sistema que pode ser server ou desktop, e irá definir USE flags apropriadas para cada situação.
mix-insDefine várias configurações opcionais que podem ser de seu interesse.