1. Put the pygdb directory to somewhere, lets call it in this help file. 2. Add the following lines into your ~/.vimrc: """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " 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() 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