Vim Tips Wiki

Editing

Using tab pages

1
  • The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit. If you are undoing an edit that is …
Latest revision Your text
Line 122: Line 122:
 
The following command abbreviation allows typing <code>:tabv myfile.txt</code> to view the specified file in a new tab; the buffer is read-only and nomodifiable so you cannot accidentally change it.
 
The following command abbreviation allows typing <code>:tabv myfile.txt</code> to view the specified file in a new tab; the buffer is read-only and nomodifiable so you cannot accidentally change it.
 
<pre>
 
<pre>
cabbrev tabv tab sview +setlocal\ nomodifiable
+
cabbrev tabv tabnew\|setlocal nomodifiable\|view
 
</pre>
 
</pre>
   
  Loading editor
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template