aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorhumphreylin <[email protected]>2019-08-01 00:59:05 +0000
committerhumphreylin <[email protected]>2019-08-01 00:59:05 +0000
commit72b32c3beba27d7e5dd4f3b6b34dca6d0392adc7 (patch)
tree1f6fc80d44618e2c4f4fe21c2ee00e933aa210dc /.vimrc
parent1a36644e5d908e7ad2ccd96f8e06d2a5f755ee73 (diff)
downloaddotfiles-72b32c3beba27d7e5dd4f3b6b34dca6d0392adc7.tar.gz
dotfiles-72b32c3beba27d7e5dd4f3b6b34dca6d0392adc7.tar.bz2
dotfiles-72b32c3beba27d7e5dd4f3b6b34dca6d0392adc7.zip
change tmux prefix and vim leader key
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc7
1 files changed, 7 insertions, 0 deletions
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 <leader>
+nnoremap <leader>n :bn<CR>
+nnoremap <leader>p :bp<CR>
+nnoremap <leader>d :bd<CR>
+
" 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