commit 0bcf4f2bd7bad8377aeaf0bcdfeb5a3319ad6c3a
parent e7da25107825a2f1bd66f31ea76f3c575b2cc19b
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sun, 29 Sep 2019 14:08:27 -0400
vim: various changes
Former-commit-id: c64232245ce44a38dffd03f6f400db99d2292139
Diffstat:
5 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/vim/after/ftplugin/javascript.vim b/vim/after/ftplugin/javascript.vim
@@ -1 +1,7 @@
runtime! ftplugin/html/sparkup.vim
+setlocal suffixesadd =.js,.ts
+if exists('b:undo_ftplugin')
+ let b:undo_ftplugin .= '| setlocal suffixesadd<'
+else
+ let b:undo_ftplugin = '| setlocal suffixesadd<'
+endif
diff --git a/vim/after/ftplugin/vimwiki.vim b/vim/after/ftplugin/vimwiki.vim
@@ -1,9 +1,12 @@
setlocal wrap shiftwidth=4 tabstop=4 softtabstop=4 breakindent breakindentopt=shift:3
cabbrev <buffer> table VimwikiTable
+nmap <buffer> <leader><CR> <Plug>VimwikiSplitLink
if exists('b:undo_ftplugin')
let b:undo_ftplugin .= '|setlocal wrap< shiftwidth< tabstop< softtabstop< breakindent< breakindentopt<'
let b:undo_ftplugin .= '| cabc <buffer>'
+ let b:undo_ftplugin .= '| nmapc <buffer>'
else
let b:undo_ftplugin = 'setlocal wrap< shiftwidth< tabstop< softtabstop< breakindent< breakindentopt<'
let b:undo_ftplugin .= '| cabc <buffer>'
+ let b:undo_ftplugin .= '| nmapc <buffer>'
endif
diff --git a/vim/autoload/synstack.vim b/vim/autoload/synstack.vim
@@ -1,7 +0,0 @@
-" Show syntax highlighting groups for word under cursor
-function! synstack#SynStack()
- if !exists("*synstack")
- return
- endif
- echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"
-endfunc
diff --git a/vim/colors/junipero.vim b/vim/colors/junipero.vim
@@ -64,6 +64,7 @@ hi StatusLine guifg=#4079a9 guibg=#101130 ctermfg=67 ctermbg=17 cterm=bold gui=b
hi! link Label Structure
hi! link StorageClass Structure
hi! link Typedef Structure
+hi! link ConId Constant
hi! link Character Constant
hi! link VimwikiLink Constant
hi! link Define Include
diff --git a/vim/colors/junipero.vimcolor b/vim/colors/junipero.vimcolor
@@ -56,7 +56,7 @@ WarningMsg #fa8072, NONE. NONE
StatusLine #4079a9, #101130. bold
link Label,StorageClass,Typedef Structure
-link Character,VimwikiLink Constant
+link ConId,Character,VimwikiLink Constant
link Define,Macro,PreCondit Include
link Debug,Special,SpecialChar,SpecialComment,Tag Delimiter
link StatusLineNC,TabLine,TabLineFill,SignColumn,netrwDir LineNr