vim:setts: Don't wrap termdebug settings in aucmd

This commit is contained in:
2024-10-16 14:32:39 +02:00
parent 908cc494a2
commit 72770f6703
2 changed files with 2 additions and 6 deletions

View File

@@ -118,15 +118,10 @@ if (exists('g:loaded_gitgutter'))
endif endif
" Netrw " Netrw
" Use tree style listing " Use tree style listing
let g:netrw_liststyle=3 let g:netrw_liststyle=3
" TermDebug " TermDebug
" Have source view to the side of the splits of debugger and program " Have source view to the side of the splits of debugger and program
augroup termdebug_settings let g:termdebug_wide = 1
au!
autocmd SourcePost termdebug.vim let g:termdebug_wide = 1
augroup end

View File

@@ -59,6 +59,7 @@ augroup END
" Custom bindings when debugging " Custom bindings when debugging
augroup termdebug_bindings augroup termdebug_bindings
au! au!
" Go to normal mode with <Esc> like usually
autocmd SourcePost termdebug.vim tnoremap <Esc> <C-\><C-n> autocmd SourcePost termdebug.vim tnoremap <Esc> <C-\><C-n>
augroup END augroup END