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
Next revision
Previous revision
vim [2025/10/27 03:28] 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 49: Line 51:
  
 [Setup a Ruler on a Specific Column in Vim | Baeldung on Linux](https://www.baeldung.com/linux/vim-ruler-on-specific-column) [Setup a Ruler on a Specific Column in Vim | Baeldung on Linux](https://www.baeldung.com/linux/vim-ruler-on-specific-column)
-[PEP 8 – Style Guide for Python Code | peps.python.org](https://peps.python.org/pep-0008/) 
  
-In python's PEP 8, the maximum line length is limited to 79 (and docstrings or comments to 72). So a vertical indication line is necessary.+In python'[PEP 8](https://peps.python.org/pep-0008/), the maximum line length is limited to 79 (and docstrings/comments to 72). So a vertical indication line is necessary.
  
-You can add a vertical ruler by type:+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.1761535720.txt.gz · Last modified: 2025/10/27 03:28 by zhangyk