1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-06-27 02:48:33 +02:00
dotfiles/my_configs.vim
2020-02-27 18:32:46 +01:00

56 lines
1.5 KiB
VimL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

colorscheme twilight256
set mouse=a relativenumber number foldmethod=indent nofoldenable "without nofoldenable all folds are closed at startup"
set splitbelow splitright
set autoread
" ALE configuration
let g:ale_fixers = { 'python': ['black'] , 'rust': ['rustfmt'], }
let g:ale_linters = { 'python': ['pylint'], 'bash': ['bashlint'], 'rust': ['rustc'], 'yaml': ['yamllint'] }
let g:ale_lint_on_insert_leave = 1
let g:ale_fix_on_insert_leave = 1
let g:ale_lint_on_text_changed = 1
let g:ack_default_options = " --cc --cpp --shell --python"
" let g:ale_lint_on_save = 1
let g:ale_fix_on_save = 1
let g:ale_lint_on_insert_leave = 1
let g:ale_completion_enabled = 1
packadd termdebug
let g:gitgutter_enabled = 1
" Highlight all instances of word under cursor, when idle.
" Useful when studying strange source code.
" Type z/ to toggle highlighting on/off.
nnoremap z/ :if AutoHighlightToggle()<Bar>set hls<Bar>endif<CR>
function! AutoHighlightToggle()
let @/ = ''
if exists('#auto_highlight')
au! auto_highlight
augroup! auto_highlight
setl updatetime=4000
echo 'Highlight current word: off'
return 0
else
augroup auto_highlight
au!
au CursorHold * let @/ = '\V\<'.escape(expand('<cword>'), '\').'\>'
augroup end
setl updatetime=500
echo 'Highlight current word: ON'
return 1
endif
endfunction
" A friggin python breakpoint. Invoke with @b
let @b = 'A
breakpoint()ýajkj0'
let g:ctrlp_custom_ignore = {
\ 'dir': 'target$',
\ }
" \ 'file': '\v\.(exe|so|dll)$',
" \ 'link': 'some_bad_symbolic_links',