Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autoload/xolox/notes.vim
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function! xolox#notes#edit(bang, title) abort " {{{1
endif
" At this point we're dealing with a new note.
let fname = xolox#notes#title_to_fname(title)
noautocmd execute 'edit' . a:bang fnameescape(fname)
execute 'edit' . a:bang fnameescape(fname)
if line('$') == 1 && getline(1) == ''
execute 'silent read' fnameescape(g:notes_new_note_template)
1delete
Expand Down
2 changes: 1 addition & 1 deletion plugin/notes.vim
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ augroup PluginNotes
augroup END

augroup filetypedetect
let s:template = 'au BufNewFile,BufRead %s if &bt == "" | setl ft=notes | end'
let s:template = 'au BufRead %s if &bt == "" | setl ft=notes | end'
for s:directory in xolox#notes#find_directories(0)
execute printf(s:template, xolox#notes#autocmd_pattern(s:directory, 1))
endfor
Expand Down