Changeset 34557 for dotfiles/vim

Show
Ignore:
Timestamp:
07/23/09 11:37:17 (4 years ago)
Author:
from_kyushu
Message:

update NeoComplCache?

Location:
dotfiles/vim/from_kyushu/.vim
Files:
1 added
4 modified

Legend:

Unmodified
Added
Removed
  • dotfiles/vim/from_kyushu/.vim/autoload/neocomplcache.vim

    r34002 r34557  
    22" FILE: neocomplcache.vim 
    33" AUTHOR:  Shougo Matsushita <Shougo.Matsu@gmail.com> 
    4 " Last Modified: 14 Jun 2009 
     4" Last Modified: 24 Jun 2009 
    55" Usage: Just source this file. 
    66" License: MIT license  {{{ 
     
    2424"     SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
    2525" }}} 
    26 " Version: 2.60, for Vim 7.0 
     26" Version: 2.61, for Vim 7.0 
    2727"============================================================================= 
    2828 
     
    4444    let s:cur_keyword_pos = -1 
    4545 
    46     if g:NeoComplCache_EnableSkipCompletion 
    47         let s:prev_input_time = reltime() 
    48     endif 
     46    let s:prev_input_time = reltime() 
    4947    "}}} 
    5048     
     
    7775    call s:set_keyword_pattern('tex', 
    7876                \'\v\\\a\{\a{1,2}\}?|\\[[:alpha:]@]+[[{]?|\a[[:alnum:]]*[*[{]?') 
    79     call s:set_keyword_pattern('sh,zsh,vimshell', 
     77    call s:set_keyword_pattern('sh,zsh', 
    8078                \'\v\$\w+|[[:alpha:]_.-][[:alnum:]_.-]*%(\s*[[(])?') 
     79    call s:set_keyword_pattern('vimshell', 
     80                \'\v\$\$?\w*|[[:alpha:]_.-][[:alnum:]_.-]*%(\s*[[(])?') 
    8181    call s:set_keyword_pattern('ps1', 
    8282                \'\v\$\w+|[[:alpha:]_.-][[:alnum:]_.-]*%(\s*\(\)?)?') 
     
    400400" Complete internal functions."{{{ 
    401401function! s:complete()"{{{ 
     402    if g:NeoComplCache_EnableSkipCompletion 
     403        if split(reltimestr(reltime(s:prev_input_time)))[0] < g:NeoComplCache_SkipInputTime 
     404            echo 'Skipped auto completion' 
     405            let s:skipped = 1 
     406 
     407            let s:prev_input_time = reltime() 
     408            return 
     409        endif 
     410 
     411        echo '' 
     412        redraw 
     413        let s:prev_input_time = reltime() 
     414    endif 
     415 
    402416    if s:skip_next_complete 
    403417        let s:skip_next_complete = 0 
     
    460474            endif 
    461475 
     476            let s:prev_input_time = reltime() 
    462477            return 
    463478        endif 
     
    490505    if l:cur_keyword_pos < 0 || len(l:cur_keyword_str) < g:NeoComplCache_KeywordCompletionStartLength 
    491506        return 
    492     endif 
    493  
    494     if g:NeoComplCache_EnableSkipCompletion 
    495         if split(reltimestr(reltime(s:prev_input_time)))[0] < g:NeoComplCache_SkipInputTime 
    496             echo 'Skipped auto completion' 
    497             let s:skipped = 1 
    498  
    499             return 1 
    500         else 
    501             echo '' 
    502             redraw 
    503         endif 
    504         let s:prev_input_time = reltime() 
    505507    endif 
    506508 
  • dotfiles/vim/from_kyushu/.vim/autoload/neocomplcache/snippets_complete.vim

    r33998 r34557  
    22" FILE: snippets_complete.vim 
    33" AUTHOR:  Shougo Matsushita <Shougo.Matsu@gmail.com> 
    4 " Last Modified: 30 May 2009 
     4" Last Modified: 17 Jun 2009 
    55" Usage: Just source this file. 
    66" License: MIT license  {{{ 
     
    2424"     SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
    2525" }}} 
    26 " Version: 1.16, for Vim 7.0 
     26" Version: 1.17, for Vim 7.0 
    2727"----------------------------------------------------------------------------- 
    2828" ChangeLog: "{{{ 
     29"   1.17: 
     30"    - Fixed ATOK X3 on when snippets expanded. 
     31" 
    2932"   1.16: 
    3033"    - Fixed add rank bug. 
     
    349352        " Return. 
    350353        call setpos('.', [0, line('.'), l:match, 0]) 
     354        if has('multi_byte_ime') 
     355            let &l:iminsert = 0 
     356        endif 
    351357        silent execute "normal! a\<CR>" 
    352358 
  • dotfiles/vim/from_kyushu/.vim/autoload/proc.vim

    r34001 r34557  
    1 " 2006-08-19 
     1" 2009-05-26 
    22 
    33scriptencoding utf-8 
     
    5353 
    5454function! s:lib.popen2(args) 
    55   let [pid, fd_stdin, fd_stdout] = self.api.vp_pipe_open(2, s:getfilename(a:args)) 
     55  let [pid, fd_stdin, fd_stdout] = self.api.vp_pipe_open(2, a:args) 
    5656  let proc = {} 
    5757  let proc.pid = pid 
     
    6262 
    6363function! s:lib.popen3(args) 
    64   let [pid, fd_stdin, fd_stdout, fd_stderr] = self.api.vp_pipe_open(3, s:getfilename(a:args)) 
     64  let [pid, fd_stdin, fd_stdout, fd_stderr] = self.api.vp_pipe_open(3, a:args) 
    6565  let proc = {} 
    6666  let proc.pid = pid 
     
    8888 
    8989function! s:lib.ptyopen(args) 
    90   let [pid, fd, ttyname] = self.api.vp_pty_open(&winwidth, &winheight, s:getfilename(a:args)) 
     90  let [pid, fd, ttyname] = self.api.vp_pty_open(&winwidth, &winheight, a:args) 
    9191 
    9292  let proc =  self.fdopen(fd, self.api.vp_pty_close, self.api.vp_pty_read, self.api.vp_pty_write) 
     
    9595  return proc 
    9696endfunction 
     97 
    9798 
    9899 
     
    127128endfunction 
    128129 
    129 function! s:getfilename(args) 
    130     let l:PATH_SEPARATOR = (has('win32') || has('win64')) ? '/\\' : '/' 
    131     let l:pattern = printf('[/~]\?\f\+[%s]\f*$', l:PATH_SEPARATOR) 
    132     if a:args[0] =~ l:pattern 
    133         let l:args = a:args 
    134     else 
    135         " Command search. 
    136         if has('win32') || has('win64') 
    137             let l:path = substitute($PATH, '\\\?;', ',', 'g') 
    138             for ext in ['', '.bat', '.cmd', '.exe'] 
    139                 let l:files = globpath(l:path, a:args[0].ext) 
    140                 if !empty(l:files) 
    141                     break 
    142                 endif 
    143             endfor 
    144             let l:args = insert(a:args[1:], split(l:files, '\n')[0]) 
    145         else 
    146             let l:path = substitute($PATH, '/\?:', ',', 'g') 
    147             let l:args = insert(a:args[1:], split(globpath(l:path, a:args[0]), '\n')[0]) 
    148         endif 
    149     endif 
    150  
    151     " Convert encoding for system(). 
    152     if has('win32') || has('win64') 
    153         return map(l:args, "iconv(v:val, &encoding, 'cp932')") 
    154     else 
    155         return map(l:args, "iconv(v:val, &encoding, 'utf-8')") 
    156     endif 
    157 endfunction 
     130 
    158131 
    159132"----------------------------------------------------------- 
     
    238211function! s:lib.api.vp_pipe_open(npipe, argv) 
    239212  if has("win32") 
    240     let cmdline = '' 
     213    let cmdline = "" 
    241214    for arg in a:argv 
    242       let cmdline .= '"' . substitute(arg, '"', '\\"', 'g') . '" ' 
     215      let cmdline .= '"' . substitute(arg, '"', '""', 'g') . '" ' 
    243216    endfor 
    244217    let [pid; fdlist] = self.libcall("vp_pipe_open", [a:npipe, cmdline]) 
  • dotfiles/vim/from_kyushu/.vim/plugin/neocomplcache.vim

    r34002 r34557  
    22" FILE: neocomplcache.vim 
    33" AUTHOR:  Shougo Matsushita <Shougo.Matsu@gmail.com> 
    4 " Last Modified: 14 Jun 2009 
     4" Last Modified: 17 Jun 2009 
    55" Usage: Just source this file. 
    66" License: MIT license  {{{ 
     
    2424"     SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
    2525" }}} 
    26 " Version: 2.60, for Vim 7.0 
     26" Version: 2.61, for Vim 7.0 
    2727"----------------------------------------------------------------------------- 
    2828" ChangeLog: "{{{ 
    2929" ChangeLog NeoComplCache2: "{{{ 
     30"   2.61: 
     31"    - Fixed ATOK X3 on when snippets expanded. 
     32"    - Improved vimshell syntax. 
     33"    - Improved skip completion. 
     34" 
    3035"   2.60: Improved filename completion. 
    3136"    - Improved long filename view.