From 72b32c3beba27d7e5dd4f3b6b34dca6d0392adc7 Mon Sep 17 00:00:00 2001 From: humphreylin Date: Thu, 1 Aug 2019 00:59:05 +0000 Subject: change tmux prefix and vim leader key --- .tmux.conf | 2 +- .vimrc | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 9f28f2e..760637a 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,6 +1,6 @@ # modify the prefix unbind ^b -set -g prefix 'C-a' +set -g prefix 'M-`' # swtich between pane bind h select-pane -L diff --git a/.vimrc b/.vimrc index d76de22..d168226 100644 --- a/.vimrc +++ b/.vimrc @@ -31,6 +31,12 @@ set autoread set wildmenu set wildmode=longest:list,full +" mapping +let mapleader=',' " change the key +nnoremap n :bn +nnoremap p :bp +nnoremap d :bd + " Plugin if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs @@ -45,6 +51,7 @@ Plug 'vim-airline/vim-airline-themes' Plug 'flazz/vim-colorschemes' Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} Plug 'scrooloose/nerdtree' +Plug 'vimwiki/vimwiki' call plug#end() " Plugin config -- cgit v1.2.3