-
Notifications
You must be signed in to change notification settings - Fork 3
/
init.vim
36 lines (31 loc) · 870 Bytes
/
init.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
call plug#begin()
Plug 'yazgoo/vmux', {'do': 'cargo install vmux' }
Plug 'preservim/vim-markdown'
Plug 'dhruvasagar/vim-zoom'
let g:floaterm_position = 'center'
let g:floaterm_width = 1.0
hi NormalFloat guibg=None
set winblend=0
let g:floaterm_height = 1.0
Plug 'voldikss/vim-floaterm'
call plug#end()
command! VD :VmuxDoneEditing
" terminal splits shortcuts
nnoremap <space>s :VmuxSplit<cr>
nnoremap <space>v :VmuxVsplit<cr>
nnoremap <space>h :winc h<cr>
nnoremap <space>j :winc j<cr>
nnoremap <space>k :winc k<cr>
nnoremap <space>l :winc l<cr>
nnoremap <space>q :qa!<cr>
nnoremap <space>w :w<cr>
nnoremap <space>t :tabnew<cr>
" double escape to leave terminal
tnoremap <Esc><Esc> <C-\><C-n>
" custom status line for
set laststatus=2
set statusline=
set statusline+=%F
set statusline+=%=
set statusline+=%{substitute(getcwd(),'^.*/','','')}
set shell=/bin/bash