diff --git a/ftplugin/python.vim b/ftplugin/python.vim index 04dc5ed..3016a0c 100644 --- a/ftplugin/python.vim +++ b/ftplugin/python.vim @@ -5,6 +5,7 @@ iabbrev inm if __name__ == '__main__' iabbrev itf import tensorflow as tf iabbrev sex raise SystemExit iabbrev ddf HERE = os.path.abspath(os.path.dirname(__file__)) +iabbrev dbg import pudb; pudb.set_trace() nnoremap x :term python % diff --git a/plugin/settings.vim b/plugin/settings.vim index 684ef97..9ce6ae5 100644 --- a/plugin/settings.vim +++ b/plugin/settings.vim @@ -194,7 +194,7 @@ let opener = ':term ++close ++hidden xo' let termexe = $TERMEXE nnoremap xod :execute opener '%:p:h' -nnoremap xot :execute opener '-a' termexe '%:p:h' +nnoremap xot :term cd %:p:h " nnoremap xow viw"ay:execute opener 'a'qaq " nnoremap xol ^vg_"ay:execute opener 'a'qaq " nnoremap xo" vi"ayy:execute opener 'a'qaq @@ -267,6 +267,9 @@ iabbrev miu ยต cabbrev w!! w !sudo tee > /dev/null % cabbrev ddf %:p:h cabbrev Pydoc term ++close python -m pydoc +cabbrev bsp sbuffer +cabbrev bvs vert sbuffer +cabbrev tabb tab sbuffer " }}} " Commands