Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Implemented interrupt in interactive buffer.

  • Loading branch information...
commit 2832bd61c6dc70260e54a6bbaec1435aa1f8be57 1 parent 6cd5d19
@Shougo Shougo authored
Showing with 4 additions and 2 deletions.
  1. +3 −2 autoload/vimshell/int_mappings.vim
  2. +1 −0  doc/vimshell.txt
View
5 autoload/vimshell/int_mappings.vim
@@ -32,8 +32,9 @@ function! vimshell#int_mappings#define_default_mappings()"{{{
inoremap <buffer><expr> <Plug>(vimshell_int_delete_backward_line) <SID>delete_backward_line()
inoremap <buffer><expr> <Plug>(vimshell_int_delete_backward_word) vimshell#interactive#get_cur_text() == '' ? '' : "\<C-w>"
inoremap <buffer><silent> <Plug>(vimshell_int_execute_line) <C-g>u<ESC>:<C-u>call vimshell#execute_current_line(1)<CR>
- inoremap <buffer><silent> <Plug>(vimshell_int_hangup) <C-o>:<C-u>call vimshell#interactive#hang_up(bufname('%'))<CR>
inoremap <buffer><expr> <Plug>(vimshell_int_delete_backward_char) <SID>delete_backward_char(0)
+ " 3 == char2nr("\<C-c>")
+ inoremap <buffer><silent> <Plug>(vimshell_int_interrupt) <C-o>:call vimshell#interactive#send_char(3)<CR>
inoremap <buffer><expr> <Plug>(vimshell_int_another_delete_backward_char) <SID>delete_backward_char(1)
inoremap <buffer><expr> <Plug>(vimshell_int_history_complete) vimshell#complete#interactive_history_complete#complete()
inoremap <buffer><silent> <Plug>(vimshell_int_send_input) <C-o>:call vimshell#interactive#send_input()<CR>
@@ -45,7 +46,7 @@ function! vimshell#int_mappings#define_default_mappings()"{{{
nnoremap <buffer><silent> <Plug>(vimshell_int_next_prompt) :<C-u>call <SID>next_prompt()<CR>
nnoremap <buffer><silent> <Plug>(vimshell_int_execute_line) :<C-u>call vimshell#execute_current_line(0)<CR>
nnoremap <buffer><silent> <Plug>(vimshell_int_paste_prompt) :<C-u>call <SID>paste_prompt()<CR>
- nnoremap <buffer><silent> <Plug>(vimshell_int_interrupt) :<C-u>call vimshell#interactive#send_char("\<C-c>")<CR>
+ nnoremap <buffer><silent> <Plug>(vimshell_int_hangup) :<C-u>call vimshell#interactive#hang_up(bufname('%'))<CR>
nnoremap <buffer><silent> <Plug>(vimshell_int_exit) :<C-u>call vimshell#interactive#quit_buffer()<CR>
nnoremap <buffer><silent> <Plug>(vimshell_int_restart_command) :<C-u>call <SID>restart_command()<CR>
nnoremap <buffer><expr> <Plug>(vimshell_int_change_line) vimshell#interactive#get_prompt() == '' ? 'ddO' : printf('0%dlc$', vimshell#util#strchars(vimshell#interactive#get_prompt()))
View
1  doc/vimshell.txt
@@ -220,6 +220,7 @@ CHANGELOG *vimshell-changelog*
2011-07-20
- Fixed complete error in interactive buffer.
- Improved set variables.
+- Implemented interrupt in interactive buffer.
2011-07-13
- Fixed clear bug.
Please sign in to comment.
Something went wrong with that request. Please try again.