Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Converted marker.

  • Loading branch information...
commit 33a4f810d746e6247557accda02a5f8b61e90ffe 1 parent 0ee04c0
@Shougo authored
Showing with 423 additions and 423 deletions.
  1. +7 −7 autoload/neocomplcache/sources/vimshell_complete.vim
  2. +7 −7 autoload/unite/kinds/vimshell_history.vim
  3. +2 −2 autoload/unite/sources/vimshell_external_history.vim
  4. +2 −2 autoload/unite/sources/vimshell_history.vim
  5. +2 −2 autoload/unite/sources/vimshell_zsh_complete.vim
  6. +81 −81 autoload/vimshell.vim
  7. +1 −1  autoload/vimshell/altercmd.vim
  8. +1 −1  autoload/vimshell/commands/alias.vim
  9. +6 −6 autoload/vimshell/commands/bg.vim
  10. +2 −2 autoload/vimshell/commands/build.vim
  11. +2 −2 autoload/vimshell/commands/cd.vim
  12. +1 −1  autoload/vimshell/commands/dirs.vim
  13. +1 −1  autoload/vimshell/commands/echo.vim
  14. +1 −1  autoload/vimshell/commands/eval.vim
  15. +3 −3 autoload/vimshell/commands/exe.vim
  16. +1 −1  autoload/vimshell/commands/exit.vim
  17. +1 −1  autoload/vimshell/commands/galias.vim
  18. +1 −1  autoload/vimshell/commands/gcd.vim
  19. +1 −1  autoload/vimshell/commands/gendoc.vim
  20. +2 −2 autoload/vimshell/commands/gexe.vim
  21. +1 −1  autoload/vimshell/commands/h.vim
  22. +1 −1  autoload/vimshell/commands/histdel.vim
  23. +1 −1  autoload/vimshell/commands/history.vim
  24. +8 −8 autoload/vimshell/commands/iexe.vim
  25. +8 −8 autoload/vimshell/commands/less.vim
  26. +1 −1  autoload/vimshell/commands/let.vim
  27. +1 −1  autoload/vimshell/commands/ls.vim
  28. +1 −1  autoload/vimshell/commands/mkcd.vim
  29. +1 −1  autoload/vimshell/commands/open.vim
  30. +2 −2 autoload/vimshell/commands/popd.vim
  31. +1 −1  autoload/vimshell/commands/pwd.vim
  32. +1 −1  autoload/vimshell/commands/repeat.vim
  33. +1 −1  autoload/vimshell/commands/scp.vim
  34. +1 −1  autoload/vimshell/commands/sexe.vim
  35. +1 −1  autoload/vimshell/commands/shell.vim
  36. +1 −1  autoload/vimshell/commands/source.vim
  37. +1 −1  autoload/vimshell/commands/source_shellcmd.vim
  38. +1 −1  autoload/vimshell/commands/ssh.vim
  39. +2 −2 autoload/vimshell/commands/sudo.vim
  40. +7 −7 autoload/vimshell/commands/texe.vim
  41. +1 −1  autoload/vimshell/commands/time.vim
  42. +1 −1  autoload/vimshell/commands/vexe.vim
  43. +1 −1  autoload/vimshell/commands/view.vim
  44. +1 −1  autoload/vimshell/commands/vim.vim
  45. +1 −1  autoload/vimshell/commands/vimdiff.vim
  46. +1 −1  autoload/vimshell/commands/vimsh.vim
  47. +2 −2 autoload/vimshell/commands/whereis.vim
  48. +1 −1  autoload/vimshell/commands/which.vim
  49. +2 −2 autoload/vimshell/complete.vim
  50. +16 −16 autoload/vimshell/complete/helper.vim
  51. +6 −6 autoload/vimshell/help.vim
  52. +4 −4 autoload/vimshell/history.vim
  53. +6 −6 autoload/vimshell/hook.vim
  54. +18 −18 autoload/vimshell/int_mappings.vim
  55. +32 −32 autoload/vimshell/interactive.vim
  56. +31 −31 autoload/vimshell/mappings.vim
  57. +6 −6 autoload/vimshell/term_mappings.vim
  58. +66 −66 autoload/vimshell/terminal.vim
  59. +24 −24 autoload/vimshell/util.vim
  60. +23 −23 autoload/vital/_f54ec40/prelude.vim
  61. +3 −3 ftplugin/int-earthquake.vim
  62. +8 −8 plugin/vimshell.vim
  63. +1 −1  syntax/int-earthquake.vim
  64. +1 −1  syntax/int-termtter.vim
