aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-03-23 18:26:11 +0800
committergxlin <[email protected]>2021-03-23 18:26:11 +0800
commitc81b6905aa178349c8633ac623ae2cd1d91f88a9 (patch)
treec1b692fbe008bf15cbd611d09168a9e87242d217 /.vim
parentbd166c76b65006f2945d5072fe07e4777c085eff (diff)
downloaddotfiles-c81b6905aa178349c8633ac623ae2cd1d91f88a9.tar.gz
dotfiles-c81b6905aa178349c8633ac623ae2cd1d91f88a9.tar.bz2
dotfiles-c81b6905aa178349c8633ac623ae2cd1d91f88a9.zip
More config
Diffstat (limited to '.vim')
-rw-r--r--.vim/init.vim23
-rw-r--r--.vim/plugins/ime.vim4
-rw-r--r--.vim/plugins/startify.vim1
-rw-r--r--.vim/plugins/tex.vim1
4 files changed, 21 insertions, 8 deletions
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 <D-1> :tabn 1<CR>
+ noremap <D-2> :tabn 2<CR>
+ noremap <D-3> :tabn 3<CR>
+ noremap <D-4> :tabn 4<CR>
+ noremap <D-5> :tabn 5<CR>
+ noremap <D-6> :tabn 6<CR>
+ noremap <D-7> :tabn 7<CR>
+ noremap <D-8> :tabn 8<CR>
+ noremap <D-9> :tabn 9<CR>
+ noremap <D-0> :tablat<CR>
endif
endif
@@ -83,8 +94,12 @@ set tags=./.tags;,.tags
" mapping
let mapleader=',' " change the key <leader>
-nnoremap <leader>n :bn<CR>
-nnoremap <leader>p :bp<CR>
+inoremap jk <Esc>
+nnoremap [w <c-w>h <CR>
+nnoremap [ww <c-w>k <CR>
+nnoremap ]w :wincmd l <CR>
+nnoremap ]ww :wincmd j <CR>
+nnoremap <leader>cd :cd %:p:h<CR> :pwd<CR>
source ~/.dotfiles/.vim/plugins/init.vim
diff --git a/.vim/plugins/ime.vim b/.vim/plugins/ime.vim
deleted file mode 100644
index de7dcf2..0000000
--- a/.vim/plugins/ime.vim
+++ /dev/null
@@ -1,4 +0,0 @@
-Plug 'pi314/ime.vim'
-Plug 'pi314/ime-phonetic.vim'
-
-let g:ime_plugins = ['pinyin']
diff --git a/.vim/plugins/startify.vim b/.vim/plugins/startify.vim
new file mode 100644
index 0000000..a4f7c1d
--- /dev/null
+++ b/.vim/plugins/startify.vim
@@ -0,0 +1 @@
+Plug 'mhinz/vim-startify'
diff --git a/.vim/plugins/tex.vim b/.vim/plugins/tex.vim
new file mode 100644
index 0000000..b74256a
--- /dev/null
+++ b/.vim/plugins/tex.vim
@@ -0,0 +1 @@
+Plug 'lervag/vimtex'