From db8dd67caa7363c2088ea8f99f547048b195a087 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 10 Feb 2025 06:15:50 +0100 Subject: Added different key for macos tmux --- .tmux.conf | 11 +++++++++-- .vimrc | 6 ++++++ 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 set-option -sg escape-time 10 set-option -g mouse off -set -g prefix M-x -bind M-x send-prefix +if-shell "uname | grep -q Linux" { + set -g prefix M-x + bind M-x send-prefix +} + +if-shell "uname | grep -q Darwin" { + set -g prefix M-z + bind M-z send-prefix +} set -g base-index 1 set-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 @@ call plug#begin() Plug 'tpope/vim-sensible' Plug 'tpope/vim-commentary' + Plug 'tpope/vim-unimpaired' Plug 'airblade/vim-gitgutter' Plug 'ctrlpvim/ctrlp.vim' Plug 'dense-analysis/ale' @@ -23,6 +24,11 @@ nnoremap :ALEDetail nnoremap :!sh .vim nnoremap r :let @/ = '' +nmap [e +nmap ]e +vmap [egv +vmap ]egv + nmap gr :ALEFindReferences nmap gd :ALEGoToDefinition nmap re :ALERename -- cgit v1.2.3