Editor vi

vi è l'editor di testo per eccellenza nei sistemi *nix.

Comandi base

Command mode

Esc: entra/torna in command mode (sposta cursore, fa un undo, cancella caratteri…)

Movimento

h - cursore a sinistra

j - cursore giù

k - cursore sù

l - cursore a destra

Cancella testo

x - cancella carattere sotto cursore

dd - cancella tutta la riga

Copia/ Incolla

yy - copia la riga

p - incolla la riga

Esci

:q! - esci senza salvare le modifiche

:wq! - esci salvando le modifiche

Edit mode

i - entra in edit mode

Tags:

Add new comment

Filtered HTML

  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <p> <h1> <h2> <h3> <h4> <h5> <div> <pre> <object>
  • You may insert videos with [video:URL]
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.