From 0e326067e3865a1a3fc9676c82cf55b85bf672c0 Mon Sep 17 00:00:00 2001 From: Brian Phillips Date: Thu, 3 Dec 2009 13:14:13 -0600 Subject: [PATCH] fixed tabs/spaces, also set height on new window --- vim/plugin/todo.vim | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/vim/plugin/todo.vim b/vim/plugin/todo.vim index 5a6db8e..b9876df 100644 --- a/vim/plugin/todo.vim +++ b/vim/plugin/todo.vim @@ -1,9 +1,9 @@ if !exists('g:todo_project_context') - let g:todo_project_context = '' + let g:todo_project_context = '' endif -command! -nargs=* Todo call Todo() -command! -nargs=+ TodoAdd call TodoAdd() +command! -nargs=* Todo call Todo() +command! -nargs=+ TodoAdd call TodoAdd() command! -nargs=* -complete=customlist,CompleteTodoList TodoList call TodoList() command! -nargs=0 TodoListProjects call TodoListProj() command! -nargs=0 TodoListContexts call TodoListCon() @@ -166,11 +166,12 @@ function! s:OpenTodoBuffer(content) if exists('b:is_todo_output_buffer') && b:is_todo_output_buffer enew! else - new + 10new endif - setlocal buftype=nofile readonly modifiable - silent put=a:content - keepjumps 0d - setlocal nomodifiable - let b:is_todo_output_buffer = 1 + setlocal buftype=nofile readonly modifiable + silent put=a:content + keepjumps 0d + setlocal nomodifiable + setlocal winfixheight + let b:is_todo_output_buffer = 1 endfunction