nataraj: (Default)
[personal profile] nataraj
I've written a wiki article about configuring vim for postgres development.

https://wiki.postgresql.org/wiki/Configuring_vim_for_postgres_development

I actually started to restore my vim configuration (I've lost it some time ago) and found out that these information is scattered along the web. And it is better to keep it in one place.

I've described in the article all options and plugins that I used for pg development.

If you have your own vim experience and know some tools that can be used to make development and following codestyle more easy, please add them there.

PS. I've already written about it to the mailing list. Just want to write about it in the blog too...

Date: 2019-01-02 06:58 am (UTC)
vitus_wagner: My photo 2005 (Default)
From: [personal profile] vitus_wagner
You haven't yet found plugin, which allows to run top-level make from inside vim and get cursor positioned at warnings and errors?

(recursive make considered harmful, but postgres use it anyway).

Date: 2019-01-02 02:15 pm (UTC)
vitus_wagner: My photo 2005 (Default)
From: [personal profile] vitus_wagner
Type

:help quickfix

in the vim command line.

How I now do it:
I start make from the shell prompt,. wait until it fails, then look to the last line reading "Leaving directory ..." in the make output. Then change to this directory, run vim without arguments and type :make
Thus I get erroneous file open and cursor posititoned at the first error/warning.

Date: 2019-01-02 02:46 pm (UTC)
vitus_wagner: My photo 2005 (Default)
From: [personal profile] vitus_wagner
Really. vim is able to work deal recursive make.
If you don't set errorformat for something less useful than default one.
I just have old errorformat line in my .vimrc. When I've deleted it and resorted to use compiled in one (which is more terrifying than badly written perl one-liner) it started to work.

Profile

nataraj: (Default)
Swami Dhyan Nataraj

January 2019

S M T W T F S
   123 45
67 89101112
13 141516 171819
20212223242526
2728293031  

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 18th, 2019 02:22 am
Powered by Dreamwidth Studios