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
If this issue can be sorted out, I would like to update the tip.
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