integrate vim and tmux pane movement
This commit is contained in:
parent
00258bc985
commit
c4eb15e5b7
2 changed files with 12 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ call plug#begin('~/.local/share/nvim/plugged')
|
|||
" Base
|
||||
Plug 'tpope/vim-sensible'
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'christoomey/vim-tmux-navigator' " add seamless movement between vim and tmux
|
||||
|
||||
" Ecosystem
|
||||
" Plug 'tpope/vim-fugitive' - Will have to take a closer look some other time
|
||||
|
|
@ -44,6 +45,9 @@ let g:tmuxline_preset = {
|
|||
\'z' : '#H',
|
||||
\'options' : {}}
|
||||
|
||||
" automatically save the current buffer when navigating away from vim
|
||||
let g:tmux_navigator_save_on_switch = 1
|
||||
|
||||
" VIM SETTINGS
|
||||
" set truecolor (neovim)
|
||||
set termguicolors
|
||||
|
|
@ -110,7 +114,12 @@ vnoremap <F1> <ESC>
|
|||
nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR>
|
||||
|
||||
" 'open new tab' with leader-t (opens new buffer and switches to it)
|
||||
nnoremap <leader>t <C-w>v<C-w><C-w>
|
||||
" open actual new tab with leader-T
|
||||
nnoremap <leader>t <C-w>v<C-w><C-w>:NERDTreeToggle<cr>
|
||||
nnoremap <leader>T :tabedit .<cr>
|
||||
|
||||
" save current buffer with Ctrl-s
|
||||
nnoremap <C-s> :w<cr>
|
||||
|
||||
" open NERDtree with leader-e
|
||||
nnoremap <leader>e :NERDTreeToggle<CR>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue