diff --git a/vim/.vimrc b/vim/.vimrc index 33ff5a8..bf71edc 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -34,6 +34,16 @@ else set shiftwidth=4 endif +function! SynStack() + if !exists("*synstack") + return + endif + echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') +endfunc + +" a little more informative version of the above +nmap :call SynStack() + " Autocommands autocmd BufEnter ~/.local/share/zk/* set filetype=markdown