View
14 autoload/neocomplcache/sources/vimshell_complete.vim
@@ -27,7 +27,7 @@
let s:save_cpo = &cpo
set cpo&vim
-function! neocomplcache#sources#vimshell_complete#define()"{{{
+function! neocomplcache#sources#vimshell_complete#define() "{{{
return s:source
endfunction"}}}
@@ -37,13 +37,13 @@ let s:source = {
\ 'filetypes' : { 'vimshell' : 1, },
\}
-function! s:source.initialize()"{{{
+function! s:source.initialize() "{{{
" Initialize.
call neocomplcache#set_completion_length('vimshell_complete',
\ g:neocomplcache_auto_completion_start_length)
endfunction"}}}
-function! s:source.get_keyword_pos(cur_text)"{{{
+function! s:source.get_keyword_pos(cur_text) "{{{
if !vimshell#check_prompt()
" Ignore.
return -1
@@ -74,7 +74,7 @@ function! s:source.get_keyword_pos(cur_text)"{{{
return pos
endfunction"}}}
-function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)"{{{
+function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) "{{{
try
let args = vimshell#get_current_args(vimshell#get_cur_text())
catch /^Exception:/
@@ -92,7 +92,7 @@ function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)"{{{
return s:get_omni_list(_)
endfunction"}}}
-function! s:get_complete_commands(cur_keyword_str)"{{{
+function! s:get_complete_commands(cur_keyword_str) "{{{
if a:cur_keyword_str =~ '/'
" Filename completion.
return vimshell#complete#helper#files(a:cur_keyword_str)
@@ -118,7 +118,7 @@ function! s:get_complete_commands(cur_keyword_str)"{{{
return _
endfunction"}}}
-function! s:get_complete_args(cur_keyword_str, args)"{{{
+function! s:get_complete_args(cur_keyword_str, args) "{{{
" Get command name.
let command = fnamemodify(a:args[0], ':t:r')
@@ -127,7 +127,7 @@ function! s:get_complete_args(cur_keyword_str, args)"{{{
return vimshell#complete#helper#args(command, a:args[1:])
endfunction"}}}
-function! s:get_omni_list(list)"{{{
+function! s:get_omni_list(list) "{{{
let omni_list = []
" Convert string list.
View
14 autoload/unite/kinds/vimshell_history.vim
@@ -27,7 +27,7 @@
let s:save_cpo = &cpo
set cpo&vim
-function! unite#kinds#vimshell_history#define()"{{{
+function! unite#kinds#vimshell_history#define() "{{{
return s:kind
endfunction"}}}
@@ -39,14 +39,14 @@ let s:kind = {
\ 'parents': ['completion'],
\}
-" Actions"{{{
+" Actions "{{{
let s:kind.action_table.delete = {
\ 'description' : 'delete from vimshell history',
\ 'is_invalidate_cache' : 1,
\ 'is_quit' : 0,
\ 'is_selectable' : 1,
\ }
-function! s:kind.action_table.delete.func(candidates)"{{{
+function! s:kind.action_table.delete.func(candidates) "{{{
let current_histories =
\ a:candidates[0].action__current_histories
for candidate in a:candidates
@@ -64,7 +64,7 @@ let s:kind.action_table.edit = {
\ 'is_invalidate_cache' : 1,
\ 'is_quit' : 0,
\ }
-function! s:kind.action_table.edit.func(candidate)"{{{
+function! s:kind.action_table.edit.func(candidate) "{{{
let current_histories =
\ a:candidate.action__current_histories
let history = input('Please edit history: ',
@@ -83,7 +83,7 @@ let s:kind.action_table.execute = {
\ 'description' : 'execute history',
\ 'is_selectable' : 1,
\ }
-function! s:kind.action_table.execute.func(candidates)"{{{
+function! s:kind.action_table.execute.func(candidates) "{{{
let candidate = deepcopy(a:candidates[0])
let candidate.action__complete_word =
\ join(map(copy(a:candidates), 'v:val.action__complete_word'), '; ')
@@ -95,7 +95,7 @@ endfunction"}}}
let s:kind.action_table.insert = {
\ 'description' : 'insert history',
\ }
-function! s:kind.action_table.insert.func(candidate)"{{{
+function! s:kind.action_table.insert.func(candidate) "{{{
if !vimshell#check_prompt()
call vimshell#echo_error('Not in command line.')
return
@@ -115,7 +115,7 @@ let s:kind.action_table.unite__new_candidate = {
\ 'is_invalidate_cache' : 1,
\ 'is_quit' : 0,
\ }
-function! s:kind.action_table.unite__new_candidate.func(candidate)"{{{
+function! s:kind.action_table.unite__new_candidate.func(candidate) "{{{
let current_histories =
\ a:candidate.action__current_histories
let history = input('Please input new history: ',
View
4 autoload/unite/sources/vimshell_external_history.vim
@@ -55,12 +55,12 @@ function! s:source.hooks.on_init(args, context) "{{{
\"^\\%(\\d\\+/\\)\\+[:[:digit:]; ]\\+\\|^[:[:digit:]; ]\\+", "", "g")')
let a:context.source__cur_keyword_pos = len(vimshell#get_prompt())
endfunction"}}}
-function! s:source.hooks.on_syntax(args, context)"{{{
+function! s:source.hooks.on_syntax(args, context) "{{{
syntax match uniteSource__VimshellHistorySpaces />-*\ze\s*$/
\ containedin=uniteSource__VimshellHistory
highlight default link uniteSource__VimshellHistorySpaces Comment
endfunction"}}}
-function! s:source.hooks.on_post_filter(args, context)"{{{
+function! s:source.hooks.on_post_filter(args, context) "{{{
let cnt = 0
for candidate in a:context.candidates
View
4 autoload/unite/sources/vimshell_history.vim
@@ -45,7 +45,7 @@ function! s:source.hooks.on_init(args, context) "{{{
\ vimshell#history#read())
let a:context.source__cur_keyword_pos = len(vimshell#get_prompt())
endfunction"}}}
-function! s:source.hooks.on_syntax(args, context)"{{{
+function! s:source.hooks.on_syntax(args, context) "{{{
syntax match uniteSource__VimshellHistorySpaces />-*\ze\s*$/
\ containedin=uniteSource__VimshellHistory
highlight default link uniteSource__VimshellHistorySpaces Comment
@@ -56,7 +56,7 @@ function! s:source.hooks.on_close(args, context) "{{{
call vimshell#history#write(s:current_histories)
endif
endfunction"}}}
-function! s:source.hooks.on_post_filter(args, context)"{{{
+function! s:source.hooks.on_post_filter(args, context) "{{{
let cnt = 0
for candidate in a:context.candidates
View
4 autoload/unite/sources/vimshell_zsh_complete.vim
@@ -62,7 +62,7 @@ function! s:source.hooks.on_init(args, context) "{{{
let a:context.source__cur_keyword_pos = pos
endfunction"}}}
-function! s:source.hooks.on_syntax(args, context)"{{{
+function! s:source.hooks.on_syntax(args, context) "{{{
syntax match uniteSource__VimshellZshCompleteDescriptionLine / -- .*$/
\ contained containedin=uniteSource__VimshellZshComplete
syntax match uniteSource__VimshellZshCompleteDescription /.*$/
@@ -77,7 +77,7 @@ function! s:source.hooks.on_close(args, context) "{{{
call a:context.source__proc.waitpid()
endif
endfunction"}}}
-function! s:source.hooks.on_post_filter(args, context)"{{{
+function! s:source.hooks.on_post_filter(args, context) "{{{
for candidate in a:context.candidates
let candidate.kind = 'completion'
let candidate.action__complete_word = candidate.word
View
162 autoload/vimshell.vim
@@ -28,15 +28,15 @@ if !exists('g:loaded_vimshell')
runtime! plugin/vimshell.vim
endif
-function! vimshell#version()"{{{
+function! vimshell#version() "{{{
return '902'
endfunction"}}}
-function! vimshell#echo_error(string)"{{{
+function! vimshell#echo_error(string) "{{{
echohl Error | echo a:string | echohl None
endfunction"}}}
-" Check vimproc."{{{
+" Check vimproc. "{{{
if !vimshell#util#has_vimproc()
call vimshell#echo_error(v:errmsg)
call vimshell#echo_error(v:exception)
@@ -51,7 +51,7 @@ if vimproc#version() < 600
finish
endif"}}}
-" Initialize."{{{
+" Initialize. "{{{
if !exists('g:vimshell_execute_file_list')
let g:vimshell_execute_file_list = {}
endif
@@ -74,16 +74,16 @@ call s:manager.config('opener', 'silent edit')
call s:manager.config('range', 'current')
"}}}
-function! vimshell#head_match(checkstr, headstr)"{{{
+function! vimshell#head_match(checkstr, headstr) "{{{
return stridx(a:checkstr, a:headstr) == 0
endfunction"}}}
-function! vimshell#tail_match(checkstr, tailstr)"{{{
+function! vimshell#tail_match(checkstr, tailstr) "{{{
return a:tailstr == '' || a:checkstr ==# a:tailstr
\|| a:checkstr[: -len(a:tailstr)-1] ==# a:tailstr
endfunction"}}}
" User utility functions.
-function! s:default_settings()"{{{
+function! s:default_settings() "{{{
" Common.
setlocal bufhidden=hide
setlocal buftype=nofile
@@ -121,12 +121,12 @@ function! s:default_settings()"{{{
" Define mappings.
call vimshell#mappings#define_default_mappings()
endfunction"}}}
-function! vimshell#set_dictionary_helper(variable, keys, value)"{{{
+function! vimshell#set_dictionary_helper(variable, keys, value) "{{{
return vimshell#util#set_default_dictionary_helper(a:variable, a:keys, a:value)
endfunction"}}}
-" vimshell plugin utility functions."{{{
-function! vimshell#start(path, ...)"{{{
+" vimshell plugin utility functions. "{{{
+function! vimshell#start(path, ...) "{{{
if vimshell#util#is_cmdwin()
call vimshell#echo_error(
\ '[vimshell] Command line buffer is detected!')
@@ -135,7 +135,7 @@ function! vimshell#start(path, ...)"{{{
return
endif
- " Detect autochdir option."{{{
+ " Detect autochdir option. "{{{
if exists('+autochdir') && &autochdir
call vimshell#echo_error(
\ '[vimshell] Detected autochdir!')
@@ -183,7 +183,7 @@ function! vimshell#start(path, ...)"{{{
" Create shell buffer.
call s:create_shell(path, context)
endfunction"}}}
-function! s:create_shell(path, context)"{{{
+function! s:create_shell(path, context) "{{{
let path = a:path
if path == ''
" Use current directory.
@@ -227,7 +227,7 @@ function! s:create_shell(path, context)"{{{
call vimshell#start_insert()
- " Check prompt value."{{{
+ " Check prompt value. "{{{
if vimshell#head_match(vimshell#get_prompt(), vimshell#get_secondary_prompt())
\ || vimshell#head_match(vimshell#get_secondary_prompt(), vimshell#get_prompt())
call vimshell#echo_error(printf('Head matched g:vimshell_prompt("%s")'.
@@ -248,10 +248,10 @@ function! s:create_shell(path, context)"{{{
endif"}}}
endfunction"}}}
-function! vimshell#get_options()"{{{
+function! vimshell#get_options() "{{{
return copy(s:vimshell_options)
endfunction"}}}
-function! vimshell#close(buffer_name)"{{{
+function! vimshell#close(buffer_name) "{{{
let buffer_name = a:buffer_name
if buffer_name !~ '@\d\+$'
" Add postfix.
@@ -279,13 +279,13 @@ function! vimshell#close(buffer_name)"{{{
return quit_winnr > 0
endfunction"}}}
-function! vimshell#available_commands(...)"{{{
+function! vimshell#available_commands(...) "{{{
let command = get(a:000, 0, '')
call s:initialize_internal_commands(command)
return s:internal_commands
endfunction"}}}
-function! vimshell#execute_internal_command(command, args, context)"{{{
+function! vimshell#execute_internal_command(command, args, context) "{{{
if !has_key(s:internal_commands, a:command)
call s:initialize_internal_commands(a:command)
endif
@@ -316,7 +316,7 @@ function! vimshell#execute_internal_command(command, args, context)"{{{
return internal.execute(a:args, context)
endif
endfunction"}}}
-function! vimshell#read(fd)"{{{
+function! vimshell#read(fd) "{{{
if empty(a:fd) || a:fd.stdin == ''
return ''
endif
@@ -337,16 +337,16 @@ function! vimshell#read(fd)"{{{
endif
endif
endfunction"}}}
-function! vimshell#print(fd, string)"{{{
+function! vimshell#print(fd, string) "{{{
return vimshell#interactive#print_buffer(a:fd, a:string)
endfunction"}}}
-function! vimshell#print_line(fd, string)"{{{
+function! vimshell#print_line(fd, string) "{{{
return vimshell#interactive#print_buffer(a:fd, a:string . "\n")
endfunction"}}}
-function! vimshell#error_line(fd, string)"{{{
+function! vimshell#error_line(fd, string) "{{{
return vimshell#interactive#error_buffer(a:fd, a:string . "\n")
endfunction"}}}
-function! vimshell#print_prompt(...)"{{{
+function! vimshell#print_prompt(...) "{{{
if &filetype !=# 'vimshell' || line('.') != line('$')
\ || !empty(b:vimshell.continuation)
return
@@ -384,7 +384,7 @@ function! vimshell#print_prompt(...)"{{{
$
let &modified = 0
endfunction"}}}
-function! vimshell#print_secondary_prompt()"{{{
+function! vimshell#print_secondary_prompt() "{{{
if &filetype !=# 'vimshell' || line('.') != line('$')
return
endif
@@ -394,7 +394,7 @@ function! vimshell#print_secondary_prompt()"{{{
$
let &modified = 0
endfunction"}}}
-function! vimshell#get_command_path(program)"{{{
+function! vimshell#get_command_path(program) "{{{
" Command search.
try
return vimproc#get_command_name(a:program)
@@ -403,7 +403,7 @@ function! vimshell#get_command_path(program)"{{{
return ''
endtry
endfunction"}}}
-function! vimshell#start_insert(...)"{{{
+function! vimshell#start_insert(...) "{{{
if &filetype !=# 'vimshell'
return
endif
@@ -420,10 +420,10 @@ function! vimshell#start_insert(...)"{{{
normal! $
endif
endfunction"}}}
-function! vimshell#escape_match(str)"{{{
+function! vimshell#escape_match(str) "{{{
return escape(a:str, '~" \.^$[]')
endfunction"}}}
-function! vimshell#get_prompt(...)"{{{
+function! vimshell#get_prompt(...) "{{{
let line = get(a:000, 0, line('.'))
let interactive = get(a:000, 1,
\ (exists('b:interactive') ? b:interactive : {}))
@@ -439,22 +439,22 @@ function! vimshell#get_prompt(...)"{{{
\ vimshell#get_context().prompt :
\ vimshell#interactive#get_prompt(line, interactive)
endfunction"}}}
-function! vimshell#get_secondary_prompt()"{{{
+function! vimshell#get_secondary_prompt() "{{{
return vimshell#get_context().secondary_prompt
endfunction"}}}
-function! vimshell#get_user_prompt()"{{{
+function! vimshell#get_user_prompt() "{{{
return vimshell#get_context().user_prompt
endfunction"}}}
-function! vimshell#get_right_prompt()"{{{
+function! vimshell#get_right_prompt() "{{{
return vimshell#get_context().right_prompt
endfunction"}}}
-function! vimshell#get_cur_text()"{{{
+function! vimshell#get_cur_text() "{{{
" Get cursor text without prompt.
return &filetype == 'vimshell' ?
\ vimshell#get_cur_line()[len(vimshell#get_prompt()):]
\ : vimshell#interactive#get_cur_text()
endfunction"}}}
-function! vimshell#get_prompt_command(...)"{{{
+function! vimshell#get_prompt_command(...) "{{{
" Get command without prompt.
if a:0 > 0
return a:1[len(vimshell#get_prompt()):]
@@ -488,7 +488,7 @@ function! vimshell#get_prompt_command(...)"{{{
return line
endfunction"}}}
-function! vimshell#set_prompt_command(string)"{{{
+function! vimshell#set_prompt_command(string) "{{{
if !vimshell#check_prompt()
" Search prompt.
let [lnum, col] = searchpos('^'
@@ -499,11 +499,11 @@ function! vimshell#set_prompt_command(string)"{{{
call setline(lnum, vimshell#get_prompt() . a:string)
endfunction"}}}
-function! vimshell#get_cur_line()"{{{
+function! vimshell#get_cur_line() "{{{
let cur_text = matchstr(getline('.'), '^.*\%' . col('.') . 'c' . (mode() ==# 'i' ? '' : '.'))
return cur_text
endfunction"}}}
-function! vimshell#get_current_args(...)"{{{
+function! vimshell#get_current_args(...) "{{{
let cur_text = a:0 == 0 ? vimshell#get_cur_text() : a:1
let statements = vimproc#parser#split_statements(cur_text)
if empty(statements)
@@ -523,7 +523,7 @@ function! vimshell#get_current_args(...)"{{{
return args
endfunction"}}}
-function! vimshell#get_prompt_linenr()"{{{
+function! vimshell#get_prompt_linenr() "{{{
if b:interactive.type !=# 'interactive'
\ && b:interactive.type !=# 'vimshell'
return 0
@@ -533,7 +533,7 @@ function! vimshell#get_prompt_linenr()"{{{
\ vimshell#escape_match(vimshell#get_prompt()), 'nbcW')
return line
endfunction"}}}
-function! vimshell#check_prompt(...)"{{{
+function! vimshell#check_prompt(...) "{{{
if &filetype !=# 'vimshell' || !empty(b:vimshell.continuation)
return call('vimshell#get_prompt', a:000) != ''
endif
@@ -541,11 +541,11 @@ function! vimshell#check_prompt(...)"{{{
let line = a:0 == 0 ? getline('.') : getline(a:1)
return vimshell#head_match(line, vimshell#get_prompt())
endfunction"}}}
-function! vimshell#check_secondary_prompt(...)"{{{
+function! vimshell#check_secondary_prompt(...) "{{{
let line = a:0 == 0 ? getline('.') : getline(a:1)
return vimshell#head_match(line, vimshell#get_secondary_prompt())
endfunction"}}}
-function! vimshell#check_user_prompt(...)"{{{
+function! vimshell#check_user_prompt(...) "{{{
let line = a:0 == 0 ? line('.') : a:1
if !vimshell#head_match(getline(line-1), '[%] ')
" Not found.
@@ -562,39 +562,39 @@ function! vimshell#check_user_prompt(...)"{{{
return line
endfunction"}}}
-function! vimshell#set_execute_file(exts, program)"{{{
+function! vimshell#set_execute_file(exts, program) "{{{
return vimshell#util#set_dictionary_helper(g:vimshell_execute_file_list,
\ a:exts, a:program)
endfunction"}}}
-function! vimshell#system(...)"{{{
+function! vimshell#system(...) "{{{
let V = vital#of('vimshell')
return call(V.system, a:000)
endfunction"}}}
-function! vimshell#open(filename)"{{{
+function! vimshell#open(filename) "{{{
call vimproc#open(a:filename)
endfunction"}}}
-function! vimshell#trunk_string(string, max)"{{{
+function! vimshell#trunk_string(string, max) "{{{
return printf('%.' . string(a:max-10) . 's..%s', a:string, a:string[-8:])
endfunction"}}}
-function! vimshell#is_windows()"{{{
+function! vimshell#is_windows() "{{{
return has('win32') || has('win64')
endfunction"}}}
-function! vimshell#resolve(filename)"{{{
+function! vimshell#resolve(filename) "{{{
return ((vimshell#util#is_windows() && fnamemodify(a:filename, ':e') ==? 'LNK') || getftype(a:filename) ==# 'link') ?
\ substitute(resolve(a:filename), '\\', '/', 'g') : a:filename
endfunction"}}}
-function! vimshell#get_program_pattern()"{{{
+function! vimshell#get_program_pattern() "{{{
return
\'^\s*\%([^[:blank:]]\|\\[^[:alnum:]._-]\)\+\ze\%($\|\s*\%(=\s*\)\?\)'
endfunction"}}}
-function! vimshell#get_argument_pattern()"{{{
+function! vimshell#get_argument_pattern() "{{{
return
\'[^\\]\s\zs\%([^[:blank:]]\|\\[^[:alnum:].-]\)\+$'
endfunction"}}}
-function! vimshell#get_alias_pattern()"{{{
+function! vimshell#get_alias_pattern() "{{{
return '^\s*[[:alnum:].+#_@!%:-]\+'
endfunction"}}}
-function! vimshell#cd(directory)"{{{
+function! vimshell#cd(directory) "{{{
execute g:vimshell_cd_command '`=a:directory`'
if exists('*unite#sources#directory_mru#_append')
@@ -602,10 +602,10 @@ function! vimshell#cd(directory)"{{{
call unite#sources#directory_mru#_append()
endif
endfunction"}}}
-function! vimshell#compare_number(i1, i2)"{{{
+function! vimshell#compare_number(i1, i2) "{{{
return a:i1 == a:i2 ? 0 : a:i1 > a:i2 ? 1 : -1
endfunction"}}}
-function! vimshell#imdisable()"{{{
+function! vimshell#imdisable() "{{{
" Disable input method.
if exists('g:loaded_eskk') && eskk#is_enabled()
call eskk#disable()
@@ -615,7 +615,7 @@ function! vimshell#imdisable()"{{{
let &l:iminsert = 0
endif
endfunction"}}}
-function! vimshell#set_variables(variables)"{{{
+function! vimshell#set_variables(variables) "{{{
let variables_save = {}
for [key, value] in items(a:variables)
let save_value = exists(key) ? eval(key) : ''
@@ -626,20 +626,20 @@ function! vimshell#set_variables(variables)"{{{
return variables_save
endfunction"}}}
-function! vimshell#restore_variables(variables)"{{{
+function! vimshell#restore_variables(variables) "{{{
for [key, value] in items(a:variables)
execute 'let' key '= value'
endfor
endfunction"}}}
-function! vimshell#check_cursor_is_end()"{{{
+function! vimshell#check_cursor_is_end() "{{{
return vimshell#get_cur_line() ==# getline('.')
endfunction"}}}
-function! vimshell#execute_current_line(is_insert)"{{{
+function! vimshell#execute_current_line(is_insert) "{{{
return &filetype ==# 'vimshell' ?
\ vimshell#mappings#execute_line(a:is_insert) :
\ vimshell#int_mappings#execute_line(a:is_insert)
endfunction"}}}
-function! vimshell#get_cursor_filename()"{{{
+function! vimshell#get_cursor_filename() "{{{
let filename_pattern = (b:interactive.type ==# 'vimshell') ?
\'\s\?\%(\f\+\s\)*\f\+' :
\'[[:alnum:];/?:@&=+$,_.!~*|#-]\+'
@@ -657,7 +657,7 @@ function! vimshell#get_cursor_filename()"{{{
return vimshell#util#expand(filename)
endfunction"}}}
-function! vimshell#next_prompt(context, ...)"{{{
+function! vimshell#next_prompt(context, ...) "{{{
if &filetype !=# 'vimshell'
return
endif
@@ -683,7 +683,7 @@ function! vimshell#next_prompt(context, ...)"{{{
stopinsert
endfunction"}}}
-function! vimshell#split(command)"{{{
+function! vimshell#split(command) "{{{
let old_pos = [ tabpagenr(), winnr(), bufnr('%'), getpos('.') ]
if a:command != ''
let command =
@@ -696,7 +696,7 @@ function! vimshell#split(command)"{{{
return [new_pos, old_pos]
endfunction"}}}
-function! vimshell#restore_pos(pos)"{{{
+function! vimshell#restore_pos(pos) "{{{
if tabpagenr() != a:pos[0]
execute 'tabnext' a:pos[0]
endif
@@ -711,7 +711,7 @@ function! vimshell#restore_pos(pos)"{{{
call setpos('.', a:pos[3])
endfunction"}}}
-function! vimshell#get_editor_name()"{{{
+function! vimshell#get_editor_name() "{{{
if !exists('g:vimshell_editor_command')
" Set editor command.
if has('clientserver') && (has('gui_running') || has('gui'))
@@ -740,7 +740,7 @@ function! vimshell#get_editor_name()"{{{
return g:vimshell_editor_command
endfunction"}}}
-function! vimshell#is_interactive()"{{{
+function! vimshell#is_interactive() "{{{
let is_valid = get(get(b:interactive, 'process', {}), 'is_valid', 0)
return b:interactive.type ==# 'interactive'
\ || (b:interactive.type ==# 'vimshell' && is_valid)
@@ -748,7 +748,7 @@ endfunction"}}}
"}}}
" User helper functions.
-function! vimshell#execute(cmdline, ...)"{{{
+function! vimshell#execute(cmdline, ...) "{{{
if !empty(b:vimshell.continuation)
" Kill process.
call vimshell#interactive#hang_up(bufname('%'))
@@ -766,7 +766,7 @@ function! vimshell#execute(cmdline, ...)"{{{
return b:vimshell.system_variables.status
endfunction"}}}
-function! vimshell#execute_async(cmdline, ...)"{{{
+function! vimshell#execute_async(cmdline, ...) "{{{
if !empty(b:vimshell.continuation)
" Kill process.
call vimshell#interactive#hang_up(bufname('%'))
@@ -787,14 +787,14 @@ function! vimshell#execute_async(cmdline, ...)"{{{
return 1
endtry
endfunction"}}}
-function! vimshell#set_context(context)"{{{
+function! vimshell#set_context(context) "{{{
let context = s:initialize_context(a:context)
let s:context = context
if exists('b:vimshell')
let b:vimshell.context = context
endif
endfunction"}}}
-function! vimshell#get_context()"{{{
+function! vimshell#get_context() "{{{
if exists('b:vimshell')
return has_key(b:vimshell.continuation, 'context') ?
\ b:vimshell.continuation.context : b:vimshell.context
@@ -812,7 +812,7 @@ function! vimshell#get_context()"{{{
return s:context
endfunction"}}}
-function! vimshell#set_alias(name, value)"{{{
+function! vimshell#set_alias(name, value) "{{{
if !exists('b:vimshell')
let b:vimshell = {}
endif
@@ -827,10 +827,10 @@ function! vimshell#set_alias(name, value)"{{{
let b:vimshell.alias_table[a:name] = a:value
endif
endfunction"}}}
-function! vimshell#get_alias(name)"{{{
+function! vimshell#get_alias(name) "{{{
return get(b:vimshell.alias_table, a:name, '')
endfunction"}}}
-function! vimshell#set_galias(name, value)"{{{
+function! vimshell#set_galias(name, value) "{{{
if !exists('b:vimshell')
let b:vimshell = {}
endif
@@ -845,14 +845,14 @@ function! vimshell#set_galias(name, value)"{{{
let b:vimshell.galias_table[a:name] = a:value
endif
endfunction"}}}
-function! vimshell#get_galias(name)"{{{
+function! vimshell#get_galias(name) "{{{
return get(b:vimshell.galias_table, a:name, '')
endfunction"}}}
-function! vimshell#set_syntax(syntax_name)"{{{
+function! vimshell#set_syntax(syntax_name) "{{{
let b:interactive.syntax = a:syntax_name
endfunction"}}}
-function! s:initialize_vimshell(path, context)"{{{
+function! s:initialize_vimshell(path, context) "{{{
" Load history.
let g:vimshell#hist_buffer = vimshell#history#read()
@@ -936,7 +936,7 @@ function! s:initialize_vimshell(path, context)"{{{
call vimshell#help#init()
call vimshell#interactive#init()
endfunction"}}}
-function! s:initialize_context(context)"{{{
+function! s:initialize_context(context) "{{{
let default_context = {
\ 'buffer_name' : 'default',
\ 'no_quit' : 0,
@@ -989,7 +989,7 @@ function! s:initialize_context(context)"{{{
return context
endfunction"}}}
-function! s:initialize_internal_commands(command)"{{{
+function! s:initialize_internal_commands(command) "{{{
" Initialize internal commands table.
if a:command =~ '\.'
" Search pattern error.
@@ -1019,13 +1019,13 @@ function! s:initialize_internal_commands(command)"{{{
unlet result
endfor
endfunction"}}}
-function! vimshell#initialize_tab_variable()"{{{
+function! vimshell#initialize_tab_variable() "{{{
let t:vimshell = {
\ 'last_vimshell_bufnr' : -1,
\ 'last_interactive_bufnr' : -1,
\ }
endfunction"}}}
-function! s:switch_vimshell(bufnr, context, path)"{{{
+function! s:switch_vimshell(bufnr, context, path) "{{{
if bufwinnr(a:bufnr) > 0
execute bufwinnr(a:bufnr) 'wincmd w'
else
@@ -1060,7 +1060,7 @@ function! s:switch_vimshell(bufnr, context, path)"{{{
call vimshell#print_prompt()
call vimshell#start_insert()
endfunction"}}}
-function! s:get_postfix(prefix, is_create)"{{{
+function! s:get_postfix(prefix, is_create) "{{{
let buffers = get(a:000, 0, range(1, bufnr('$')))
let buflist = vimshell#util#sort_by(filter(map(buffers,
\ 'bufname(v:val)'), 'stridx(v:val, a:prefix) >= 0'),
@@ -1073,7 +1073,7 @@ function! s:get_postfix(prefix, is_create)"{{{
return num == '' && !a:is_create ? '' :
\ '@' . (a:is_create ? (num + 1) : num)
endfunction"}}}
-function! vimshell#complete(arglead, cmdline, cursorpos)"{{{
+function! vimshell#complete(arglead, cmdline, cursorpos) "{{{
let _ = []
" Option names completion.
@@ -1090,7 +1090,7 @@ function! vimshell#complete(arglead, cmdline, cursorpos)"{{{
return sort(_)
endfunction"}}}
-function! vimshell#vimshell_execute_complete(arglead, cmdline, cursorpos)"{{{
+function! vimshell#vimshell_execute_complete(arglead, cmdline, cursorpos) "{{{
" Get complete words.
let cmdline = a:cmdline[len(matchstr(
\ a:cmdline, vimshell#get_program_pattern())):]
@@ -1103,7 +1103,7 @@ function! vimshell#vimshell_execute_complete(arglead, cmdline, cursorpos)"{{{
return map(vimshell#complete#helper#command_args(args), 'v:val.word')
endfunction"}}}
-function! s:insert_user_and_right_prompt()"{{{
+function! s:insert_user_and_right_prompt() "{{{
for user in split(vimshell#get_user_prompt(), "\\n")
try
let secondary = '[%] ' . eval(user)
@@ -1162,7 +1162,7 @@ function! s:insert_user_and_right_prompt()"{{{
endfunction"}}}
" Auto commands function.
-function! s:event_bufwin_enter()"{{{
+function! s:event_bufwin_enter() "{{{
if has('conceal')
setlocal conceallevel=3
setlocal concealcursor=nvi
@@ -1196,7 +1196,7 @@ function! s:event_bufwin_enter()"{{{
endif
endfor
endfunction"}}}
-function! s:event_bufwin_leave()"{{{
+function! s:event_bufwin_leave() "{{{
if !exists('t:vimshell')
call vimshell#initialize_tab_variable()
endif
View
2  autoload/vimshell/altercmd.vim
@@ -24,7 +24,7 @@
" }}}
"=============================================================================
-function! vimshell#altercmd#define(original, alternative)"{{{
+function! vimshell#altercmd#define(original, alternative) "{{{
execute 'inoreabbrev <buffer><expr>' a:original
\ '(join(vimshell#get_current_args()) ==# "' . a:original . '")?'
\ s:SID_PREFIX().'recursive_expand_altercmd('.string(a:original).')' ':' string(a:original)
View
2  autoload/vimshell/commands/alias.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'special',
\ 'description' : 'alias {alias-name} = {command}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
let args = join(a:args)
if empty(a:args)
View
12 autoload/vimshell/commands/bg.vim
@@ -35,7 +35,7 @@ let s:command = {
\ 'kind' : 'execute',
\ 'description' : 'bg [{option}...] {command}',
\}
-function! s:command.execute(commands, context)"{{{
+function! s:command.execute(commands, context) "{{{
" Execute command in background.
let commands = a:commands
let [commands[0].args, options] = vimshell#parser#getopt(commands[0].args, {
@@ -108,7 +108,7 @@ function! s:command.execute(commands, context)"{{{
return vimshell#commands#bg#init(a:commands, a:context, options, interactive)
endfunction"}}}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
return vimshell#complete#helper#command_args(a:args)
endfunction"}}}
@@ -116,7 +116,7 @@ function! vimshell#commands#bg#define()
return s:command
endfunction
-function! vimshell#commands#bg#init(commands, context, options, interactive)"{{{
+function! vimshell#commands#bg#init(commands, context, options, interactive) "{{{
" Save current directiory.
let cwd = getcwd()
@@ -198,7 +198,7 @@ function! vimshell#commands#bg#init(commands, context, options, interactive)"{{{
endif
endfunction"}}}
-function! s:on_execute()"{{{
+function! s:on_execute() "{{{
setlocal modifiable
echo 'Running command.'
call vimshell#interactive#execute_process_out(mode() ==# 'i')
@@ -206,12 +206,12 @@ function! s:on_execute()"{{{
echo ''
setlocal nomodifiable
endfunction"}}}
-function! s:on_exit()"{{{
+function! s:on_exit() "{{{
if !b:interactive.process.is_valid
call vimshell#util#delete_buffer()
endif
endfunction "}}}
-function! s:event_bufwin_enter()"{{{
+function! s:event_bufwin_enter() "{{{
if has('conceal')
setlocal conceallevel=3
setlocal concealcursor=nvi
View
4 autoload/vimshell/commands/build.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'build [{builder-name}, {args}]',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
let [args, options] = vimshell#parser#getopt(a:args, {
\ })
@@ -49,7 +49,7 @@ function! s:command.execute(args, context)"{{{
endif
endfunction"}}}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
if len(a:args) == 1
return vimshell#complete#helper#keyword_simple_filter(
\ unite#sources#build#get_builders_name(), a:args[-1])
View
4 autoload/vimshell/commands/cd.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'cd {directory-path} [{substitute-pattern}]',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Change the working directory.
if empty(a:args)
@@ -105,7 +105,7 @@ function! s:command.execute(args, context)"{{{
call vimshell#hook#call('chpwd', context, getcwd())
endif
endfunction"}}}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
if a:args[-1] =~ '^-\d*$'
let ret = vimshell#complete#helper#directory_stack(a:args[-1][1:])
for keyword in ret
View
2  autoload/vimshell/commands/dirs.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'dirs [{max}]',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Print directory stack.
let cnt = 0
View
2  autoload/vimshell/commands/echo.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'echo [{argument}...]',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Echo arguments.
call vimshell#print(a:context.fd, join(a:args) . "\n")
endfunction"}}}
View
2  autoload/vimshell/commands/eval.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'eval {expression}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Evaluate arguments.
let line = join(a:args)
View
6 autoload/vimshell/commands/exe.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'execute',
\ 'description' : 'exe [{option}...] {command}',
\}
-function! s:command.execute(commands, context)"{{{
+function! s:command.execute(commands, context) "{{{
let commands = a:commands
let [commands[0].args, options] = vimshell#parser#getopt(commands[0].args, {
\ 'arg=' : ['--encoding'],
@@ -96,7 +96,7 @@ function! s:command.execute(commands, context)"{{{
let b:vimshell.system_variables['status'] = b:interactive.status
endfunction"}}}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
return vimshell#complete#helper#command_args(a:args)
endfunction"}}}
@@ -104,7 +104,7 @@ function! vimshell#commands#exe#define()
return s:command
endfunction
-function! s:init_process(commands, context, options)"{{{
+function! s:init_process(commands, context, options) "{{{
if !empty(b:interactive.process) && b:interactive.process.is_valid
" Delete zombie process.
call vimshell#interactive#force_exit()
View
2  autoload/vimshell/commands/exit.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'exit',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Exit vimshell.
if a:context.is_interactive
call vimshell#util#delete_buffer()
View
2  autoload/vimshell/commands/galias.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'special',
\ 'description' : 'galias {global-alias-name} = {command}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
let args = join(a:args)
if empty(a:args)
View
2  autoload/vimshell/commands/gcd.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'gcd [{directory-path}]',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Change the global working directory.
let dir = empty(a:args)? getcwd() : a:args[0]
View
2  autoload/vimshell/commands/gendoc.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'gendoc {command} {args}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Generate cached doc.
if empty(a:args)
View
4 autoload/vimshell/commands/gexe.vim
@@ -29,13 +29,13 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'gexe {command}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
let command = join(a:args)
let command = vimproc#util#iconv(command, &encoding, 'char')
call vimproc#system_gui(command)
endfunction"}}}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
return vimshell#complete#helper#command_args(a:args)
endfunction"}}}
View
2  autoload/vimshell/commands/h.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'h [{pattern}]',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Execute from history.
let histories = vimshell#history#read()
View
2  autoload/vimshell/commands/histdel.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'histdel {history-number}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Delete from history.
if !empty(a:args)
View
2  autoload/vimshell/commands/history.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'history [{search-string}]',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
let histories = vimshell#history#read()
let arguments = join(a:args, ' ')
View
16 autoload/vimshell/commands/iexe.vim
@@ -35,7 +35,7 @@ let s:command = {
\ 'kind' : 'execute',
\ 'description' : 'iexe [{options}...] {command}',
\}
-function! s:command.execute(commands, context)"{{{
+function! s:command.execute(commands, context) "{{{
" Interactive execute command.
let commands = a:commands
@@ -180,7 +180,7 @@ function! s:command.execute(commands, context)"{{{
startinsert!
endif
endfunction"}}}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
if len(a:args) == 1
return vimshell#complete#helper#executables(a:args[-1])
elseif vimshell#util#is_windows() &&
@@ -196,7 +196,7 @@ function! vimshell#commands#iexe#define()
return s:command
endfunction
-" Set interactive options."{{{
+" Set interactive options. "{{{
if vimshell#util#is_windows()
" Windows only options.
call vimshell#set_dictionary_helper(
@@ -275,7 +275,7 @@ call vimshell#set_dictionary_helper(
\ g:vimshell_interactive_monochrome_commands, 'earthquake', '1')
"}}}
-function! s:default_settings()"{{{
+function! s:default_settings() "{{{
" Common.
setlocal buftype=nofile
setlocal bufhidden=hide
@@ -297,7 +297,7 @@ function! s:default_settings()"{{{
call vimshell#int_mappings#define_default_mappings()
endfunction"}}}
-function! s:default_syntax()"{{{
+function! s:default_syntax() "{{{
" Set syntax.
syn region InteractiveError start=+!!!+ end=+!!!+ contains=InteractiveErrorHidden oneline
hi def link InteractiveError Error
@@ -311,7 +311,7 @@ function! s:default_syntax()"{{{
endif
endfunction"}}}
-function! vimshell#commands#iexe#init(context, interactive, new_pos, old_pos, is_insert)"{{{
+function! vimshell#commands#iexe#init(context, interactive, new_pos, old_pos, is_insert) "{{{
" Save current directiory.
let cwd = getcwd()
@@ -359,14 +359,14 @@ function! vimshell#commands#iexe#init(context, interactive, new_pos, old_pos, is
endif
endfunction"}}}
-function! s:insert_enter()"{{{
+function! s:insert_enter() "{{{
if winwidth(0) != b:interactive.width ||
\ winheight(0) != b:interactive.height
" Set new window size.
call b:interactive.process.set_winsize(winwidth(0), winheight(0))
endif
endfunction"}}}
-function! s:event_bufwin_enter()"{{{
+function! s:event_bufwin_enter() "{{{
if has('conceal')
setlocal conceallevel=3
setlocal concealcursor=nvi
View
16 autoload/vimshell/commands/less.vim
@@ -35,7 +35,7 @@ let s:command = {
\ 'kind' : 'execute',
\ 'description' : 'less [{option}...] {command}',
\}
-function! s:command.execute(commands, context)"{{{
+function! s:command.execute(commands, context) "{{{
" Execute command in background.
let commands = a:commands
let [commands[0].args, options] = vimshell#parser#getopt(commands[0].args, {
@@ -84,7 +84,7 @@ function! s:command.execute(commands, context)"{{{
return s:init(a:commands, a:context, options, interactive)
endfunction"}}}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
return vimshell#complete#helper#command_args(a:args)
endfunction"}}}
@@ -92,7 +92,7 @@ function! vimshell#commands#less#define()
return s:command
endfunction
-function! s:init(commands, context, options, interactive)"{{{
+function! s:init(commands, context, options, interactive) "{{{
" Save current directiory.
let cwd = getcwd()
@@ -220,32 +220,32 @@ function! s:init(commands, context, options, interactive)"{{{
endif
endfunction"}}}
-function! s:next_line()"{{{
+function! s:next_line() "{{{
if line('.') == line('$')
call s:print_output(2)
endif
normal! j
endfunction "}}}
-function! s:next_screen()"{{{
+function! s:next_screen() "{{{
if line('.') == line('$')
call s:print_output(winheight(0))
else
execute "normal! \<C-f>"
endif
endfunction "}}}
-function! s:next_half_screen()"{{{
+function! s:next_half_screen() "{{{
if line('.') == line('$')
call s:print_output(winheight(0)/2)
else
execute "normal! \<C-d>"
endif
endfunction "}}}
-function! s:last_screen()"{{{
+function! s:last_screen() "{{{
call s:print_output(-1)
endfunction "}}}
-function! s:print_output(line_num)"{{{
+function! s:print_output(line_num) "{{{
setlocal modifiable
if winwidth(0) != b:interactive.width
View
2  autoload/vimshell/commands/let.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'special',
\ 'description' : 'let ${var-name} = {expression}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
let args = join(a:args)
if args !~ '^$$\?\h\w*'
View
2  autoload/vimshell/commands/ls.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'ls [{argument}...]',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Check ls command.
if !executable('ls')
call vimshell#error_line(a:context.fd,
View
2  autoload/vimshell/commands/mkcd.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'mkcd {directory-name}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Make directory and change the working directory.
if empty(a:args)
View
2  autoload/vimshell/commands/open.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'open {filename}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Open file.
call vimshell#open(join(a:args))
View
4 autoload/vimshell/commands/popd.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'popd [{directory-stack-number}]',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Pop directory.
if empty(b:vimshell.directory_stack)
@@ -60,7 +60,7 @@ function! s:command.execute(args, context)"{{{
return vimshell#execute_internal_command('cd',
\ [ b:vimshell.directory_stack[pop] ], a:context)
endfunction"}}}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
return vimshell#complete#helper#directory_stack(a:args[-1])
endfunction"}}}
View
2  autoload/vimshell/commands/pwd.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'pwd',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Print the working directory.
call vimshell#print_line(a:context.fd, getcwd())
View
2  autoload/vimshell/commands/repeat.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'repeat {cnt} {command}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Repeat command.
if len(a:args) < 2 || a:args[0] !~ '\d\+'
View
2  autoload/vimshell/commands/scp.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'external',
\ 'description' : 'ssh {src} {dest}',
\}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
if !exists('*unite#get_all_sources')
\ || empty(unite#get_all_sources('ssh'))
return []
View
2  autoload/vimshell/commands/sexe.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'special',
\ 'description' : 'sexe {command}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
let [args, options] = vimshell#parser#getopt(a:args,
\{ 'arg=' : ['--encoding']
\})
View
2  autoload/vimshell/commands/shell.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'shell',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Starts shell in terminal.
if g:vimshell_use_terminal_command == ''
call vimshell#error_line(a:context.fd,
View
2  autoload/vimshell/commands/source.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'source files...',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
if len(a:args) < 1
return
endif
View
2  autoload/vimshell/commands/source_shellcmd.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'source shellcmd...',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
if len(a:args) < 1
return
endif
View
2  autoload/vimshell/commands/ssh.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'external',
\ 'description' : 'ssh {hostname}',
\}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
if !exists('*unite#get_all_sources')
\ || empty(unite#get_all_sources('ssh'))
return []
View
4 autoload/vimshell/commands/sudo.vim
@@ -34,11 +34,11 @@ let s:command = {
\ 'description' : 'sudo {command}',
\}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
return vimshell#complete#helper#command_args(a:args)
endfunction"}}}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Execute GUI program.
if empty(a:args)
call vimshell#error_line(
View
14 autoload/vimshell/commands/texe.vim
@@ -35,7 +35,7 @@ let s:command = {
\ 'kind' : 'execute',
\ 'description' : 'texe [{options}...] {command}',
\}
-function! s:command.execute(commands, context)"{{{
+function! s:command.execute(commands, context) "{{{
" Interactive execute command.
if len(a:commands) > 1
call vimshell#error_line(a:context.fd, 'iexe: this command is not supported pipe.')
@@ -173,7 +173,7 @@ function! s:command.execute(commands, context)"{{{
endif
endif
endfunction"}}}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
return vimshell#util#is_windows() ?
\ vimshell#complete#helper#executables(a:args[-1],
\ g:vimshell_interactive_cygwin_path) :
@@ -189,7 +189,7 @@ function! vimshell#commands#texe#restore_cursor()
endif
endfunction
-function! s:default_settings()"{{{
+function! s:default_settings() "{{{
" Define mappings.
call vimshell#term_mappings#define_default_mappings()
@@ -219,7 +219,7 @@ function! s:default_settings()"{{{
setfiletype vimshell-term
endfunction"}}}
-function! s:init_bg(args, context)"{{{
+function! s:init_bg(args, context) "{{{
" Save current directiory.
let cwd = getcwd()
@@ -251,7 +251,7 @@ function! s:init_bg(args, context)"{{{
call vimshell#interactive#set_send_buffer(bufnr('%'))
endfunction"}}}
-function! s:insert_enter()"{{{
+function! s:insert_enter() "{{{
if exists(':NeoComplCacheDisable')
" Lock neocomplcache.
NeoComplCacheLock
@@ -275,12 +275,12 @@ function! s:insert_enter()"{{{
call setpos('.', b:interactive.save_cursor)
startinsert
endfunction"}}}
-function! s:insert_leave()"{{{
+function! s:insert_leave() "{{{
setlocal nomodifiable
call vimshell#commands#texe#restore_cursor()
endfunction"}}}
-function! s:event_bufwin_enter()"{{{
+function! s:event_bufwin_enter() "{{{
if has('conceal')
setlocal conceallevel=3
setlocal concealcursor=nvi
View
2  autoload/vimshell/commands/time.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'time {command}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Repeat command.
if len(a:args) < 1
View
2  autoload/vimshell/commands/vexe.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'special',
\ 'description' : 'vexe {expression}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Execute vim command.
let context = a:context
View
2  autoload/vimshell/commands/view.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'view [{filename}]',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
let [args, options] = vimshell#parser#getopt(a:args, {
\ 'arg=' : ['--split'],
\ }, {
View
2  autoload/vimshell/commands/vim.vim
@@ -29,7 +29,7 @@ let s:command_vim = {
\ 'kind' : 'internal',
\ 'description' : 'vim [{filename}]',
\}
-function! s:command_vim.execute(args, context)"{{{
+function! s:command_vim.execute(args, context) "{{{
let [args, options] = vimshell#parser#getopt(a:args, {
\ 'arg=' : ['--split'],
\ }, {
View
2  autoload/vimshell/commands/vimdiff.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'vimdiff {filename1} {filename2}',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
let [args, options] = vimshell#parser#getopt(a:args, {
\ 'arg=' : ['--split'],
\ }, {
View
2  autoload/vimshell/commands/vimsh.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'vimsh [{filename}]',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
" Create new vimshell or execute script.
if empty(a:args)
let bufnr = bufnr('%')
View
4 autoload/vimshell/commands/whereis.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'whereis command',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
if empty(a:args)
return
endif
@@ -39,7 +39,7 @@ function! s:command.execute(args, context)"{{{
call vimshell#print_line(a:context.fd, arg)
endfor
endfunction"}}}
-function! s:command.complete(args)"{{{
+function! s:command.complete(args) "{{{
if len(a:args) == 1
return vimshell#complete#helper#executables(a:args[-1])
endif
View
2  autoload/vimshell/commands/which.vim
@@ -29,7 +29,7 @@ let s:command = {
\ 'kind' : 'internal',
\ 'description' : 'which command',
\}
-function! s:command.execute(args, context)"{{{
+function! s:command.execute(args, context) "{{{
if empty(a:args)
return
endif
View
4 autoload/vimshell/complete.vim
@@ -25,14 +25,14 @@
"=============================================================================
" Complete function. This provides simple file completion.
-function! vimshell#complete#start()"{{{
+function! vimshell#complete#start() "{{{
if len(&omnifunc) == 0
setlocal omnifunc=vimshell#complete#candidate
endif
call feedkeys("\<c-x>\<c-o>", "n")
return ''
endfunction"}}}
-function! vimshell#complete#candidate(findstart, base)"{{{
+function! vimshell#complete#candidate(findstart, base) "{{{
let line = getline('.')
let prompt_len = len(vimshell#get_prompt())
if a:findstart
View
32 autoload/vimshell/complete/helper.vim
@@ -24,7 +24,7 @@
" }}}
"=============================================================================
-function! vimshell#complete#helper#files(cur_keyword_str, ...)"{{{
+function! vimshell#complete#helper#files(cur_keyword_str, ...) "{{{
" vimshell#complete#helper#files(cur_keyword_str [, path])
if a:0 > 1
@@ -58,7 +58,7 @@ function! vimshell#complete#helper#files(cur_keyword_str, ...)"{{{
return list
endfunction"}}}
-function! vimshell#complete#helper#directories(cur_keyword_str)"{{{
+function! vimshell#complete#helper#directories(cur_keyword_str) "{{{
let ret = []
for keyword in filter(vimshell#complete#helper#files(a:cur_keyword_str),
\ 'isdirectory(v:val.orig) ||
@@ -72,7 +72,7 @@ function! vimshell#complete#helper#directories(cur_keyword_str)"{{{
return ret
endfunction"}}}
-function! vimshell#complete#helper#cdpath_directories(cur_keyword_str)"{{{
+function! vimshell#complete#helper#cdpath_directories(cur_keyword_str) "{{{
" Check dup.
let check = {}
for keyword in filter(vimshell#complete#helper#files(a:cur_keyword_str, &cdpath),
@@ -94,7 +94,7 @@ function! vimshell#complete#helper#cdpath_directories(cur_keyword_str)"{{{
return ret
endfunction"}}}
-function! vimshell#complete#helper#directory_stack(cur_keyword_str)"{{{
+function! vimshell#complete#helper#directory_stack(cur_keyword_str) "{{{
if !exists('b:vimshell')
return []
endif
@@ -110,7 +110,7 @@ function! vimshell#complete#helper#directory_stack(cur_keyword_str)"{{{
return ret
endfunction"}}}
-function! vimshell#complete#helper#aliases(cur_keyword_str)"{{{
+function! vimshell#complete#helper#aliases(cur_keyword_str) "{{{
if !exists('b:vimshell')
return []
endif
@@ -135,7 +135,7 @@ function! vimshell#complete#helper#aliases(cur_keyword_str)"{{{
return ret
endfunction"}}}
-function! vimshell#complete#helper#internals(cur_keyword_str)"{{{
+function! vimshell#complete#helper#internals(cur_keyword_str) "{{{
let commands = vimshell#available_commands(a:cur_keyword_str)
let ret = []
for keyword in vimshell#complete#helper#keyword_simple_filter(
@@ -146,7 +146,7 @@ function! vimshell#complete#helper#internals(cur_keyword_str)"{{{
return ret
endfunction"}}}
-function! vimshell#complete#helper#executables(cur_keyword_str, ...)"{{{
+function! vimshell#complete#helper#executables(cur_keyword_str, ...) "{{{
if a:cur_keyword_str =~ '[/\\]'
let files = vimshell#complete#helper#files(a:cur_keyword_str)
else
@@ -183,7 +183,7 @@ function! vimshell#complete#helper#executables(cur_keyword_str, ...)"{{{
return ret
endfunction"}}}
-function! vimshell#complete#helper#buffers(cur_keyword_str)"{{{
+function! vimshell#complete#helper#buffers(cur_keyword_str) "{{{
let ret = []
let bufnumber = 1
while bufnumber <= bufnr('$')
@@ -199,7 +199,7 @@ function! vimshell#complete#helper#buffers(cur_keyword_str)"{{{
return ret
endfunction"}}}
-function! vimshell#complete#helper#args(command, args)"{{{
+function! vimshell#complete#helper#args(command, args) "{{{
let commands = vimshell#available_commands(a:command)
" Get complete words.
@@ -221,7 +221,7 @@ function! vimshell#complete#helper#args(command, args)"{{{
return complete_words
endfunction"}}}
-function! vimshell#complete#helper#command_args(args)"{{{
+function! vimshell#complete#helper#command_args(args) "{{{
" command args...
if len(a:args) == 1
" Commands.
@@ -231,7 +231,7 @@ function! vimshell#complete#helper#command_args(args)"{{{
return vimshell#complete#helper#args(a:args[0], a:args[1:])
endif
endfunction"}}}
-function! vimshell#complete#helper#variables(cur_keyword_str)"{{{
+function! vimshell#complete#helper#variables(cur_keyword_str) "{{{
let _ = []
let _ += neocomplcache#sources#vim_complete#helper#environment(
\ vimshell#get_cur_text(), a:cur_keyword_str)
@@ -245,7 +245,7 @@ function! vimshell#complete#helper#variables(cur_keyword_str)"{{{
return vimshell#complete#helper#keyword_filter(_, a:cur_keyword_str)
endfunction"}}}
-function! vimshell#complete#helper#call_omnifunc(omnifunc)"{{{
+function! vimshell#complete#helper#call_omnifunc(omnifunc) "{{{
" Note: neocomplcache#sources#completefunc_complete#call_completefunc()
" is not working. :-(
" if exists(':NeoComplCacheDisable')
@@ -258,15 +258,15 @@ function! vimshell#complete#helper#call_omnifunc(omnifunc)"{{{
return "\<C-x>\<C-o>\<C-p>"
endif
endfunction"}}}
-function! vimshell#complete#helper#restore_omnifunc(omnifunc)"{{{
+function! vimshell#complete#helper#restore_omnifunc(omnifunc) "{{{
if &l:omnifunc !=# a:omnifunc
let &l:omnifunc = a:omnifunc
endif
endfunction"}}}
-function! vimshell#complete#helper#compare_rank(i1, i2)"{{{
+function! vimshell#complete#helper#compare_rank(i1, i2) "{{{
return a:i1.rank < a:i2.rank ? 1 : a:i1.rank == a:i2.rank ? 0 : -1
endfunction"}}}
-function! vimshell#complete#helper#keyword_filter(list, cur_keyword_str)"{{{
+function! vimshell#complete#helper#keyword_filter(list, cur_keyword_str) "{{{
let cur_keyword = substitute(a:cur_keyword_str, '\\\zs.', '\0', 'g')
if &ignorecase
let expr = printf('stridx(tolower(v:val.word), %s) == 0', string(tolower(cur_keyword)))
@@ -276,7 +276,7 @@ function! vimshell#complete#helper#keyword_filter(list, cur_keyword_str)"{{{
return filter(a:list, expr)
endfunction"}}}
-function! vimshell#complete#helper#keyword_simple_filter(list, cur_keyword_str)"{{{
+function! vimshell#complete#helper#keyword_simple_filter(list, cur_keyword_str) "{{{
let cur_keyword = substitute(a:cur_keyword_str, '\\\zs.', '\0', 'g')
let expr = &ignorecase ?
\ printf('stridx(tolower(v:val), %s) == 0',
View
12 autoload/vimshell/help.vim
@@ -24,13 +24,13 @@
" }}}
"=============================================================================
-" For echodoc."{{{
+" For echodoc. "{{{
let s:doc_dict = {
\ 'name' : 'vimshell',
\ 'rank' : 10,
\ 'filetypes' : { 'vimshell' : 1 },
\ }
-function! s:doc_dict.search(cur_text)"{{{
+function! s:doc_dict.search(cur_text) "{{{
" Get command name.
try
let args = vimshell#get_current_args(vimshell#get_cur_text())
@@ -67,23 +67,23 @@ function! s:doc_dict.search(cur_text)"{{{
endfunction"}}}
"}}}
-function! vimshell#help#init()"{{{
+function! vimshell#help#init() "{{{
if exists('g:loaded_echodoc') && g:loaded_echodoc
call echodoc#register('vimshell', s:doc_dict)
endif
call s:load_cached_doc()
endfunction"}}}
-function! vimshell#help#get_cached_doc()"{{{
+function! vimshell#help#get_cached_doc() "{{{
return s:cached_doc
endfunction"}}}
-function! vimshell#help#set_cached_doc(cache)"{{{
+function! vimshell#help#set_cached_doc(cache) "{{{
let s:cached_doc = a:cache
let doc_path = g:vimshell_temporary_directory.'/cached-doc'
call writefile(values(map(deepcopy(s:cached_doc), 'v:key."!!!".v:val')), doc_path)
endfunction"}}}
-function! s:load_cached_doc()"{{{
+function! s:load_cached_doc() "{{{
let s:cached_doc = {}
let doc_path = g:vimshell_temporary_directory.'/cached-doc'
if !filereadable(doc_path)
View
8 autoload/vimshell/history.vim
@@ -24,7 +24,7 @@
" }}}
"=============================================================================
-function! vimshell#history#append(command)"{{{
+function! vimshell#history#append(command) "{{{
" Reduce blanks.
let command = substitute(a:command, '\s\+', ' ', 'g')
@@ -62,17 +62,17 @@ function! vimshell#history#append(command)"{{{
call vimshell#history#write(histories)
endfunction"}}}
-function! vimshell#history#read()"{{{
+function! vimshell#history#read() "{{{
let history_path = s:get_history_path()
return filereadable(history_path) ?
\ readfile(history_path) : []
endfunction"}}}
-function! vimshell#history#write(list)"{{{
+function! vimshell#history#write(list) "{{{
" Save history file.
call writefile(a:list, s:get_history_path())
endfunction"}}}
-function! s:get_history_path()"{{{
+function! s:get_history_path() "{{{
if &filetype ==# 'vimshell' && empty(b:vimshell.continuation)
let history_path = g:vimshell_temporary_directory . '/command-history'
if !filereadable(history_path)
View
12 autoload/vimshell/hook.vim
@@ -24,7 +24,7 @@
" }}}
"=============================================================================
-function! vimshell#hook#call(hook_point, context, args)"{{{
+function! vimshell#hook#call(hook_point, context, args) "{{{
" There are cases when this variable doesn't
" exist
" USE: 'b:interactive.is_close_immediately = 1' to replicate
@@ -48,7 +48,7 @@ function! vimshell#hook#call(hook_point, context, args)"{{{
call call(table[key], [a:args, context], {})
endfor