~gpanders/dotfiles

ref: c8e63bac959db19c138dcc3198a56514f0b444ff dotfiles/.vim/after/plugin/projectionist/vim.vim -rw-r--r-- 853 bytes
c8e63bacGreg Anders Manage dotfiles directly in home directory 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
" Projections for vim runtime
" Author: Greg Anders <greg@gpanders.com>
" Date: 2019-03-20

if !get(g:, 'loaded_projectionist', 0)
  finish
endif

let g:projectionist_heuristics = get(g:, 'projectionist_heuristics', {})

let s:plugin_template = ['" {}', '" Author: Greg Anders <greg@gpanders.com>', '" Date: {date}', '', 'if 0', "\tfinish", 'endif']
let s:ftplugin_template = ['" {} filetype plugin', '" Author: Greg Anders <greg@gpanders.com>', '', 'let b:undo_ftplugin = get(b:, ''undo_ftplugin'', '''')', '']

call extend(g:projectionist_heuristics, {
      \ 'vimrc': {
      \   'plugin/*.vim': { 'template': s:plugin_template, },
      \   'after/plugin/*.vim': { 'template': s:plugin_template, },
      \   'ftplugin/*.vim': { 'template': s:ftplugin_template, },
      \   'after/ftplugin/*.vim': { 'template': s:ftplugin_template },
      \ }})