# HG changeset patch # User Steve Losh # Date 1309473192 14400 # Node ID c0485a021571f5f210d881eaa48fd6213da5b3e3 # Parent d24125017d7f1c64e941b9fb671cabb2b4d9d265 Formatting. diff -r d24125017d7f -r c0485a021571 autoload/threesome.py --- a/autoload/threesome.py Thu Jun 30 18:20:25 2011 -0400 +++ b/autoload/threesome.py Thu Jun 30 18:33:12 2011 -0400 @@ -12,6 +12,7 @@ import threesomelib.init as threesome + # Wrapper functions ---------------------------------------------------------------- def ThreesomeInit(): diff -r d24125017d7f -r c0485a021571 autoload/threesome.vim --- a/autoload/threesome.vim Thu Jun 30 18:20:25 2011 -0400 +++ b/autoload/threesome.vim Thu Jun 30 18:33:12 2011 -0400 @@ -3,11 +3,9 @@ " Description: vim global plugin for resolving three-way merge conflicts " Maintainer: Steve Losh " License: MIT X11 -" Notes: Alpha. Not ready for real use yet. -" " ============================================================================ -"{{{ Init +" Init {{{ " Vim version check {{{ @@ -44,112 +42,112 @@ "}}} " Configuration variables {{{ -if !exists('g:threesome_disable') " {{{ +if !exists('g:threesome_disable') "{{{ let g:threesome_disable = 0 endif " }}} -if !exists('g:threesome_initial_mode') " {{{ +if !exists('g:threesome_initial_mode') "{{{ let g:threesome_initial_mode = 'grid' -endif " }}} -if !exists('g:threesome_initial_layout_grid') " {{{ +endif "}}} +if !exists('g:threesome_initial_layout_grid') "{{{ let g:threesome_initial_layout_grid = 0 -endif " }}} -if !exists('g:threesome_initial_layout_loupe') " {{{ +endif "}}} +if !exists('g:threesome_initial_layout_loupe') "{{{ let g:threesome_initial_layout_loupe = 0 -endif " }}} -if !exists('g:threesome_initial_layout_compare') " {{{ +endif "}}} +if !exists('g:threesome_initial_layout_compare') "{{{ let g:threesome_initial_layout_compare = 0 -endif " }}} -if !exists('g:threesome_initial_layout_path') " {{{ +endif "}}} +if !exists('g:threesome_initial_layout_path') "{{{ let g:threesome_initial_layout_path = 0 -endif " }}} -if !exists('g:threesome_initial_diff_grid') " {{{ +endif "}}} +if !exists('g:threesome_initial_diff_grid') "{{{ let g:threesome_initial_diff_grid = 0 -endif " }}} -if !exists('g:threesome_initial_diff_loupe') " {{{ +endif "}}} +if !exists('g:threesome_initial_diff_loupe') "{{{ let g:threesome_initial_diff_loupe = 0 -endif " }}} -if !exists('g:threesome_initial_diff_compare') " {{{ +endif "}}} +if !exists('g:threesome_initial_diff_compare') "{{{ let g:threesome_initial_diff_compare = 0 -endif " }}} -if !exists('g:threesome_initial_diff_path') " {{{ +endif "}}} +if !exists('g:threesome_initial_diff_path') "{{{ let g:threesome_initial_diff_path = 0 -endif " }}} -if !exists('g:threesome_initial_scrollbind_grid') " {{{ +endif "}}} +if !exists('g:threesome_initial_scrollbind_grid') "{{{ let g:threesome_initial_scrollbind_grid = 0 -endif " }}} -if !exists('g:threesome_initial_scrollbind_loupe') " {{{ +endif "}}} +if !exists('g:threesome_initial_scrollbind_loupe') "{{{ let g:threesome_initial_scrollbind_loupe = 0 -endif " }}} -if !exists('g:threesome_initial_scrollbind_compare') " {{{ +endif "}}} +if !exists('g:threesome_initial_scrollbind_compare') "{{{ let g:threesome_initial_scrollbind_compare = 0 -endif " }}} -if !exists('g:threesome_initial_scrollbind_path') " {{{ +endif "}}} +if !exists('g:threesome_initial_scrollbind_path') "{{{ let g:threesome_initial_scrollbind_path = 0 -endif " }}} +endif "}}} -"}}} +" }}} -"}}} -"{{{ Wrappers +" }}} +" Wrappers {{{ -function! threesome#ThreesomeInit()"{{{ +function! threesome#ThreesomeInit() "{{{ let python_module = fnameescape(globpath(&runtimepath, 'autoload/threesome.py')) exe 'pyfile ' . python_module python ThreesomeInit() -endfunction"}}} +endfunction "}}} -function! threesome#ThreesomeGrid()"{{{ +function! threesome#ThreesomeGrid() "{{{ python ThreesomeGrid() -endfunction"}}} -function! threesome#ThreesomeLoupe()"{{{ +endfunction "}}} +function! threesome#ThreesomeLoupe() "{{{ python ThreesomeLoupe() -endfunction"}}} -function! threesome#ThreesomeCompare()"{{{ +endfunction "}}} +function! threesome#ThreesomeCompare() "{{{ python ThreesomeCompare() -endfunction"}}} -function! threesome#ThreesomePath()"{{{ +endfunction "}}} +function! threesome#ThreesomePath() "{{{ python ThreesomePath() -endfunction"}}} +endfunction "}}} -function! threesome#ThreesomeOriginal()"{{{ +function! threesome#ThreesomeOriginal() "{{{ python ThreesomeOriginal() -endfunction"}}} -function! threesome#ThreesomeOne()"{{{ +endfunction "}}} +function! threesome#ThreesomeOne() "{{{ python ThreesomeOne() -endfunction"}}} -function! threesome#ThreesomeTwo()"{{{ +endfunction "}}} +function! threesome#ThreesomeTwo() "{{{ python ThreesomeTwo() -endfunction"}}} -function! threesome#ThreesomeResult()"{{{ +endfunction "}}} +function! threesome#ThreesomeResult() "{{{ python ThreesomeResult() -endfunction"}}} +endfunction "}}} -function! threesome#ThreesomeDiff()"{{{ +function! threesome#ThreesomeDiff() "{{{ python ThreesomeDiff() -endfunction"}}} -function! threesome#ThreesomeDiffoff()"{{{ +endfunction "}}} +function! threesome#ThreesomeDiffoff() "{{{ python ThreesomeDiffoff() -endfunction"}}} -function! threesome#ThreesomeScroll()"{{{ +endfunction "}}} +function! threesome#ThreesomeScroll() "{{{ python ThreesomeScroll() -endfunction"}}} -function! threesome#ThreesomeLayout()"{{{ +endfunction "}}} +function! threesome#ThreesomeLayout() "{{{ python ThreesomeLayout() -endfunction"}}} -function! threesome#ThreesomeNext()"{{{ +endfunction "}}} +function! threesome#ThreesomeNext() "{{{ python ThreesomeNext() -endfunction"}}} -function! threesome#ThreesomePrev()"{{{ +endfunction "}}} +function! threesome#ThreesomePrev() "{{{ python ThreesomePrev() -endfunction"}}} -function! threesome#ThreesomeUse()"{{{ +endfunction "}}} +function! threesome#ThreesomeUse() "{{{ python ThreesomeUse() -endfunction"}}} -function! threesome#ThreesomeUse1()"{{{ +endfunction "}}} +function! threesome#ThreesomeUse1() "{{{ python ThreesomeUse1() -endfunction"}}} -function! threesome#ThreesomeUse2()"{{{ +endfunction "}}} +function! threesome#ThreesomeUse2() "{{{ python ThreesomeUse2() -endfunction"}}} +endfunction "}}} -"}}} +" }}} diff -r d24125017d7f -r c0485a021571 autoload/threesomelib/util/io.py --- a/autoload/threesomelib/util/io.py Thu Jun 30 18:20:25 2011 -0400 +++ b/autoload/threesomelib/util/io.py Thu Jun 30 18:33:12 2011 -0400 @@ -2,4 +2,4 @@ def error(m): - sys.stdout.write(str(m) + '\n') + sys.stderr.write(str(m) + '\n') diff -r d24125017d7f -r c0485a021571 plugin/threesome.vim --- a/plugin/threesome.vim Thu Jun 30 18:20:25 2011 -0400 +++ b/plugin/threesome.vim Thu Jun 30 18:33:12 2011 -0400 @@ -3,8 +3,6 @@ " Description: vim global plugin for resolving three-way merge conflicts " Maintainer: Steve Losh " License: MIT X11 -" Notes: Alpha. Not ready for real use yet. -" " ============================================================================ " Init {{{ @@ -15,8 +13,7 @@ let loaded_threesome = 1 " }}} - -"{{{ Commands +" Commands {{{ command! -nargs=0 ThreesomeInit call threesome#ThreesomeInit() @@ -40,4 +37,4 @@ command! -nargs=0 ThreesomeUse1 call threesome#ThreesomeUse1() command! -nargs=0 ThreesomeUse2 call threesome#ThreesomeUse2() -"}}} +" }}}