~gpanders/dotfiles

ref: 2da1dde5ea566f82ebe6532bc6d3b8670fd77ce8 dotfiles/vim/.vim/after/plugin/projectionist/vim.vim -rw-r--r-- 853 bytes
2da1dde5Greg Anders Note 'open' subcommand opens editor in NOTES_DIR when no argument given 1 year, 3 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 },
      \ }})