Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Improved completions.

  • Loading branch information...
commit 1e9bb8d955f81c2bbab7183e85b890a76acb8c6a 1 parent 3995453
@Shougo authored
View
5 autoload/vimshell/commands/exe.vim
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: exe.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 07 Mar 2012.
+" Last Modified: 28 Mar 2012.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -95,6 +95,9 @@ function! s:command.execute(commands, context)"{{{
let b:vimshell.system_variables['status'] = b:interactive.status
endfunction"}}}
+function! s:command.complete(args)"{{{
+ return vimshell#complete#helper#command_args(a:args)
+endfunction"}}}
function! vimshell#commands#exe#define()
return s:command
View
5 autoload/vimshell/commands/gexe.vim
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: gexe.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 07 Mar 2012.
+" Last Modified: 28 Mar 2012.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -35,6 +35,9 @@ function! s:command.execute(args, context)"{{{
call vimproc#system_gui(command)
endfunction"}}}
+function! s:command.complete(args)"{{{
+ return vimshell#complete#helper#command_args(a:args)
+endfunction"}}}
function! vimshell#commands#gexe#define()
return s:command
View
8 autoload/vimshell/commands/iexe.vim
@@ -167,11 +167,13 @@ endfunction"}}}
function! s:command.complete(args)"{{{
if len(a:args) == 1
return vimshell#complete#helper#executables(a:args[-1])
- elseif vimshell#util#is_windows() && len(a:args) > 1 && a:args[1] == 'fakecygpty'
- return vimshell#complete#helper#executables(a:args[-1], g:vimshell_interactive_cygwin_path) :
+ elseif vimshell#util#is_windows() &&
+ \ len(a:args) > 1 && a:args[1] == 'fakecygpty'
+ return vimshell#complete#helper#executables(
+ \ a:args[-1], g:vimshell_interactive_cygwin_path) :
endif
- return []
+ return vimshell#complete#helper#files(a:args[-1])
endfunction"}}}
function! vimshell#commands#iexe#define()
View
2  autoload/vimshell/commands/less.vim
@@ -75,7 +75,7 @@ function! s:command.execute(commands, context)"{{{
return s:init(a:commands, a:context, options, interactive)
endfunction"}}}
function! s:command.complete(args)"{{{
- return vimshell#complete#helper#command_args(a:args)
+ return vimshell#complete#helper#command_args(a:args)
endfunction"}}}
function! vimshell#commands#less#define()
View
3  autoload/vimshell/commands/texe.vim
@@ -163,7 +163,8 @@ function! s:command.execute(commands, context)"{{{
endfunction"}}}
function! s:command.complete(args)"{{{
return vimshell#util#is_windows() ?
- \ vimshell#complete#helper#executables(a:args[-1], g:vimshell_interactive_cygwin_path) :
+ \ vimshell#complete#helper#executables(a:args[-1],
+ \ g:vimshell_interactive_cygwin_path) :
\ vimshell#complete#helper#executables(a:args[-1])
endfunction"}}}
View
7 autoload/vimshell/commands/whereis.vim
@@ -39,6 +39,13 @@ function! s:command.execute(args, context)"{{{
call vimshell#print_line(a:context.fd, arg)
endfor
endfunction"}}}
+function! s:command.complete(args)"{{{
+ if len(a:args) == 1
+ return vimshell#complete#helper#executables(a:args[-1])
+ endif
+
+ return []
+endfunction"}}}
function! vimshell#commands#whereis#define()
return s:command
View
1  doc/vimshell.txt
@@ -1287,6 +1287,7 @@ CHANGELOG *vimshell-changelog*
- Fixed for ipython.
- Supported ipython in Windows.
- Silent edit.
+- Improved completions.
2012-03-26
- Implemented variables completion.
Please sign in to comment.
Something went wrong with that request. Please try again.