Etienne Benoît Roesch wrote:
> Initially, I put it in ~/.vim/ftplugin/ as instructed, but it
> did not load (did not show up with :scriptnames). Then I
> moved it to ~/.vim/plugin/ instead. The command :scriptnames
> does show ~/.vim/plugin/csv.vim now, but loading a .csv file
> does not trigger the plugin, nor does creating a file from
> scratch with fields between commas and :set ft=csv

As indicated in the "Usage" section at:
http://vim.wikia.com/wiki/Working_with_CSV_files

you have to put csv.vim in the *ftplugin* directory (not
plugin), *and* you have to put a .csv rule in filetype.vim.

I suggest you move csv.vim from plugin to ftplugin, and double
check the .csv rule, then close Vim and start it again.

To be sure you have the .csv rule, enter the following in Vim:
    :au BufNewFile *.csv
    :au BufRead *.csv

They should both show something like:
filetypedetect  BufRead
    *.csv     setf csv

John

-- 
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to