Reputation: 127
There are various features fo the SQL filetype plugin mentioned in this helpfile that do not seem to work for me. I have installed the following files in to the correct places (all called sql.vim)
Was this even necessary? The syntax highlighting is now correct, but should something that is in the help files by default require downloading plugins?
Anyway, for example, the functions [[,]],[] and ][ do not work as described, and :SQLSetType is not a recognised command. Do I need to do more to enable these?
Thank you in advance for any help
Upvotes: 0
Views: 390
Reputation: 172718
The SQL syntax and filetype plugins by David Fishburn are indeed distributed with the Vim runtime; you only need to install them into your ~/.vim/
directory if you want a newer version than what is delivered by your current Vim version. (So usually, no.)
If the syntax is working but the filetype definitions aren't, you're likely missing
:filetype plugin indent on
in your ~/.vimrc
. You can check the :scriptnames
output and with :verbose nmap ]]
.
Upvotes: 2