-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't assign custom auto commands without the insert versions #90
Comments
I am the author of LessSpace from the linked issue. My plugin strips whitespace when leaving insert mode, or after normal mode edits. I am having trouble integrating with Codi's behavior of quickly leaving insert mode during Codi updates. The Lines 352 to 355 in 26fdafe
Alternatively, Codi could be set to run on |
This is what I use to assign custom auto commands for codi without the insert version. " vimrc/init.vim
let g:codi#autocmd = 'None'
augroup codi_update
autocmd!
autocmd TextChanged,InsertLeave <buffer> call codi#update()
augroup END |
The problem with your solution is that The below works only when codi is active, using the let g:codi#autocmd = 'None'
augroup codi
au!
au User CodiEnterPre call s:codi_enter()
au User CodiLeavePost call s:codi_leave()
augroup END
function! s:codi_enter()
exe 'augroup codi_' . bufnr('%')
au!
au InsertLeave,TextChanged <buffer> call codi#update()
augroup END
endfunction
function! s:codi_leave()
exe 'augroup codi_' . bufnr('%')
au!
augroup END
endfunction |
I want to assign custom auto commands: TextChanged,InsertLeave without the insert versions of them.
Why?
The text was updated successfully, but these errors were encountered: