File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 '
1010let s: scriptdir = expand (' <sfile>:p:h' )
1111
1212function ! xolox#notes#init () " {{{1
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments