Added different key for macos tmux

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2025-02-10 06:15:50 +0100
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2025-02-10 06:15:50 +0100
Commit db8dd67caa7363c2088ea8f99f547048b195a087 (patch)
-rw-r--r-- .tmux.conf 11
-rw-r--r-- .vimrc 6
2 files changed, 15 insertions, 2 deletions
diff --git a/.tmux.conf b/.tmux.conf
...
5
set-option -sg escape-time 10
5
set-option -sg escape-time 10
6
set-option -g mouse off
6
set-option -g mouse off
7
  
7
  
8
set -g prefix M-x
8
if-shell "uname | grep -q Linux" {
9
bind M-x send-prefix
9
	set -g prefix M-x
  
10
	bind M-x send-prefix
  
11
}
  
12
  
  
13
if-shell "uname | grep -q Darwin" {
  
14
	set -g prefix M-z
  
15
	bind M-z send-prefix
  
16
}
10
  
17
  
11
set -g base-index 1
18
set -g base-index 1
12
set-window-option -g pane-base-index 1
19
set-window-option -g pane-base-index 1
...
diff --git a/.vimrc b/.vimrc
1
call plug#begin()
1
call plug#begin()
2
  Plug 'tpope/vim-sensible'
2
  Plug 'tpope/vim-sensible'
3
  Plug 'tpope/vim-commentary'
3
  Plug 'tpope/vim-commentary'
  
4
  Plug 'tpope/vim-unimpaired'
4
  Plug 'airblade/vim-gitgutter'
5
  Plug 'airblade/vim-gitgutter'
5
  Plug 'ctrlpvim/ctrlp.vim'
6
  Plug 'ctrlpvim/ctrlp.vim'
6
  Plug 'dense-analysis/ale'
7
  Plug 'dense-analysis/ale'
...
22
nnoremap <C-j> :ALEDetail<cr>
23
nnoremap <C-j> :ALEDetail<cr>
23
nnoremap <C-r> :!sh .vim<CR>
24
nnoremap <C-r> :!sh .vim<CR>
24
nnoremap <Leader>r :let @/ = ''<CR>
25
nnoremap <Leader>r :let @/ = ''<CR>
  
26
  
  
27
nmap <C-Up> [e
  
28
nmap <C-Down> ]e
  
29
vmap <C-Up> [egv
  
30
vmap <C-Down> ]egv
25
  
31
  
26
nmap <silent> gr :ALEFindReferences<cr>
32
nmap <silent> gr :ALEFindReferences<cr>
27
nmap <silent> gd :ALEGoToDefinition<cr>
33
nmap <silent> gd :ALEGoToDefinition<cr>
...