vimrc

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules

commit de0b383b0ebebc9d3777761fa6ebaa3652719cb9
parent 01a1caea6517f7356fe4a488c65bb1c44b375717
Author: Pablo Cárdenas <pablo-cardenas@outlook.com>
Date:   Mon, 23 Nov 2020 10:54:23 -0500

Added modules

Added the following modules:
 - taskwiki
 - calendar-vim
 - vimux

Diffstat:
M.gitmodules | 9+++++++++
Apack/pablo/start/calendar-vim | 1+
Apack/pablo/start/taskwiki | 1+
Apack/pablo/start/vimux | 1+
Mplugin/pablo/ale.vim | 10++++++++--
Aplugin/pablo/vimux.vim | 33+++++++++++++++++++++++++++++++++
Mvimrc | 1+
7 files changed, 54 insertions(+), 2 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -28,3 +28,12 @@ [submodule "pack/pablo/start/vim-gitgutter"] path = pack/pablo/start/vim-gitgutter url = https://github.com/airblade/vim-gitgutter.git +[submodule "pack/pablo/start/taskwiki"] + path = pack/pablo/start/taskwiki + url = https://github.com/tbabej/taskwiki +[submodule "pack/pablo/start/calendar-vim"] + path = pack/pablo/start/calendar-vim + url = git://github.com/mattn/calendar-vim +[submodule "pack/pablo/start/vimux"] + path = pack/pablo/start/vimux + url = https://github.com/benmills/vimux diff --git a/pack/pablo/start/calendar-vim b/pack/pablo/start/calendar-vim @@ -0,0 +1 @@ +Subproject commit de499b9525490b10edbd28fb8f0c4e81c6a6f20c diff --git a/pack/pablo/start/taskwiki b/pack/pablo/start/taskwiki @@ -0,0 +1 @@ +Subproject commit 14c02684383a7625941a8f580b9c34e4fd73cdb1 diff --git a/pack/pablo/start/vimux b/pack/pablo/start/vimux @@ -0,0 +1 @@ +Subproject commit 37f41195e6369ac602a08ec61364906600b771f1 diff --git a/plugin/pablo/ale.vim b/plugin/pablo/ale.vim @@ -1,19 +1,25 @@ let g:ale_linters = { -\ 'c': ['clang'], -\ 'cpp': ['clang'], +\ 'c': ['clangd'], +\ 'cpp': ['clangd'], +\ 'css': ['stylelint'], +\ 'html': ['stylelint', 'tidy'], \ 'markdown': ['proselint', 'writegood'], \ 'plaintex': ['lacheck', 'chktex'], \ 'python': ['pylint', 'flake8'], \ 'r': ['lintr'], +\ 'sass': ['stylelint'], \ 'tex': ['lacheck', 'chktex'], \ } let g:ale_fixers = { \ '*': ['remove_trailing_lines', 'trim_whitespace'], \ 'c': ['clang-format'], \ 'cpp': ['clang-format'], +\ 'css': ['stylelint'], +\ 'html': ['stylelint', 'tidy'], \ 'plaintex': ['latexindent'], \ 'python': ['autopep8', 'yapf'], \ 'r': ['styler'], +\ 'sass': ['stylelint'], \ 'tex': ['latexindent'], \} let g:ale_fix_on_save = 1 diff --git a/plugin/pablo/vimux.vim b/plugin/pablo/vimux.vim @@ -0,0 +1,33 @@ +" Run the current file with rspec +map <Leader>rb :call VimuxRunCommand("clear; rspec " . bufname("%"))<CR> + +" Prompt for a command to run +map <Leader>vp :VimuxPromptCommand<CR> + +" Run last command executed by VimuxRunCommand +map <Leader>vl :VimuxRunLastCommand<CR> + +" Inspect runner pane +map <Leader>vi :VimuxInspectRunner<CR> + +" Close vim tmux runner opened by VimuxRunCommand +map <Leader>vq :VimuxCloseRunner<CR> + +" Interrupt any command running in the runner pane +map <Leader>vx :VimuxInterruptRunner<CR> + +" Zoom the runner pane (use <bind-key> z to restore runner pane) +map <Leader>vz :call VimuxZoomRunner()<CR> + + +" Vimux as tslime replacement +function! VimuxSlime() + call VimuxSendText(@v) + call VimuxSendKeys("Enter") +endfunction + +" If text is selected, save it in the v buffer and send that buffer it to tmux +vmap <LocalLeader>vs "vy :call VimuxSlime()<CR> + +" Select current paragraph and send it to tmux +nmap <LocalLeader>vs vip<LocalLeader>vs<CR> diff --git a/vimrc b/vimrc @@ -21,6 +21,7 @@ if &t_Co > 2 syntax on set colorcolumn=80 + set background=light highlight ExtraWhitespace ctermbg=1 match ExtraWhitespace /\s\+$/ else