Overwrite breakpoints when launching pygdb from vim, updating vim also after quit
[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 python << >>
6 import sys
7
8 #Do not use a ~ for home directory
9 pygdbdir = "<dir>"
10 sys.path.append(pygdbdir)
11 >>
12
13 autocmd BufRead *.c* source <dir>/pygdb.vim
14 autocmd BufRead *.c* call GDBMapDefaults()
15
16 where you replace <dir> by the corresponding path of pygdb. You may want to
17 add <dir> to the environment variable PATH such that you cou can call pygdb
18 from console directly.
19
20 If you like, you can add the following line. It leads to a configuration file
21 loading when opening a source file
22 autocmd BufRead *.c* :GDBLoadConfig<CR>
23