X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=INSTALL.txt;h=cbcf4ecf78de76ee54d7db015973d20f4cc747d0;hb=d3609a9d494dbeeb69dde612aa676fe8864c643f;hp=a7dd531b2174e1126917b4afe90c0393ce5d5bfb;hpb=7c7da5bcd494d7a53b40952232a889f59c4dfbf2;p=pygdb.git diff --git a/INSTALL.txt b/INSTALL.txt index a7dd531..cbcf4ec 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -6,10 +6,12 @@ " 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 @@ -18,5 +20,5 @@ 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 + autocmd BufRead *.c* :GDBLoadConfig