~smlavine/astronvim-user

e7371382bb1f4b2fafffce4e3ace10d9f5c984c4 — Sebastian LaVine 4 months ago e8b2d39 main
Remove double modal execution
1 files changed, 0 insertions(+), 3 deletions(-)

M init.vim
M init.vim => init.vim +0 -3
@@ 25,13 25,10 @@ nnoremap <C-B> :call ToggleColumnWidth()<CR>
fun! ModalOnSelection()
	if filereadable("./zm-debug")
		'<,'>!xp ./zm-debug -F
		'<,'>!xp ./zm-debug -F
	elseif filereadable("./zm")
		'<,'>!xp ./zm -F
		'<,'>!xp ./zm -F
	elseif filereadable(expand("~/.local/bin/zm"))
		'<,'>!xp ~/.local/bin/zm -F
		'<,'>!xp ~/.local/bin/zm -F
	endif
endfun
vnoremap <F4> :call ModalOnSelection()<CR>