From 1986f95bde75af867e7ca41dab4fc395e4a56991 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 18 Feb 2017 15:25:06 +0100 Subject: [PATCH] Add vimux bindings, highlight current line, add vimux-cargo plugin --- editors/vim/plugins.vim | 1 + editors/vim/vimrc | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/editors/vim/plugins.vim b/editors/vim/plugins.vim index ca13dd4..036910d 100644 --- a/editors/vim/plugins.vim +++ b/editors/vim/plugins.vim @@ -40,6 +40,7 @@ Plugin 'junegunn/goyo.vim' " distraction free writing " Rust plugins Plugin 'racer-rust/vim-racer' " rust autocomplete Plugin 'rust-lang/rust.vim' " rust syntax, error checking, etc +Plugin 'jtdowney/vimux-cargo' " run cargo in tmux using vimux " LaTeX Plugin 'lervag/vimtex' diff --git a/editors/vim/vimrc b/editors/vim/vimrc index 1efa283..f59d687 100644 --- a/editors/vim/vimrc +++ b/editors/vim/vimrc @@ -81,6 +81,7 @@ set history=1000 " keep 1000 lines of history " set textwidth=120 set number " display absolute number of current line set relativenumber " display relative line numbers +set cursorline " highlight current line " encoding set fileencoding=utf-8 " break at last word instead of last char @@ -354,4 +355,18 @@ endfunction autocmd! User GoyoEnter call goyo_enter() autocmd! User GoyoLeave call goyo_leave() +" vimux mappings +" Prompt for a command +map vp :VimuxPromptCommand +" Prompt for a make command +map vm :VimuxPromptCommand("make ") +" Inspect runner pane +map vi :VimuxInspectRunner +" Close runner +map vq :VimuxCloseRunner +" Rerun last command +map vl :VimuxRunLastCommand +" Stop runninc command +map vs :VimuxInterruptRunner + " vim: set filetype=vim ts=8 sw=2 tw=120 noet :