File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
1
" Vim auto-load script
2
2
" Author: Peter Odding <peter@peterodding.com>
3
- " Last Change: November 26 , 2011
3
+ " Last Change: November 27 , 2011
4
4
" URL: http://peterodding.com/code/vim/notes/
5
5
6
6
" Note: This file is encoded in UTF-8 including a byte order mark so
7
7
" that Vim loads the script using the right encoding transparently.
8
8
9
- let g: xolox #notes#version = ' 0.16.11 '
9
+ let g: xolox #notes#version = ' 0.16.12 '
10
10
let s: scriptdir = expand (' <sfile>:p:h' )
11
11
12
12
function ! 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