" Project Notes " ------------- " Quick access to a local notes file for keeping track of things in a given " project. Add `.project-notes` to global ~/.gitignore let s:PROJECT_NOTES_FILE = '.project-notes' command! EditProjectNotes call SmartSplit(s:PROJECT_NOTES_FILE) nnoremap ep :EditProjectNotes autocmd BufEnter .project-notes call LoadNotes() function! s:SmartSplit(file) let split_cmd = (winwidth(0) >= 100) ? 'vsplit' : 'split' execute split_cmd . " " . a:file endfunction function! s:LoadNotes() setlocal filetype=markdown endfunction " vim:ft=vim