sponsor Vim development Vim logo Vim Book Ad

CSV delimited field jumper : Map keys to easily jump to fields in CSV files

 script karma  Rating 15/9, Downloaded by 1429  Comments, bugs, improvements  Vim wiki

created by
J Robertson
 
script type
utility
 
description
I wrote these simple functions to easily jump to specific fields in CSV (and tildle delimited) data/text files.  There are two functions: one tells you the current field number the cursor is on, and the other prompts you for the field number to move to on the current line.

At work, all of our data files are CSV, so this has saved me countless hours verifying data.

At the bottom of mmfield.vim, you can specify which keys to map to the functions.
 
install details
In your .vimrc file, add a line:
autocmd BufRead *.dat,*.dme source mmfield.vim

This will source the mmfield.vim functions for when you edit files with extensions of .dat or .dme.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
mmfield.vim 1.0 2002-06-07 6.0 J Robertson Initial upload
ip used for rating: 18.117.70.132

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github