title: How to setup Vi Editing Mode for zsh
body: <p>I want to set vi in editing mode in zsh (I am using oh-my-zsh) at start automatically when I open my shell, so at the beginning of my <code>.zshrc</code> I have tried the following code:</p>
  
  <p><code>set -o vi</code></p>
  
  <p>or</p>
  
  <p><code>bindkey -v</code></p>
  
  <p>but when pressing enter in the shell I cannot enter the vi mode.</p>
  
  <p>If I tried one of the two commands in the shell, it works.</p>
  
  <p>Basically I want zsh to start in vi edit mode.</p>
  
  <p>Any ideas how to solve this problem?</p>