-rw-r--r-- start/self/ftplugin/python.vim
1 setlocal tabstop=4 2 setlocal softtabstop=4 3 setlocal shiftwidth=4 4 setlocal textwidth=88 5 setlocal expandtab 6 7 " add python breakpoint: vim function that checks for 'breakpoint' in the current line and removes this line if it exists, otherwise adds a new line on this line with breakpoint() on it 8 function! Breakpoint() 9 let l:line = getline('.') 10 if match(l:line, 'breakpoint') != -1 11 execute 'normal! dd' 12 else 13 execute 'normal! Obreakpoint()' 14 endif 15 endfunction 16 nnoremap <C-b> :call Breakpoint()<CR> 17