Add LICENSE
[pygdb.git] / INSTALL.txt
index a7dd531b2174e1126917b4afe90c0393ce5d5bfb..759bbaa058384eeef15a88955d7928cdda1d39c8 100644 (file)
@@ -6,17 +6,16 @@
       "  pygdb
       """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
       
-      autocmd Filetype c,cpp :python import sys
-      autocmd Filetype c,cpp :python sys.path.append("<dir>")
-      autocmd Filetype c,cpp source <dir>/pygdb.vim
-      autocmd Filetype c,cpp call GDBMapDefaults()
+       autocmd Filetype c,cpp :python import sys
+       autocmd Filetype c,cpp :python import vim
+       autocmd Filetype c,cpp :python pygdbdir = "<dir>"
+       autocmd Filetype c,cpp :python sys.path.append(pygdbdir)
+       autocmd Filetype c,cpp :python vim.command("source %s/pygdb.vim" % pygdbdir)
+       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 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>
-
+