diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-09-26 18:49:58 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-09-26 18:49:58 -0400 |
commit | 543f19de1eae7aefca39b9cc214e75e00ff7af0f (patch) | |
tree | 3d71a04a6fd34732143090ce7202b9440016921e /vim/.vimrc | |
parent | 901b7cb549482a553ad8cb1c608e66caf66e98bd (diff) |
Update vim config
Diffstat (limited to 'vim/.vimrc')
-rw-r--r-- | vim/.vimrc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,4 +1,5 @@ set number relativenumber +filetype plugin on syntax enable set tabstop=8 set cursorline @@ -22,6 +23,7 @@ map W <esc>:WordCount<enter> colorscheme elflord + au BufRead,BufNewFile *.go set filetype=go au BufRead,BufNewFile *.ldg set filetype=ledger @@ -33,3 +35,11 @@ endfunction command LedgerSort call LedgerSort() filetype plugin on +nmap <C-S-P> :call <SID>SynStack()<CR> +function! <SID>SynStack() + if !exists("*synstack") + return + endif + echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') +endfunc + |