User Tools

Site Tools


vim

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
vim [2025/10/27 03:30] zhangykvim [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:\Users\<username>\_vimrc: [[https://superuser.com/questions/364792/how-can-i-set-the-default-font-for-gvim-on-windows | ref]]   * In C:\Users\<username>\_vimrc: [[https://superuser.com/questions/364792/how-can-i-set-the-default-font-for-gvim-on-windows | ref]]
 +
 +(The # shall be removed.)
 <code> <code>
 if has("gui_kde") if has("gui_kde")
Line 54: Line 56:
 You can add a vertical ruler by typing: You can add a vertical ruler by typing:
 ``` ```
-#set colorcolumn=72,80+:set colorcolumn=72,80
 ``` ```
 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. (The # shall be removed.) 
 +``` 
 +#set colorcolumn=72,80 
 +highlight colorcolumn ctermbg=lightgrey guibg=lightgrey 
 +```
 </markdown> </markdown>
  
vim.1761535806.txt.gz · Last modified: 2025/10/27 03:30 by zhangyk