From c81b6905aa178349c8633ac623ae2cd1d91f88a9 Mon Sep 17 00:00:00 2001 From: gxlin Date: Tue, 23 Mar 2021 18:26:11 +0800 Subject: More config --- .vim/init.vim | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to '.vim/init.vim') diff --git a/.vim/init.vim b/.vim/init.vim index bd00085..93bebcc 100644 --- a/.vim/init.vim +++ b/.vim/init.vim @@ -13,7 +13,7 @@ filetype indent on set modeline set textwidth=72 set formatoptions+=mB -set formatoptions-=t +set formatoptions-=tc set secure set hidden @@ -29,8 +29,19 @@ endif if has("gui_running") if has("gui_macvim") set guifont=Monaco:h15 - set noimdisable set transparency=10 + set noimdisable + + noremap :tabn 1 + noremap :tabn 2 + noremap :tabn 3 + noremap :tabn 4 + noremap :tabn 5 + noremap :tabn 6 + noremap :tabn 7 + noremap :tabn 8 + noremap :tabn 9 + noremap :tablat endif endif @@ -83,8 +94,12 @@ set tags=./.tags;,.tags " mapping let mapleader=',' " change the key -nnoremap n :bn -nnoremap p :bp +inoremap jk +nnoremap [w h +nnoremap [ww k +nnoremap ]w :wincmd l +nnoremap ]ww :wincmd j +nnoremap cd :cd %:p:h :pwd source ~/.dotfiles/.vim/plugins/init.vim -- cgit v1.2.3