You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, just was wondering if there'd be enough interest in this to include it into the real version as an option. It does seem fairly niche but is pretty useful so far.
Basically, if you used auto pairs to jump as the very last thing use back insert when pressing backspace. Otherwise do the normal delete business!
Easiest thing I could come up with was something like this:
let g:AutoPairsFlyActive = 0
function! s:AutoPairsActivateFlyFlag()
let g:AutoPairsFlyActive = 1
augroup FlyFlag
autocmd InsertCharPre * call s:AutoPairsRemoveFlyFlag()
autocmd InsertLeave * call s:AutoPairsRemoveFlyFlag()
augroup END
endfunction
function! s:AutoPairsRemoveFlyFlag()
if g:AutoPairsFlyActive
let g:AutoPairsFlyActive = 0
augroup FlyFlag
au!
augroup END
endif
endfunction
Plus one line changed in backinsert and delete each.
I could imagine that a lot more people would find some function to map different keys to brackets more useful. I like to have ö, ä, and ü as (, [, and { respectively for instance because these are in the same position as the brackets on the American keyboard. It makes typing many programming languages a lot easier. On the other hand, even a function to toggle that is only ~10 lines so maybe it isn't needed anyway.
The text was updated successfully, but these errors were encountered:
Hey, just was wondering if there'd be enough interest in this to include it into the real version as an option. It does seem fairly niche but is pretty useful so far.
Basically, if you used auto pairs to jump as the very last thing use back insert when pressing backspace. Otherwise do the normal delete business!
Easiest thing I could come up with was something like this:
Plus one line changed in backinsert and delete each.
I could imagine that a lot more people would find some function to map different keys to brackets more useful. I like to have ö, ä, and ü as (, [, and { respectively for instance because these are in the same position as the brackets on the American keyboard. It makes typing many programming languages a lot easier. On the other hand, even a function to toggle that is only ~10 lines so maybe it isn't needed anyway.
The text was updated successfully, but these errors were encountered: