X-Git-Url: https://git.sthu.org/?p=pygdb.git;a=blobdiff_plain;f=INSTALL.txt;h=759bbaa058384eeef15a88955d7928cdda1d39c8;hp=631b1a504a3cc37e399302cd4234c6aa16b7a50a;hb=HEAD;hpb=71d49bb703b17f3000aac3d13767d7779fae9895
diff --git a/INSTALL.txt b/INSTALL.txt
index 631b1a5..759bbaa 100644
--- a/INSTALL.txt
+++ b/INSTALL.txt
@@ -6,17 +6,16 @@
" pygdb
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- autocmd Filetype c,cpp :python import sys
- autocmd Filetype c,cpp :python sys.path.append("
")
- autocmd Filetype c,cpp source /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 = ""
+ 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 by the corresponding path of pygdb. You may want to
add 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
-
+