diff --git a/ftplugin/c.vim b/ftplugin/c.vim index 26b8225..ccc0a43 100644 --- a/ftplugin/c.vim +++ b/ftplugin/c.vim @@ -3,7 +3,7 @@ cabbrev Help term ++close man nnoremap fb ][% nnoremap fe ][ -nnoremap h :term ++rows=15 ++close man +nnoremap h :term ++rows=15 ++close man 3 nnoremap x :term ++rows=15 %:p:h/run setlocal foldmethod=syntax foldlevel=99 diff --git a/ftplugin/python.vim b/ftplugin/python.vim index 4e735d6..9c25621 100644 --- a/ftplugin/python.vim +++ b/ftplugin/python.vim @@ -4,5 +4,6 @@ iabbrev ipd import pandas as pd 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__)) nnoremap x :term python % diff --git a/plugin/settings.vim b/plugin/settings.vim index e5a2c04..12c210d 100644 --- a/plugin/settings.vim +++ b/plugin/settings.vim @@ -114,6 +114,12 @@ let g:syntastic_python_checkers = ['python', 'pyflakes'] let g:syntastic_go_checkers = ['go'] " }}} +" Doge Stuff +" {{{ +let g:doge_enable_mappings = 0 +let g:doge_doc_standard_python = 'numpy' +" }}} + " Coding style " {{{ @@ -177,12 +183,25 @@ nnoremap ql :lclose nnoremap qq :cclose nnoremap qp :pclose nnoremap qh :helpclose -nnoremap qN :NERDTreeClose +" nnoremap qN :NERDTreeClose nnoremap qT :TagbarClose nnoremap gb :bn nnoremap gB :bp +let opener = ':term ++close ++hidden xo' +let termexe = $TERMEXE + +nnoremap xod :execute opener '%:p:h' +nnoremap xot :execute opener '-a' termexe '%: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 +" vnoremap xo "ay:execute opener 'a'qaq + +nnoremap u mwviwu`w:delm w +nnoremap U mwviwU`w:delm w + if has('win32') let my_settings_file = "$HOME/vimfiles/plugin/settings.vim" else @@ -226,7 +245,7 @@ nnoremap lp :lprev " Mappings for Plugins " {{{ -nnoremap N :NERDTree +nnoremap N :Explore nnoremap ] :YcmCompleter GoTo nnoremap yt :YcmCompleter GetType nnoremap ye :YcmShowDetailedDiagnostic diff --git a/plugin/statusline.vim b/plugin/statusline.vim index 06a3bf5..8fe7d6f 100644 --- a/plugin/statusline.vim +++ b/plugin/statusline.vim @@ -47,8 +47,8 @@ set statusline+=\ set statusline+=%{&fileencoding?&fileencoding:&encoding} set statusline+=\|%{&fileformat} "Unix/Win? set statusline+=%y "What's the type of the file? -set statusline+=\ -set statusline+=x%02B "Character under cursor... +" set statusline+=\ +" set statusline+=x%02B "Character under cursor... set statusline+=\ @%-2c "at column set statusline+=\