Skip to content

Commit b16493f

Browse files
committed
Include the ftdetect/notes.vim script (thanks Avi Yagodnick, sorry everyone else :-)
1 parent 1099756 commit b16493f

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

autoload/xolox/notes.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
" Vim auto-load script
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: November 26, 2011
3+
" Last Change: November 27, 2011
44
" URL: http://peterodding.com/code/vim/notes/
55

66
" Note: This file is encoded in UTF-8 including a byte order mark so
77
" that Vim loads the script using the right encoding transparently.
88

9-
let g:xolox#notes#version = '0.16.11'
9+
let g:xolox#notes#version = '0.16.12'
1010
let s:scriptdir = expand('<sfile>:p:h')
1111

1212
function! xolox#notes#init() " {{{1

ftdetect/notes.vim

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
" Vim file type detection script
2+
" Author: Peter Odding <peter@peterodding.com>
3+
" Last Change: November 26, 2011
4+
" URL: http://peterodding.com/code/vim/notes
5+
6+
" Initialize the configuration defaults.
7+
call xolox#notes#init()
8+
9+
" Define the automatic commands used to recognize notes.
10+
for s:directory in [g:notes_directory, g:notes_shadowdir]
11+
execute 'autocmd BufNewFile,BufRead'
12+
\ xolox#notes#autocmd_pattern(s:directory)
13+
\ 'if empty(&buftype) | setlocal filetype=notes | endif'
14+
endfor
15+
16+
" vim: ts=2 sw=2 et

0 commit comments

Comments
 (0)