From: Mike D. Lowis Date: Mon, 28 Jan 2013 16:24:21 +0000 (-0500) Subject: Updated Todo command to have a configurable path for the todo list file X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=24d4e9062cd8748b966cb4394cc57461696fcafe;p=archive%2Fvim_config.git Updated Todo command to have a configurable path for the todo list file --- 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()