2023-01-10 18:51:12 +01:00
|
|
|
" do not make Vim more Vi-compatible
|
|
|
|
set nocompatible
|
|
|
|
|
|
|
|
" disable modeline for security
|
|
|
|
set nomodeline
|
|
|
|
|
|
|
|
" Adjust the default color groups for a dark or light background, respectively.
|
|
|
|
set background=dark
|
|
|
|
|
|
|
|
" Highlight the screen line of the cursor
|
|
|
|
set cursorline
|
|
|
|
|
2023-01-20 20:37:43 +01:00
|
|
|
" Ignore case in search patterns and hihglight search results
|
|
|
|
set ignorecase hlsearch
|
2023-01-19 10:14:40 +01:00
|
|
|
|
2023-01-10 18:51:12 +01:00
|
|
|
" enable syntax highlighting
|
|
|
|
syntax on
|
|
|
|
|
2023-01-20 20:46:05 +01:00
|
|
|
" show tabs and trailing spaces
|
|
|
|
set list listchars=tab:>-,trail:-
|
|
|
|
|
2023-01-10 18:51:12 +01:00
|
|
|
" Suppress the banner in netrw
|
|
|
|
let g:netrw_banner=0
|
|
|
|
|
|
|
|
" Tree style listing in netrw
|
|
|
|
let g:netrw_liststyle = 3
|
|
|
|
|
2023-01-10 19:03:17 +01:00
|
|
|
" Automatically remove trailing whitespace
|
|
|
|
autocmd! BufWrite * mark ' | silent! %s/\s\+$// | norm '
|
|
|
|
|