title: Column totals in Vim
body: <p>Does anyone know how to sum all colums in a table in Vim without using AWK or SED but vimscript?</p>
  
  <p>I want to select the columns which I want to sum and have the value below</p>
  
  <p>like this:</p>
  
  <pre><code>2,50       € 2,50
  25         € 2.200,40
  0,30       € 0,309
  100        € 1.400,3
  23,50      € 23,5
  --------------------
  Sum col1   Sum col2
  </code></pre>
  
  <p>This is an example with 2 columns, but I often have more columns.<br>
  The problem I had with awk is that it cannot handle the decimals seperator "," and thousand seperator "."</p>