tests/vim_test/plugin/gundo_test_utils.vim @ 9002fc26d49f
Added statusline settings. Fixed indentation I want to use a custom statusline for both Gundo splits so i added two variables for it setting it. If the variables are empty Gundo works like normal but if there is something in them the text get used. Example: let g:gundo_preview_statusline = "Gundo Preview" let g:gundo_tree_statusline = "Gundo Tree" The indentation was off in a few places so i fixed it. The real tabs was removed and replaced with spaces like the rest of the source file.
| author | Göran Gustafsson <gustafsson.g@gmail.com> |
|---|---|
| date | Sun, 05 Feb 2012 09:33:52 +0100 |
| parents | d018089ed71a |
| children | (none) |
let s:undolevels_save = &undolevels function! g:Goto(buffername)"{{{ exec bufwinnr(bufnr(a:buffername)) . 'wincmd w' endfunction"}}} function! g:GotoLineContaining(text)"{{{ exe "silent! normal gg/\\M" . a:text . "\n" endfunction"}}} function! g:CurrentLineContains(text)"{{{ if stridx(getline('.'), a:text) != -1 return 1 else return 0 endif endfunction"}}} function! g:Contains(text)"{{{ call g:GotoLineContaining(a:text) return g:CurrentLineContains(a:text) endfunction"}}} function! g:TypeLine(text)"{{{ exe "normal i" . a:text . "\<C-g>u\n\e" endfunction"}}} function! g:TypeLineDone(text)"{{{ exe "normal i" . a:text . "\n\e" " Break the undo chain let &undolevels = s:undolevels_save endfunction"}}} function! g:PrintTheFuckingBuffer()"{{{ echo join(getline(1, 100000), "\n") echo "SOMETIMES I HATE YOU VIM" endfunction"}}} function! g:MoveUp()"{{{ call cursor(line('.') - 1, 0) endfunction"}}} function! g:MoveDown()"{{{ call cursor(line('.') + 1, 0) endfunction"}}}