Permalink
Browse files

- Improved <Plug>(vimshell_previous_prompt) and <Plug>(vimshell_next_…

…prompt)
  • Loading branch information...
1 parent 04db382 commit ff17d38b436506f10ee15d6f1d471b786561f046 @Shougo Shougo committed Jul 4, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −2 autoload/vimshell/mappings.vim
  2. +1 −0 doc/vimshell.txt
View
4 autoload/vimshell/mappings.vim
@@ -334,10 +334,10 @@ function! s:execute_command_line(is_insert, oldpos)"{{{
call vimshell#start_insert(a:is_insert)
endfunction"}}}
function! s:previous_prompt()"{{{
- call search('^' . vimshell#escape_match(vimshell#get_prompt()), 'bWe')
+ call search('^' . vimshell#escape_match(vimshell#get_prompt()) . '.\?', 'bWe')
endfunction"}}}
function! s:next_prompt()"{{{
- call search('^' . vimshell#escape_match(vimshell#get_prompt()), 'We')
+ call search('^' . vimshell#escape_match(vimshell#get_prompt()) . '.\?', 'We')
endfunction"}}}
function! s:select_previous_prompt()"{{{
let l:prompt_pattern = '^' . vimshell#escape_match(vimshell#get_prompt())
View
1 doc/vimshell.txt
@@ -219,6 +219,7 @@ CHANGELOG *vimshell-changelog*
2011-07-04
- Added <Plug>(vimshell_move_head) mapping.
+- Improved <Plug>(vimshell_previous_prompt) and <Plug>(vimshell_next_prompt)
2011-07-02
- Fixed preinput bug.

0 comments on commit ff17d38

Please sign in to comment.