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
Plug 'w0rp/ale', {
\ 'do': 'bash -c \"cp -R ~/.vim/ale_linters .\"',
\ 'for': 'sh',
\ 'for': ['sh', 'vim'],
\ }
" haskell
@ -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