{"id":22117714,"url":"https://github.com/prosumma/vim-pgsql","last_synced_at":"2026-02-01T06:32:54.174Z","repository":{"id":21589575,"uuid":"24909635","full_name":"Prosumma/vim-pgsql","owner":"Prosumma","description":"PGSQL syntax highlighting, etc.","archived":false,"fork":false,"pushed_at":"2015-12-03T03:52:26.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T18:53:43.685Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"VimL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Prosumma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-07T20:16:39.000Z","updated_at":"2018-10-27T18:07:12.000Z","dependencies_parsed_at":"2022-07-23T10:00:38.011Z","dependency_job_id":null,"html_url":"https://github.com/Prosumma/vim-pgsql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Prosumma/vim-pgsql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fvim-pgsql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fvim-pgsql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fvim-pgsql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fvim-pgsql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prosumma","download_url":"https://codeload.github.com/Prosumma/vim-pgsql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fvim-pgsql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28970560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T05:48:53.985Z","status":"ssl_error","status_checked_at":"2026-02-01T05:47:55.855Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T13:38:45.837Z","updated_at":"2026-02-01T06:32:54.153Z","avatar_url":"https://github.com/Prosumma.png","language":"VimL","funding_links":[],"categories":[],"sub_categories":[],"readme":"Opinionated Syntax Highlighting For PostgreSQL In Vim!\n====\n\nI started with Devrim Gunduz' psql.vim at http://www.gunduz.org/postgresql/pgsql.vim, but very little of that remains. This is PG highlighting the way I use it. It may be useful to you, it may not. I suspect it will work very well for most, and if not, it's not too hard to fork.\n\nSome improvements:\n\nSyntax Highlighting For Function Bodies\n----\n\n    CREATE FUNCTION foo(_x INTEGER) RETURNS INTEGER\n    STRICT IMMUTABLE\n    AS $$\n    BEGIN\n    \tRETURN _x;\n    END;\n    $$;\n\nThe text inside the $$ delimiters will be highlighted. Of course, the syntax highlighting is _always_ more PostgreSQL highlighting, since that's all I ever use. (I've considered conventions such as $PYTHON$ or $PGSQL$ with $PGSQL$ being the default, but since I don't use Python in PG, I never had the motivation.) \n\nA Broader Set Of Keywords\n----\n\nI've done a good, but probably imperfect job of adding far more keywords and trying to get them to work contextually.\n\nVariables\n---\n\nOne of the things I've always liked about Microsoft's SQL Server is the @ sigil it uses for variables. This makes them stand out and prevents collisions with field names. Sadly, PG has no such sigil, and its parser won't allow you to use one. As a compromise, I always prefix my variables with an underscore, e.g., \\_foo. _If you do this, you will get syntax highlighting for variables._ They will stand out nicely, depending upon your color scheme. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprosumma%2Fvim-pgsql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprosumma%2Fvim-pgsql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprosumma%2Fvim-pgsql/lists"}