From 7096d9a8e61865d20c8d4e1c0f2ee906282e9af9 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Fri, 18 Aug 2023 00:07:09 +0500 Subject: [vim] Update config --- files/.vimrc | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'files/.vimrc') diff --git a/files/.vimrc b/files/.vimrc index c3879d9..8537124 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -451,14 +451,6 @@ endif command Jira %!pandoc --to=jira " }}} " Filetype {{{ -" Vundle {{{ - -augroup ft_vundle - au! - au FileType vundlelog setlocal nospell -augroup END - -" }}} " XML {{{ augroup ft_xml @@ -502,6 +494,12 @@ augroup ft_qf au FileType qf set nowrap augroup END " }}} +" Markdown {{{ +augroup ft_markdown + au! + au FileType markdown setlocal textwidth=0 +augroup END +" }}} " }}} " Plugins {{{ " Surround {{{ @@ -609,7 +607,7 @@ let g:ctrlp_user_caching = 0 augroup ft_ledger au! - setlocal textwidth=200 + au FileType ledger setlocal textwidth=200 let g:ledger_main = '~/Dropbox/ledger/journal.ledger' au FileType ledger inoremap e :call ledger#entry() au FileType ledger noremap x :call ledger#transaction_state_toggle(line('.'), '* ') @@ -667,22 +665,35 @@ augroup END let g:ale_set_quickfix = 1 +" don't spam the virtual text ('disable' to disable) +let ale_virtualtext_cursor = 'current' let g:ale_fix_on_save = 1 let g:ale_fixers = {} let g:ale_fixers['*'] = ['remove_trailing_lines', 'trim_whitespace'] -let g:ale_fixers['json'] = ['jq'] -let g:ale_fixers['sh'] = ['shfmt'] +let g:ale_fixers.json = ['jq'] +let g:ale_fixers.sh = ['shfmt'] +let g:ale_sign_error = 'x' +let g:ale_sign_warning = '!' +let g:ale_echo_msg_format = '[%linter%] %s [%severity%]' nmap ad (ale_detail) nmap aj (ale_next_wrap) nmap ak (ale_previous_wrap) +" Disable all fixers for current filetype +command ALEFixDisable let g:ale_fixers[&filetype] = {} + " }}} " Editorconfig {{{ let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*'] +" }}} +" dadbod {{{ + +let g:local = 'postgres://postgres@localhost' + " }}} " }}} " Load custom local config {{{ -- cgit v1.2.3