Use single quotes

This commit is contained in:
Julian Ospald 2020-01-30 01:07:59 +01:00
parent 08d59860f5
commit 523dd1ad3a
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 18 additions and 18 deletions

36
vimrc
View File

@ -147,7 +147,7 @@ Plug 'Quramy/tsuquyomi', { 'for': 'typescript' }
Plug 'altercation/vim-colors-solarized'
" Plug 'reedes/vim-colors-pencil'
" Plug 'whatyouhide/vim-gotham'
if has("nvim")
if has('nvim')
Plug 'iCyMind/NeoSolarized'
endif
" Plug 'noahfrederick/vim-hemisu'
@ -161,7 +161,7 @@ Plug '~/.vim/unmanaged-vim-plug/L9'
Plug '~/.vim/unmanaged-vim-plug/log'
Plug '~/.vim/unmanaged-vim-plug/ScrollColor'
Plug '~/.vim/unmanaged-vim-plug/txtfmt'
if !has("nvim")
if !has('nvim')
Plug '~/.vim/unmanaged-vim-plug/fontzoom'
endif
@ -213,7 +213,7 @@ set directory=~/.vimtmp
set modeline
set modelines=1
let g:nickID = "hasufell"
let g:nickID = 'hasufell'
" don't yank to buffer on deletion
" vnoremap d "_d
@ -246,10 +246,10 @@ else
colorscheme solarized
endif
if has("nvim")
if has('nvim')
if exists('g:GtkGuiLoaded')
let g:neosolarized_contrast = "normal"
let g:neosolarized_visibility = "normal"
let g:neosolarized_contrast = 'normal'
let g:neosolarized_visibility = 'normal'
let g:neosolarized_vertSplitBgTrans = 0
let g:neosolarized_bold = 1
let g:neosolarized_underline = 1
@ -257,8 +257,8 @@ if has("nvim")
set background=dark
colorscheme NeoSolarized
else
let g:neosolarized_contrast = "normal"
let g:neosolarized_visibility = "normal"
let g:neosolarized_contrast = 'normal'
let g:neosolarized_visibility = 'normal'
let g:neosolarized_vertSplitBgTrans = 0
let g:neosolarized_bold = 1
let g:neosolarized_underline = 1
@ -278,7 +278,7 @@ fu! DisableBr()
set nolist " list disables linebreak
set textwidth=0
set wrapmargin=0
set fo-=t
set formatoptions-=t
endfu
" Disable line breaks for all file types
@ -287,15 +287,15 @@ au BufNewFile,BufRead *.* call DisableBr()
" ==========copy/paste===========
function! Paste(mode)
if a:mode == "v"
if a:mode == 'v'
normal gv
normal "_d
normal "+gP
normal l
elseif a:mode == "i"
elseif a:mode == 'i'
set virtualedit=all
normal `^"+gP
let &virtualedit = ""
let &virtualedit = ''
endif
endfunction
@ -304,7 +304,7 @@ endfunction
function! Select()
set virtualedit=all
normal `^ggVG
let &virtualedit = ""
let &virtualedit = ''
endfunction
" =======================
@ -353,7 +353,7 @@ endfun
" comment hiding
func! IsComment( lnum )
return synIDattr(synID(a:lnum, match(getline(a:lnum),'\S')+1, 1),"name") =~? 'comment'
return synIDattr(synID(a:lnum, match(getline(a:lnum),'\S')+1, 1),'name') =~? 'comment'
endfun
@ -394,13 +394,13 @@ endfunction
" vim macro to jump to devhelp topics.
""""""""""""""""""""""""""""""
function! DevHelpCurrentWord()
let word = expand("<cword>")
exe "!devhelp -s " . word . " &"
let word = expand('<cword>')
exe '!devhelp -s ' . word . ' &'
endfunction
function! ManCurrentWord()
let word = expand("<cword>")
exe "!man 3 " . word
let word = expand('<cword>')
exe '!man 3 ' . word
endfunction
" vim:foldmethod=marker:foldlevel=0