From 523dd1ad3aed388764af8f3c860f7d5b162ee111 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 30 Jan 2020 01:07:59 +0100 Subject: [PATCH] Use single quotes --- vimrc | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/vimrc b/vimrc index 9689d9d..f023d68 100644 --- a/vimrc +++ b/vimrc @@ -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("") - exe "!devhelp -s " . word . " &" + let word = expand('') + exe '!devhelp -s ' . word . ' &' endfunction function! ManCurrentWord() - let word = expand("") - exe "!man 3 " . word + let word = expand('') + exe '!man 3 ' . word endfunction " vim:foldmethod=marker:foldlevel=0