Compare commits

...

2 Commits

Author SHA1 Message Date
Julian Ospald 523dd1ad3a
Use single quotes 2020-01-30 01:07:59 +01:00
Julian Ospald 08d59860f5
Enable vint for vim 2020-01-30 01:02:30 +01:00
2 changed files with 21 additions and 19 deletions

2
after/ftplugin/vim.vim Normal file
View File

@ -0,0 +1,2 @@
let g:ale_linters = {'vim':['vint']}

38
vimrc
View File

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