Add LICENSE
[pygdb.git] / INSTALL.txt
1
2 1. Put the pygdb directory to somewhere, lets call it <dir> in this help file.
3 2. Add the following lines into your ~/.vimrc:
4
5 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
6 " pygdb
7 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
8
9 autocmd Filetype c,cpp :python import sys
10 autocmd Filetype c,cpp :python import vim
11 autocmd Filetype c,cpp :python pygdbdir = "<dir>"
12 autocmd Filetype c,cpp :python sys.path.append(pygdbdir)
13 autocmd Filetype c,cpp :python vim.command("source %s/pygdb.vim" % pygdbdir)
14 autocmd Filetype c,cpp call GDBMapDefaults()
15
16
17 where you replace <dir> by the corresponding path of pygdb. You may want to
18 add <dir> to the environment variable PATH such that you can call pygdb
19 from console directly.
20
21