title: Looking for an easy way to copy a word above and paste it at the current cursor position in Vim
body: <p>I wonder if there is a command to straight away copy a character or a word above the cursor and paste it at the current position?</p>
  
  <p>Example:</p>
  
  <pre><code>sig1   : in   std_logic;
  sig2   : in   std_logic;
  sig3   : ^
  </code></pre>
  
  <p>Consider the situation above, and my cursor is at the <code>^</code> position, I would like to duplicate the <code>in   std_logic;</code> and paste it at current position. A way that I know of that can work is:</p>
  
  <pre><code>1. Move cursor up
  2. Go into visual mode and highlight
  3. Yank
  4. Move cursor down
  5. Paste
  </code></pre>
  
  <p>Is there any easier way to do so? Or I'm left with the only option of writing a mapping in vimrc that execute the whole sequence for me?</p>
  
  <p>Edit:
  I found a mapping on the internet:</p>
  
  <pre><code>imap &lt;F1&gt; @&lt;Esc&gt;kyWjPA&lt;BS&gt;
  nmap &lt;F1&gt; @&lt;Esc&gt;kyWjPA&lt;BS&gt;
  imap &lt;F2&gt; @&lt;Esc&gt;kvyjPA&lt;BS&gt;
  nmap &lt;F2&gt; @&lt;Esc&gt;kvyjPA&lt;BS&gt;
  </code></pre>
  
  <p>but it seems that Greg's solution is easier!</p>