]> git.mdlowis.com Git - archive/vim_config.git/commitdiff
Updated Todo command to have a configurable path for the todo list file
authorMike D. Lowis <mike@mdlowis.com>
Mon, 28 Jan 2013 16:24:21 +0000 (11:24 -0500)
committerMike D. Lowis <mike@mdlowis.com>
Mon, 28 Jan 2013 16:24:21 +0000 (11:24 -0500)
vimrc

diff --git a/vimrc b/vimrc
index 986cc4056b8ef6cbb495529057ff0ccda6ec3217..433eec03952b12b878cc512e061d821520a128ef 100644 (file)
--- 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 "<line1>,<line2>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 . "/" . <f-args> . ".m4"
 
 " LoadProject - Searches for and loads project specific settings
 function! LoadProject()