mirror of
https://github.com/amix/vimrc
synced 2025-07-12 06:05:01 +08:00
Setup 80 line marker, showing trailing whitespaces (and should remove them on save but this is not working fo me)
This commit is contained in:
@ -6,11 +6,21 @@ highlight LineNr ctermfg=darkgrey
|
|||||||
set cursorline
|
set cursorline
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => my custom settings
|
" => my custom settings
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
set number " line numbers
|
set number " line numbers
|
||||||
set nocompatible " choose no compatibility with legacy vi
|
set nocompatible " choose no compatibility with legacy vi
|
||||||
set nowrap " don't wrap lines
|
set nowrap " don't wrap lines
|
||||||
|
set colorcolumn=80
|
||||||
|
highlight ColorColumn ctermbg=DarkGray
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" => trailing whitespaces (show & remove on save)
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
set list
|
||||||
|
set listchars=tab:▸\ ,trail:·
|
||||||
|
autocmd BufWritePre * :%s/\s\+$//e
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => custom key maps
|
" => custom key maps
|
||||||
|
Reference in New Issue
Block a user