Commit abbba0cb authored by Adrien Oliva's avatar Adrien Oliva
Browse files

Add python bindings and checkers

parent 6d753b2e
diff --git a/plugin/minibufexpl.vim b/plugin/minibufexpl.vim
index 1797ee1..42a7596 100644
--- a/plugin/minibufexpl.vim
+++ b/plugin/minibufexpl.vim
@@ -2369,7 +2369,7 @@ function! <SID>GetSelectedBuffer()
let l:save_reg = @"
let @" = ""
- normal ""yi[
+ normal! ""yi[
if @" != ""
let l:retv = <SID>GetBufferNumber(@")
else
......@@ -54,3 +54,8 @@ inoremap <C-s> <ESC>:w<Return>i
" Change leader key to "," (more accessible than \)
let mapleader = ","
" Map Python interpreter
noremap <F7> :!python "%"<Return>
noremap <S-F7> :!python -i "%"<Return>
noremap <F8> :!make coverage \|\| make check \|\| python -m pytest<Return>
......@@ -10,3 +10,4 @@ let g:syntastic_check_on_wq = 0
let g:syntastic_enable_perl_checker = 1
let g:syntastic_sh_shellcheck_args = "-x"
let g:syntastic_python_checkers = ["python", "flake8", "pylint", "mypy", "bandit", "pydocstyle"]
......@@ -66,6 +66,7 @@ install_or_update_plugin "https://github.com/vim-scripts/DoxygenToolkit.vim" "ma
install_or_update_plugin "https://github.com/editorconfig/editorconfig-vim" "master"
install_or_update_plugin "https://github.com/ryanoasis/vim-devicons" "master"
install_or_update_plugin "https://github.com/l-qing/minibufexpl.vim.git" "master"
install_or_update_plugin "https://github.com/alfredodeza/pytest.vim" "master"
# Finalize process for YouCompleteMe
(
......@@ -73,3 +74,9 @@ install_or_update_plugin "https://github.com/l-qing/minibufexpl.vim.git" "master
git submodule update --init --recursive
./install.py --clang-completer --java-completer
)
# Patch minibufexpl
(
cd "${PLUGIN_DIR}/minibufexpl.vim.git" || exit 1
patch -p1 < "${CWD}/002-minibufexpl.patch"
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment