change from BufRead to Filetype in install notes
[pygdb.git] / INSTALL.txt
index 949a01a7c05a58822dd6e2a67c39278cbb2ddafa..b48a265a59f70cdbaf4561e1cf88153467499926 100644 (file)
@@ -10,8 +10,8 @@
        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 such that you cou can call pygdb