Show
Ignore:
Timestamp:
01/17/08 01:28:00 (10 months ago)
Author:
kana
Message:

lang/vim/scratch:
* vim/dot.vim/autoload/scratch.vim:

  • scratch#open(): Modify not to use g:scratch_show_command to avoid showing
    the scratch buffer in two windows.
  • scratch#evaluate(): Modify to accept line-continuation in script.

* vim/dot.vim/doc/scratch.txt:

  • Update for the above changes.

* Mark as version 0.1+.

Location:
lang/vim/scratch/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/vim/scratch/trunk/autoload/scratch.vim

    r3578 r4730  
    11" scratch.vim - Emacs like scratch buffer. 
    2 " Version: 0.1 
     2" Version: 0.1+ 
    33" Copyright: Copyright (C) 2007 kana <http://nicht.s8.xrea.com/> 
    44" License: MIT license (see <http://www.opensource.org/licenses/mit-license>) 
     
    5454    let winnr = bufwinnr(s:bufnr) 
    5555    if winnr == -1  " The scratch buffer is not visible. 
    56       execute g:scratch_show_command s:bufnr 
     56      if bufname('')=='' && (!&l:modified) && tabpagewinnr(tabpagenr(),'$')==1 
     57        " The current tab is "empty", so don't use g:scratch_show_command to 
     58        " avoid show the scratch buffer in two windows. 
     59        execute 'buffer' s:bufnr 
     60      else 
     61        execute g:scratch_show_command s:bufnr 
     62      endif 
    5763    else 
    5864      execute winnr 'wincmd w' 
     
    107113 
    108114  " Evaluate it. 
    109   execute script 
     115  execute substitute(script, '\n\s*\\', '', 'g') 
    110116 
    111117  if a:adjust_cursorp 
  • lang/vim/scratch/trunk/doc/scratch.txt

    r3578 r4730  
    11*scratch.txt*   Emacs like scratch buffer. 
    22 
    3 Version 0.1 
     3Version 0.1+ 
    44Copyright (C) 2007 kana <http://nicht.s8.xrea.com/> 
    55License: MIT license (see <http://www.opensource.org/licenses/mit-license>) 
     
    187187CHANGELOG                                       *scratch-changelog* 
    188188 
     1890.1+    2008-01-13T00:47:42+09:00 
     190        - Modify |:ScratchEvaluate| to accept |line-continuation|. 
     191        - scratch#open(): Modify not to use g:scratch_show_command in some 
     192          cases to avoid showing the scratch buffer in two windows. 
     193 
    1891940.1     2007-12-25T03:57:18+09:00 
    190195        - Rewrote. 
  • lang/vim/scratch/trunk/plugin/scratch.vim

    r3578 r4730  
    11" scratch.vim - Emacs like scratch buffer. 
    2 " Version: 0.1 
     2" Version: 0.1+ 
    33" Copyright: Copyright (C) 2007 kana <http://nicht.s8.xrea.com/> 
    44" License: MIT license (see <http://www.opensource.org/licenses/mit-license>)