This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| vim [2025/10/27 03:30] – zhangyk | vim [2025/10/27 03:31] (current) – zhangyk | ||
|---|---|---|---|
| Line 26: | Line 26: | ||
| ===== How to change default font in windows ===== | ===== How to change default font in windows ===== | ||
| * In C: | * In C: | ||
| + | |||
| + | (The # shall be removed.) | ||
| < | < | ||
| if has(" | if has(" | ||
| Line 54: | Line 56: | ||
| You can add a vertical ruler by typing: | You can add a vertical ruler by typing: | ||
| ``` | ``` | ||
| - | #set colorcolumn=72, | + | :set colorcolumn=72, |
| ``` | ``` | ||
| The line's color can be adjusted, `ctermbg` for vim called from terminal while `guibg` for vim called from GUI (which is gvim) | The line's color can be adjusted, `ctermbg` for vim called from terminal while `guibg` for vim called from GUI (which is gvim) | ||
| ``` | ``` | ||
| - | highlight colorcolumn ctermbg=lightgrey guibg=lightgrey | + | :highlight colorcolumn ctermbg=lightgrey guibg=lightgrey |
| ``` | ``` | ||
| - | The two lines can be added to `~/.vimrc` for automatic loading. | + | The two lines can be added to `~/.vimrc` for automatic loading. |
| + | ``` | ||
| + | #set colorcolumn=72, | ||
| + | highlight colorcolumn ctermbg=lightgrey guibg=lightgrey | ||
| + | ``` | ||
| </ | </ | ||