mirror of
https://github.com/vbrandl/dotfiles
synced 2024-11-27 01:45:12 +01:00
Add vimux bindings, highlight current line, add vimux-cargo plugin
This commit is contained in:
parent
9ab22cce15
commit
1986f95bde
@ -40,6 +40,7 @@ Plugin 'junegunn/goyo.vim' " distraction free writing
|
|||||||
" Rust plugins
|
" Rust plugins
|
||||||
Plugin 'racer-rust/vim-racer' " rust autocomplete
|
Plugin 'racer-rust/vim-racer' " rust autocomplete
|
||||||
Plugin 'rust-lang/rust.vim' " rust syntax, error checking, etc
|
Plugin 'rust-lang/rust.vim' " rust syntax, error checking, etc
|
||||||
|
Plugin 'jtdowney/vimux-cargo' " run cargo in tmux using vimux
|
||||||
|
|
||||||
" LaTeX
|
" LaTeX
|
||||||
Plugin 'lervag/vimtex'
|
Plugin 'lervag/vimtex'
|
||||||
|
@ -81,6 +81,7 @@ set history=1000 " keep 1000 lines of history
|
|||||||
" set textwidth=120
|
" set textwidth=120
|
||||||
set number " display absolute number of current line
|
set number " display absolute number of current line
|
||||||
set relativenumber " display relative line numbers
|
set relativenumber " display relative line numbers
|
||||||
|
set cursorline " highlight current line
|
||||||
" encoding
|
" encoding
|
||||||
set fileencoding=utf-8
|
set fileencoding=utf-8
|
||||||
" break at last word instead of last char
|
" break at last word instead of last char
|
||||||
@ -354,4 +355,18 @@ endfunction
|
|||||||
autocmd! User GoyoEnter call <SID>goyo_enter()
|
autocmd! User GoyoEnter call <SID>goyo_enter()
|
||||||
autocmd! User GoyoLeave call <SID>goyo_leave()
|
autocmd! User GoyoLeave call <SID>goyo_leave()
|
||||||
|
|
||||||
|
" vimux mappings
|
||||||
|
" Prompt for a command
|
||||||
|
map <Leader>vp :VimuxPromptCommand<CR>
|
||||||
|
" Prompt for a make command
|
||||||
|
map <Leader>vm :VimuxPromptCommand("make ")<CR>
|
||||||
|
" Inspect runner pane
|
||||||
|
map <Leader>vi :VimuxInspectRunner<CR>
|
||||||
|
" Close runner
|
||||||
|
map <Leader>vq :VimuxCloseRunner<CR>
|
||||||
|
" Rerun last command
|
||||||
|
map <Leader>vl :VimuxRunLastCommand<CR>
|
||||||
|
" Stop runninc command
|
||||||
|
map <Leader>vs :VimuxInterruptRunner<CR>
|
||||||
|
|
||||||
" vim: set filetype=vim ts=8 sw=2 tw=120 noet :
|
" vim: set filetype=vim ts=8 sw=2 tw=120 noet :
|
||||||
|
Loading…
Reference in New Issue
Block a user