I have code in ruby ββand python using vim, and mine vimrchas a parameter to easily enter breakpoints:
au FileType python map <silent> <leader>b oimport ipdb; ipdb.set_trace()<esc>
au FileType python map <silent> <leader>B Oimport ipdb; ipdb.set_trace()<esc>
au FileType ruby map <silent> <leader>b orequire 'pry'; binding.pry<esc>
au FileType ruby map <silent> <leader>B Orequire 'pry'; binding.pry<esc>
However, sometimes I get the wrong command, for example. ipdbin the ruby ββfile, and I have to restart vim. What could be the problem?
dimid source
share