Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improve g:vimshell_max_command_history behavior

  • Loading branch information...
commit 13c25f53151d9063b59c924bd195cfac78891623 1 parent 9eeba02
@Shougo authored
Showing with 5 additions and 2 deletions.
  1. +4 −2 autoload/vimshell/history.vim
  2. +1 −0  doc/vimshell.txt
View
6 autoload/vimshell/history.vim
@@ -58,8 +58,10 @@ function! vimshell#history#append(command) "{{{
" Filtering.
let histories = vimshell#util#uniq(insert(histories, command))
- " Truncate.
- let histories = histories[: g:vimshell_max_command_history-1]
+ if g:vimshell_max_command_history > 0
+ " Truncate.
+ let histories = histories[: g:vimshell_max_command_history-1]
+ endif
call vimshell#history#write(histories)
endfunction"}}}
View
1  doc/vimshell.txt
@@ -252,6 +252,7 @@ g:vimshell_temporary_directory *g:vimshell_temporary_directory*
g:vimshell_max_command_history *g:vimshell_max_command_history*
Maximum number of entries in history.
+ If it is < 0, you can use infinite histories.
Initial value is 1000.
Please sign in to comment.
Something went wrong with that request. Please try again.