Changeset 34557 for dotfiles/vim
- Timestamp:
- 07/23/09 11:37:17 (4 years ago)
- Location:
- dotfiles/vim/from_kyushu/.vim
- Files:
-
- 1 added
- 4 modified
-
autoload/neocomplcache.vim (modified) (7 diffs)
-
autoload/neocomplcache/snippets_complete.vim (modified) (3 diffs)
-
autoload/proc.so (added)
-
autoload/proc.vim (modified) (7 diffs)
-
plugin/neocomplcache.vim (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotfiles/vim/from_kyushu/.vim/autoload/neocomplcache.vim
r34002 r34557 2 2 " FILE: neocomplcache.vim 3 3 " AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> 4 " Last Modified: 14 Jun 20094 " Last Modified: 24 Jun 2009 5 5 " Usage: Just source this file. 6 6 " License: MIT license {{{ … … 24 24 " SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 25 " }}} 26 " Version: 2.6 0, for Vim 7.026 " Version: 2.61, for Vim 7.0 27 27 "============================================================================= 28 28 … … 44 44 let s:cur_keyword_pos = -1 45 45 46 if g:NeoComplCache_EnableSkipCompletion 47 let s:prev_input_time = reltime() 48 endif 46 let s:prev_input_time = reltime() 49 47 "}}} 50 48 … … 77 75 call s:set_keyword_pattern('tex', 78 76 \'\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', 80 78 \'\v\$\w+|[[:alpha:]_.-][[:alnum:]_.-]*%(\s*[[(])?') 79 call s:set_keyword_pattern('vimshell', 80 \'\v\$\$?\w*|[[:alpha:]_.-][[:alnum:]_.-]*%(\s*[[(])?') 81 81 call s:set_keyword_pattern('ps1', 82 82 \'\v\$\w+|[[:alpha:]_.-][[:alnum:]_.-]*%(\s*\(\)?)?') … … 400 400 " Complete internal functions."{{{ 401 401 function! 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 402 416 if s:skip_next_complete 403 417 let s:skip_next_complete = 0 … … 460 474 endif 461 475 476 let s:prev_input_time = reltime() 462 477 return 463 478 endif … … 490 505 if l:cur_keyword_pos < 0 || len(l:cur_keyword_str) < g:NeoComplCache_KeywordCompletionStartLength 491 506 return 492 endif493 494 if g:NeoComplCache_EnableSkipCompletion495 if split(reltimestr(reltime(s:prev_input_time)))[0] < g:NeoComplCache_SkipInputTime496 echo 'Skipped auto completion'497 let s:skipped = 1498 499 return 1500 else501 echo ''502 redraw503 endif504 let s:prev_input_time = reltime()505 507 endif 506 508 -
dotfiles/vim/from_kyushu/.vim/autoload/neocomplcache/snippets_complete.vim
r33998 r34557 2 2 " FILE: snippets_complete.vim 3 3 " AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> 4 " Last Modified: 30 May20094 " Last Modified: 17 Jun 2009 5 5 " Usage: Just source this file. 6 6 " License: MIT license {{{ … … 24 24 " SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 25 " }}} 26 " Version: 1.1 6, for Vim 7.026 " Version: 1.17, for Vim 7.0 27 27 "----------------------------------------------------------------------------- 28 28 " ChangeLog: "{{{ 29 " 1.17: 30 " - Fixed ATOK X3 on when snippets expanded. 31 " 29 32 " 1.16: 30 33 " - Fixed add rank bug. … … 349 352 " Return. 350 353 call setpos('.', [0, line('.'), l:match, 0]) 354 if has('multi_byte_ime') 355 let &l:iminsert = 0 356 endif 351 357 silent execute "normal! a\<CR>" 352 358 -
dotfiles/vim/from_kyushu/.vim/autoload/proc.vim
r34001 r34557 1 " 200 6-08-191 " 2009-05-26 2 2 3 3 scriptencoding utf-8 … … 53 53 54 54 function! 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) 56 56 let proc = {} 57 57 let proc.pid = pid … … 62 62 63 63 function! 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) 65 65 let proc = {} 66 66 let proc.pid = pid … … 88 88 89 89 function! 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) 91 91 92 92 let proc = self.fdopen(fd, self.api.vp_pty_close, self.api.vp_pty_read, self.api.vp_pty_write) … … 95 95 return proc 96 96 endfunction 97 97 98 98 99 … … 127 128 endfunction 128 129 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 158 131 159 132 "----------------------------------------------------------- … … 238 211 function! s:lib.api.vp_pipe_open(npipe, argv) 239 212 if has("win32") 240 let cmdline = ''213 let cmdline = "" 241 214 for arg in a:argv 242 let cmdline .= '"' . substitute(arg, '"', ' \\"', 'g') . '" '215 let cmdline .= '"' . substitute(arg, '"', '""', 'g') . '" ' 243 216 endfor 244 217 let [pid; fdlist] = self.libcall("vp_pipe_open", [a:npipe, cmdline]) -
dotfiles/vim/from_kyushu/.vim/plugin/neocomplcache.vim
r34002 r34557 2 2 " FILE: neocomplcache.vim 3 3 " AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> 4 " Last Modified: 1 4Jun 20094 " Last Modified: 17 Jun 2009 5 5 " Usage: Just source this file. 6 6 " License: MIT license {{{ … … 24 24 " SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 25 " }}} 26 " Version: 2.6 0, for Vim 7.026 " Version: 2.61, for Vim 7.0 27 27 "----------------------------------------------------------------------------- 28 28 " ChangeLog: "{{{ 29 29 " ChangeLog NeoComplCache2: "{{{ 30 " 2.61: 31 " - Fixed ATOK X3 on when snippets expanded. 32 " - Improved vimshell syntax. 33 " - Improved skip completion. 34 " 30 35 " 2.60: Improved filename completion. 31 36 " - Improved long filename view.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)