util:vim
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| util:vim [2015/11/11 17:15] – [Links] phil | util:vim [2021/07/14 18:50] (current) – [Helpful Settings] Added fileformat option description phil | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| ===== Helpful Settings ===== | ===== Helpful Settings ===== | ||
| - | ^ Variable ^ Abbrev ^ Type ^ Meaning | + | ^ Variable ^ Abbrev ^ Type ^ Effect | 
| | filetype | ft | String | defines the filetype, used for syntax highlighting | | | filetype | ft | String | defines the filetype, used for syntax highlighting | | ||
| | modeline | ? | Boolean | activates the interpretation of '' | | modeline | ? | Boolean | activates the interpretation of '' | ||
| 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. '' | ||
| Using this line in the '' | Using this line in the '' | ||
| Line 57: | Line 58: | ||
| ===== Commands To Know By Heart ===== | ===== Commands To Know By Heart ===== | ||
| - | ^ Command ^ Meaning | + | ^ Command ^ Effect | 
| | < | | < | ||
| | ZZ | like '': | | ZZ | like '': | ||
| + | ^ copy' | ||
| | yy | copy actual line to clipboard | | | yy | copy actual line to clipboard | | ||
| - | | p | paste clipboard | + | | p | paste **after** the cursor | | 
| - | | P | paste clipboard | + | | P | paste **before** the cursor | 
| + | | "*p | Paste from " | ||
| + | | "+p | Paste from " | ||
| ^ Changing Modes^| | ^ Changing Modes^| | ||
| | I | insert at beginning of line | | | I | insert at beginning of line | | ||
| Line 113: | Line 117: | ||
| ===== Ranges ===== | ===== Ranges ===== | ||
| - | ^ Example ^ Meaning | + | ^ Example ^ Effect | 
| - | | . | actual | + | | . | current | 
| - | | 2,3 | all from line 2 till inclusively | + | | 2,3 | all from line 2 till line 3 inclusively | 
| - | | ^,$ | all from beginning | + | | < | 
| | +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 | | ||
| Line 241: | Line 245: | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[https:// | ||
| + | |||
util/vim.1447262120.txt.gz · Last modified:  by phil
                
                