From 24d4e9062cd8748b966cb4394cc57461696fcafe Mon Sep 17 00:00:00 2001 From: "Mike D. Lowis" Date: Mon, 28 Jan 2013 11:24:21 -0500 Subject: [PATCH] Updated Todo command to have a configurable path for the todo list file --- vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 986cc40..433eec0 100644 --- a/vimrc +++ b/vimrc @@ -53,6 +53,7 @@ set completeopt=menu,longest " Show a popup menu with the longest common "============================================================================== " Global Variables "============================================================================== +let g:TodoList = "~/.todo.md" let g:TemplateDir = $VIMHOME . "/templates" " Directory to search for templates let g:BufsLeft = "" " Buffers to the left of our current buffer let g:CurBuffer = "" " Name of our current buffer @@ -76,7 +77,10 @@ set statusline+=%<%=[%l][%c][%P][%L]%< command! -range=% -nargs=0 ToFn execute ",s/;/\r{\r\r}\r/" " Todo - Opens ~/.todo.md for editing -command! Todo edit ~/.todo.md +command! Todo execute "edit " . g:TodoList + +" Todo - Opens ~/.todo.md for editing +command! -nargs=1 Template execute "edit " . g:TemplateDir . "/" . . ".m4" " LoadProject - Searches for and loads project specific settings function! LoadProject() -- 2.54.0