Prefer single quotes

This commit is contained in:
Anthony Rose 2021-10-05 15:43:37 +01:00
parent 25d0774cf2
commit fa376720ca

42
vimrc
View file

@ -13,7 +13,7 @@ set nocompatible
"============================================================================= "=============================================================================
" Load Pathogen if Vim does not support packages. " Load Pathogen if Vim does not support packages.
if !has("packages") if !has('packages')
runtime pack/acp/opt/vim-pathogen/autoload/pathogen.vim runtime pack/acp/opt/vim-pathogen/autoload/pathogen.vim
execute pathogen#infect('pack/acp/start/{}') execute pathogen#infect('pack/acp/start/{}')
endif endif
@ -93,9 +93,9 @@ set wrap
"============================================================================= "=============================================================================
" General settings for non-minimal Vim builds. " General settings for non-minimal Vim builds.
if has("eval") if has('eval')
" Protect commands that are only available when +eval is enabled. " Protect commands that are only available when +eval is enabled.
" Technically only "if 1" would be required, as "has()" is provided " Technically only 'if 1' would be required, as 'has()' is provided
" by +eval, but this is clearer. " by +eval, but this is clearer.
command Q q command Q q
command W w command W w
@ -118,23 +118,23 @@ if has("eval")
let g:org_tag_column=78 let g:org_tag_column=78
let g:tempus_enforce_background_color=1 let g:tempus_enforce_background_color=1
" Set colour levels for different terminals. " Set colour levels for different terminals.
if &term == "xterm-256color" if &term == 'xterm-256color'
set t_Co=256 set t_Co=256
elseif &term == "xterm" elseif &term == 'xterm'
set t_Co=256 set t_Co=256
elseif &term == "rxvt-unicode" elseif &term == 'rxvt-unicode'
set t_Co=256 set t_Co=256
else else
set t_Co=16 set t_Co=16
endif endif
if &term =~# '256color' && ( &term =~# '^screen' || &term =~# '^tmux' ) if &term =~# '256color' && ( &term =~# '^screen' || &term =~# '^tmux' )
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" let &t_8f = '\<Esc>[38;2;%lu;%lu;%lum'
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" let &t_8b = '\<Esc>[48;2;%lu;%lu;%lum'
set termguicolors set termguicolors
endif endif
" "
" Set theme for Terminal. " Set theme for Terminal.
if &term =~# '^linux' if &term == 'linux'
" Dark for Linux console. " Dark for Linux console.
set background=dark set background=dark
colorscheme tempus_night colorscheme tempus_night
@ -148,7 +148,7 @@ endif
"============================================================================= "=============================================================================
" Settings based on feature detection. " Settings based on feature detection.
if has("autocmd") if has('autocmd')
autocmd BufRead,BufNewFile *.go set noet sw=8 ts=8 autocmd BufRead,BufNewFile *.go set noet sw=8 ts=8
autocmd BufRead,BufNewFile *.html set et sw=2 autocmd BufRead,BufNewFile *.html set et sw=2
autocmd BufRead,BufNewFile *.md set et ft=markdown sw=2 autocmd BufRead,BufNewFile *.md set et ft=markdown sw=2
@ -173,15 +173,15 @@ if has("autocmd")
endif endif
if has("folding") if has('folding')
set nofoldenable set nofoldenable
endif endif
if has("gui_running") if has('gui_running')
if has("gui_gtk") if has('gui_gtk')
set clipboard=unnamedplus set clipboard=unnamedplus
set guifont=Monospace\ 10 set guifont=Monospace\ 10
elseif has("gui_win32") elseif has('gui_win32')
set clipboard=unnamed set clipboard=unnamed
set guifont=Consolas:h10:cANSI set guifont=Consolas:h10:cANSI
set rop=type:directx set rop=type:directx
@ -196,34 +196,34 @@ if has("gui_running")
colorscheme tempus_totus colorscheme tempus_totus
endif endif
if has("patch-7.3.541") if has('patch-7.3.541')
set formatoptions+=j set formatoptions+=j
endif endif
if has("patch-8.1.1564") if has('patch-8.1.1564')
set signcolumn=number set signcolumn=number
else else
set signcolumn=yes set signcolumn=yes
endif endif
if has("printer") if has('printer')
set printheader=%t%h%m%=Page\ %N set printheader=%t%h%m%=Page\ %N
set printoptions=paper:A4,number:y,syntax:n set printoptions=paper:A4,number:y,syntax:n
endif endif
if has("smartindent") if has('smartindent')
set nosmartindent set nosmartindent
endif endif
if has("syntax") if has('syntax')
syntax on syntax on
endif endif
if has("viminfo") if has('viminfo')
set viminfo="NONE" set viminfo="NONE"
endif endif
if has("wildmenu") if has('wildmenu')
set wildmenu set wildmenu
endif endif