sql - GVim not recognizing commands in plugin -


how gvim recognize sqlcomplete.vim commands?

i'm unable use sqlcomplete.vim plugin. when running :version following output:

enter image description here

and scrolling way bottom here rest of output:

enter image description here

and env variables:

:echo $vim c:\users\me\.babun\cygwin\etc\  :echo $home h:\ 

here output of :scriptnames:

enter image description here

when running sqlcomplete.vim command such :sqlsettype sqlanywhere output is:

enter image description here

how gvim recognize sqlcomplete.vim commands?

another piece of helpful information output of :echo &rtp :

h:\vimfiles,h:\.vim\bundle\vundle.vim,h:\.vim\bundle\dbext.vim,h:\.vim\bundle\sq lcomplete.vim,c:\users\me\.babun\cygwin\etc\vimfiles,c:\users\me\.babu n\cygwin\etc\,c:\users\me\.babun\cygwin\etc\vimfiles/after,h:\vimfiles/afte r,h:\.vim/bundle/vundle.vim,h:\.vim\bundle\vundle.vim/after,h:\.vim\bundle\dbext .vim/after,h:\.vim\bundle\sqlcomplete.vim/after 

some points check:

  1. :scriptnames shows plugin\sqlcomplete.vim

but link provided points .../vim/runtime/autoload/sqlcomplete.vim, there no .../vim/runtime/plugin/sqlcomplete.vim, , version @ vim.org doesn't contains /plugin file:

install details copy sqlcomplete.vim to: .vim/autoload/sqlcomplete.vim (unix) vimfiles\autoload\sqlcomplete.vim (windows)  documentation: :h sql.txt  

maybe have installed incorrectly.

  1. the file on link has version 12 @ header, while latest version 15. try updating latest version

  2. note plugin does not define sqlsettype command.

you check simple searching file on link. , on header:

" vim omni completion script sql " language: sql " maintainer: david fishburn <dfishburn dot vim @ gmail dot com> " version: 15.0 " last change: 2013 may 13 " homepage: http://www.vim.org/scripts/script.php?script_id=1572 " usage: detailed " ":help sql.txt" " or ":help ft-sql-omni" " or read $vimruntime/doc/sql.txt 

following :help sql.txt:

2.1 sqlsettype                  *sqlsettype* *sqlsettype* -------------- people work many different databases, nice able flip between various vendors rules (indent, syntax) on per buffer basis, @ time.  ftplugin/sql.vim file defines function: >     sqlsettype 

and scriptnames not listing ftplugin/sql.vim


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -