Hi John, and all,

Thank you very much for helping me fix this!


Le 17 août 2010 à 13:21, John Beckett a écrit :

> Etienne Benoît Roesch wrote:
>> Would any of you know of a good way of handling csv, which
>> takes into account sorting? I have been trying to use the
>> ftplugin csv.vim
>> (http://vim.wikia.com/wiki/Working_with_CSV_files), posted
>> earlier this year, but for some reason it doesn't work with
>> MacVim. I haven't managed to know why; it just wouldn't load.
> 
> Bearing in mind that I know nothing about MacVim, the first step
> would be to examine how you know it would not load. In Vim, you
> can type :scriptnames to list the scripts that have loaded. If
> you start editing some normal (not CSV) file, :scriptnames
> should not show the csv.vim script. If you do something like:
>    :e myfile.csv
> 
> and repeat :scriptnames, you should see something like:
>    .../ftplugin/csv.vim
> 
> at the bottom of the list, where "..." is some directory.
> 
> Where did you put the csv.vim file?
> 
> The tip suggests ~/.vim/ftplugin/csv.vim and I will have to
> leave it for a MacVim person to say whether that works.
> 
> If you enter the following, does :scriptnames show csv.vim?
>    :set ft=csv

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

Thank you!

Etienne

-- 
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