For internal use
For internal use
This is an old revision of the document!
:e ++ff=unix # similar commands include :e ++ff=dos :e ++ff=mac
:%s/^M//g # will do it if you use Ctrl-v Ctrl-m to input the ^M
if has("gui_kde")
#set guifont=Consolas/13/-1/5/50/0/0/0/0/0
elseif has("gui_gtk")
#set guifont=Consolas\ 13
elseif has("gui_running")
if has("win32") || has("win64")
#set guifont=Consolas:h12
else
#set guifont=-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1
endif
endif
Setup a Ruler on a Specific Column in Vim | Baeldung on Linux PEP 8 – Style Guide for Python Code | peps.python.org
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.
You can add a vertical ruler by type:
#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)
highlight colorcolumn ctermbg=lightgrey guibg=lightgrey
The two lines can be added to ~/.vimrc for automatic loading.