User Tools

Site Tools


util:vim

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
util:vim [2020/11/17 11:11] philutil:vim [2021/07/14 18:50] (current) – [Helpful Settings] Added fileformat option description phil
Line 52: Line 52:
 | textwidth | tw | Integer | specifies the maximum line length, longer lines will be broken after white space using <EOL> | | textwidth | tw | Integer | specifies the maximum line length, longer lines will be broken after white space using <EOL> |
 | linebreak | lbr | Boolean | wrap long lines, for displaying only (no changes are done to the file itself) | | linebreak | lbr | Boolean | wrap long lines, for displaying only (no changes are done to the file itself) |
 +| fileformat | ff | String | Set the format used when writing, e.g. ''set ff=unix\n:wq'' to convert a dos file to unix |
  
 Using this line in the ''.vimrc'' file, the cursor is placed at the last known position in the file when opening: Using this line in the ''.vimrc'' file, the cursor is placed at the last known position in the file when opening:
Line 117: Line 118:
 ===== Ranges ===== ===== Ranges =====
 ^ Example ^ Effect ^ ^ Example ^ Effect ^
-| . | actual line | +| . | current line | 
-| 2,3 | all from line 2 till inclusively line 3 | +| 2,3 | all from line 2 till line 3 inclusively 
-| <nowiki>^,$</nowiki> | all from beginning of file till the end |+| <nowiki>^,$</nowiki> | all from beginning till end of file |
 | +2,+3 | all from two lines after cursor till three lines after cursor | | +2,+3 | all from two lines after cursor till three lines after cursor |
  
util/vim.1605611505.txt.gz · Last modified: 2020/11/17 11:11 by phil