change from BufRead to Filetype in install notes
[pygdb.git] / INSTALL.txt
index 9602b1e13a657332054cce3c2be51ce196486d86..b48a265a59f70cdbaf4561e1cf88153467499926 100644 (file)
@@ -1,6 +1,6 @@
 
-1. Put the pygdb directory to somewhere, lets call it <dir>
-2. Add the following lines into your ~/.gvimrc:
+1. Put the pygdb directory to somewhere, lets call it <dir> in this help file.
+2. Add the following lines into your ~/.vimrc:
 
        python << >>
        import sys
        sys.path.append(pygdbdir)
        >>
 
-       autocmd BufRead *.c* source <dir>/pygdb.vim
-       autocmd BufRead *.c* call GDBMapDefaults()
+       autocmd Filetype c,cpp source <dir>/pygdb.vim
+       autocmd Filetype c,cpp call GDBMapDefaults()
 
    where you replace <dir> by the corresponding path of pygdb. You may want to
-   add <dir> to the environment variable PATH resp. PYTHONPATH such that you
-   cou can call pygdb from console by hand.
+   add <dir> to the environment variable PATH such that you cou can call pygdb
+   from console directly.
+
+   If you like, you can add the following line. It leads to a configuration file
+   loading when opening a source file
+       autocmd BufRead *.c* :GDBLoadConfig<CR>
+