title: Formatting text with vim
body: <p>I have a file with 275 lines of code. The lines are constant declarations in c.
  e.g</p>
  
  <pre><code>      71 #define LM_HOST_ALLOWED             3100 //Boolean.
  </code></pre>
  
  <p>My problem is that it has many duplicate lines since I created that file by copying and pasting from other files and the lines are not the same 100%</p>
  
  <p>e.g</p>
  
  <pre><code>      71 #define LM_HOST_ALLOWED             3100 //Boolean.
        72 #define LM_HOST_ALLOWED               3100 //Boolean.
  </code></pre>
  
  <p>Is there a way in vim to find those lines and keep only one of those. Or is there a way to format all lines to have the number (3100 in our case) factor at a certain level? e.g 6 tabs or something? I started doing it manually but it's a pain entering and leaving edit mode. PLS HELP! If this question doesn't make sense please help me improve it.</p>
  
  <p><strong>edit:</strong>
  I found a solution about formating the text:
  in vim's normal mode I type: </p>
  
  <p><code>qa0f f 50i &lt;esc&gt;38|dwjq274@a</code>
   and it does the job. I'm really glad I found this (in this forum as well)
  the problem now is that the <code>uniq</code> command doesn't do what I'm reading it should do. In vim I type :!uniq but not all duplicate lines get deleted. I'm thinking that it could be because of tab instead of spaces in some places. Any information about that?</p>