aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-02-10 06:15:50 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-02-10 06:15:50 +0100
commitdb8dd67caa7363c2088ea8f99f547048b195a087 (patch)
treecc2eadbfc13fba39ef2a60ffc98342c3354d3bcf
parent69583ca02a3033d1a22523984258930ef31490a6 (diff)
downloaddotfiles-db8dd67caa7363c2088ea8f99f547048b195a087.tar.gz
Added different key for macos tmux
-rw-r--r--.tmux.conf11
-rw-r--r--.vimrc6
2 files changed, 15 insertions, 2 deletions
diff --git a/.tmux.conf b/.tmux.conf
index f71afa0..4739600 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -5,8 +5,15 @@ set-option -g set-titles on
5set-option -sg escape-time 10 5set-option -sg escape-time 10
6set-option -g mouse off 6set-option -g mouse off
7 7
8set -g prefix M-x 8if-shell "uname | grep -q Linux" {
9bind M-x send-prefix 9 set -g prefix M-x
10 bind M-x send-prefix
11}
12
13if-shell "uname | grep -q Darwin" {
14 set -g prefix M-z
15 bind M-z send-prefix
16}
10 17
11set -g base-index 1 18set -g base-index 1
12set-window-option -g pane-base-index 1 19set-window-option -g pane-base-index 1
diff --git a/.vimrc b/.vimrc
index b2a36db..37f9e69 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,6 +1,7 @@
1call plug#begin() 1call 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'
@@ -23,6 +24,11 @@ nnoremap <C-j> :ALEDetail<cr>
23nnoremap <C-r> :!sh .vim<CR> 24nnoremap <C-r> :!sh .vim<CR>
24nnoremap <Leader>r :let @/ = ''<CR> 25nnoremap <Leader>r :let @/ = ''<CR>
25 26
27nmap <C-Up> [e
28nmap <C-Down> ]e
29vmap <C-Up> [egv
30vmap <C-Down> ]egv
31
26nmap <silent> gr :ALEFindReferences<cr> 32nmap <silent> gr :ALEFindReferences<cr>
27nmap <silent> gd :ALEGoToDefinition<cr> 33nmap <silent> gd :ALEGoToDefinition<cr>
28nmap <silent> re :ALERename<cr> 34nmap <silent> re :ALERename<cr>