User Tools

Site Tools


linux:tools:vi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:tools:vi [2024/10/18 09:32] – mslinux:tools:vi [2026/10/08 10:55] (current) – [Convert] ms
Line 17: Line 17:
 <code> <code>
 :g/^$/d :g/^$/d
 +</code>
 +
 +Inhalt sortieren
 +<code>
 +:%sort
 +</code>
 +
 +Terminal öffnen
 +<code>
 +:term
 </code> </code>
  
Line 39: Line 49:
 <code> <code>
 vimdiff file1 file2 vimdiff file1 file2
 +</code>
 +
 +===== Convert =====
 +Check Filetype: UTF-8 oder ISO-8859
 +<code>
 +:set fileencoding?
 +</code>
 +ISO-8859 -> fileencoding=latin1
 +
 +Filetype auf UTF-8 setzen
 +<code>
 +:set fileencoding=utf-8
 +:w
 +
 +:set fileencoding=utf-8 | w
 +</code>
 +
 +Entfernung von BOM (Byte Order Mark) und CRLF (von Windows)
 +<code>
 +:set nobomb
 +:set fileformat=unix
 +:w
 </code> </code>
linux/tools/vi.1729243963.txt.gz · Last modified: 2024/10/18 09:32 by ms

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki