<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>bilalq</author><text>I use these settings in my .inputrc. The get me a few more commands and even the ability to escape using jj.&lt;p&gt;&lt;pre&gt;&lt;code&gt;    set completion-ignore-case On
    set bell-style none
    set editing-mode vi

    $if mode=vi
      set keymap vi-command
      &amp;quot;gg&amp;quot;: beginning-of-history
      &amp;quot;G&amp;quot;: end-of-history
      set keymap vi-insert
      &amp;quot;jj&amp;quot;: vi-movement-mode
      &amp;quot;\C-p&amp;quot;: history-search-backward&lt;/code&gt;&lt;/pre&gt;</text><parent_chain><item><author>juanre</author><text>Bash, running in your terminal, understands both the Emacs and the Vi commands.  By default is Emacs, so you can C-a (control-a) for beginning of line, C-p to go back in command line history, or C-r to search it.&lt;p&gt;I prefer the Vi mode, though.  Add to your .bashrc&lt;p&gt;set -o vi&lt;p&gt;Then you can press escape to go from input mode to normal mode; there k will take you to the previous line in command line history, j to the next line, ^ and $ to the beginning and end of the line, &amp;#x2F;something will search something back.&lt;p&gt;Editing is really fast; move by words with w (forward) and b (backward), do cw to replace a word, r to replace a letter, i to go back to input.  It will remember the last editing command, just as Vi, and repeat it when you press . in normal mode.</text></item></parent_chain></comment><story><title>Quick tip for developers who use OS X</title><text>OSX Terminal: hold option and click a position in the current line to move your cursor to that position. #yearslost</text></story>
<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>eof</author><text>you can also go into visual mode (at least in vi mode).. pressing esc then v will launch your default editor with the current command in the buffer; saving an exiting runs the command; very useful for long commands and&amp;#x2F;or iterating</text><parent_chain><item><author>juanre</author><text>Bash, running in your terminal, understands both the Emacs and the Vi commands.  By default is Emacs, so you can C-a (control-a) for beginning of line, C-p to go back in command line history, or C-r to search it.&lt;p&gt;I prefer the Vi mode, though.  Add to your .bashrc&lt;p&gt;set -o vi&lt;p&gt;Then you can press escape to go from input mode to normal mode; there k will take you to the previous line in command line history, j to the next line, ^ and $ to the beginning and end of the line, &amp;#x2F;something will search something back.&lt;p&gt;Editing is really fast; move by words with w (forward) and b (backward), do cw to replace a word, r to replace a letter, i to go back to input.  It will remember the last editing command, just as Vi, and repeat it when you press . in normal mode.</text></item></parent_chain></comment><story><title>Quick tip for developers who use OS X</title><text>OSX Terminal: hold option and click a position in the current line to move your cursor to that position. #yearslost</text></story>