PostgreSQL 8.0.0 �����ĵ���PostgreSQL �й� ������ | ||||
---|---|---|---|---|
Prev | Fast Backward | Fast Forward | Next |
�����ʽʹ��ÿ���Ʊ����tab��4�еĿհף� Ŀǰ�DZ����Ʊ��״̬��Ҳ����˵�Ʊ������չ��Ϊ�հף��� ÿ����������ζ��Ǹ����һ�� tab�����ֹ���������λ�ȣ���ѭ BSD ��ͳ��
��Ȼ�ύ�IJ���������Ҫ����ȫ��ѭ��Щ��ʽ������������û�����ô���� ��Ĵ��뽫�ᱻ pgindent ������Ȼ���������������������������ĸ�ʽ��ϰ�߸��ÿ���
����ʹ�� Emacs ���ˣ��������У��������ƵĶ��������ӵ���� ~/.emacs ��ʼ���ļ�����ȥ��
;; check for files with a path containing "postgres" or "pgsql" (setq auto-mode-alist (cons '("\\(postgres\\|pgsql\\).*\\.[ch]\\'" . pgsql-c-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\(postgres\\|pgsql\\).*\\.cc\\'" . pgsql-c-mode) auto-mode-alist)) (defun pgsql-c-mode () ;; sets up formatting for PostgreSQL C code (interactive) (c-mode) (setq-default tab-width 4) (c-set-style "bsd") ; set c-basic-offset to 4, plus other stuff (c-set-offset 'case-label '+) ; tweak case indent to match PG custom (setq indent-tabs-mode t)) ; make sure we keep tabs when indenting
���� vi����� ~/.vimrc �����൱���ļ�Ӧ�ð�������Ķ�����
set tabstop=4
������ vi �������
:set ts=4
�ı�������� more �� less �����������������
more -x4 less -x4
�����Ϳ�����������ȷ��ʾ tab ����