aboutsummaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-09-26 18:49:58 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-09-26 18:49:58 -0400
commit543f19de1eae7aefca39b9cc214e75e00ff7af0f (patch)
tree3d71a04a6fd34732143090ce7202b9440016921e /vim/.vimrc
parent901b7cb549482a553ad8cb1c608e66caf66e98bd (diff)
Update vim config
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc10
1 files changed, 10 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 6a19a67..e7c5e38 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -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
+