[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] Add vim configuration that makes vim auto-indent code



---
 .lvimrc |   10 ++++++++++
 HACKING |    5 +++++
 2 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 .lvimrc

diff --git a/.lvimrc b/.lvimrc
new file mode 100644
index 0000000..3a732ce
--- /dev/null
+++ b/.lvimrc
@@ -0,0 +1,10 @@
+set nocompatible
+filetype on
+set autoindent
+set smartindent
+set cindent
+set tabstop=4
+set shiftwidth=4
+set expandtab
+set cinoptions=(0,:0,l1,t0
+filetype plugin indent on
diff --git a/HACKING b/HACKING
index 4a71b37..adfb7ae 100644
--- a/HACKING
+++ b/HACKING
@@ -87,6 +87,11 @@ If you use Emacs, add the following to one of one of your start-up files
             '(lambda () (if (string-match "/libvirt" (buffer-file-name))
                             (libvirt-c-mode))))
 
+If you use vim, install vim script at this page:
+http://www.vim.org/scripts/script.php?script_id=1408
+it will auto load .lvimrc at the root of libvirt source only when you're
+editing libvirt's code. Or you can append the contents of .lvimrc to you
+.vimrc file.
 
 Code formatting (especially for new code)
 =========================================
-- 
1.7.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]