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 :