X-Git-Url: https://git.sthu.org/?p=pygdb.git;a=blobdiff_plain;f=INSTALL.txt;h=759bbaa058384eeef15a88955d7928cdda1d39c8;hp=9602b1e13a657332054cce3c2be51ce196486d86;hb=HEAD;hpb=c90feb4c530cdb4e5abbfac044fea74d88975775 diff --git a/INSTALL.txt b/INSTALL.txt index 9602b1e..759bbaa 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -1,18 +1,21 @@ -1. Put the pygdb directory to somewhere, lets call it -2. Add the following lines into your ~/.gvimrc: +1. Put the pygdb directory to somewhere, lets call it in this help file. +2. Add the following lines into your ~/.vimrc: - python << >> - import sys + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + " pygdb + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + + 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() - #Do not use a ~ for home directory - pygdbdir = "" - sys.path.append(pygdbdir) - >> - - autocmd BufRead *.c* source /pygdb.vim - autocmd BufRead *.c* call GDBMapDefaults() where you replace by the corresponding path of pygdb. You may want to - add to the environment variable PATH resp. PYTHONPATH such that you - cou can call pygdb from console by hand. + add to the environment variable PATH such that you can call pygdb + from console directly. + +