commit b007eac56e68ce9bea81d1aaa972e3adf946ade9
parent 9a5487d2587768031f3be8ca1966b519b2b98fd6
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Wed, 7 Aug 2019 17:56:45 +0200
vim: better synstack mapping
Former-commit-id: 20117802b83afdaa39666115fac7d429f20c7c0a
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vim/autoload/synstack.vim b/vim/autoload/synstack.vim
@@ -3,5 +3,5 @@ function! synstack#SynStack()
if !exists("*synstack")
return
endif
- echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
+ echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"
endfunc