sponsor Vim development Vim logo Vim Book Ad

Shell History : Autocomplete based upon bash_history

 script karma  Rating 0/2, Downloaded by 536  Comments, bugs, improvements  Vim wiki

created by
Michael Brown
 
script type
utility
 
description
If you have previously typed a complicated command into your shell and then want to use it within a shell script this will make it easier to grab

just start typing a fragment of the command and hit control b

Note: .bash_history will normally only be written to when you exit a shell

You may want to tweak your history settings to gain best possible performance
possibly http://wooledge.org/mywiki/BashFAQ#faq77 (realtime updates...although I haven't tried this)

This was just a personal  experiment at vim scripting, please send improvements/suggestions.

 
install details
place the vim file in the plugin folder
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
shell_history.vim 0.1 2007-08-14 7.0 Michael Brown Initial upload
ip used for rating: 18.218.70.93

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github