Created
June 6, 2012 01:19
-
-
Save ha1t/2879251 to your computer and use it in GitHub Desktop.
Windowsっぽい感じにvimを使うためのvim script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Shift + 矢印で visual modeがはじまる | |
nnoremap <S-Up> v<Up> | |
nnoremap <S-Down> v<Down> | |
nnoremap <S-Left> v<Left> | |
nnoremap <S-Right> v<Right> | |
" visual mode 中のShift + 矢印は範囲選択 | |
vnoremap <S-Up> k | |
vnoremap <S-Down> j | |
vnoremap <S-Left> h | |
vnoremap <S-Right> l | |
" visual mode 中に矢印押すと選択範囲は消滅する | |
vnoremap <Up> <Esc><Up> | |
vnoremap <Down> <Esc><Down> | |
vnoremap <Left> <Esc><Left> | |
vnoremap <Right> <Esc><Right> | |
" C-cでコピー、C-dで切り取り、C-vでペースト | |
vnoremap <C-c> y<Esc> | |
vnoremap <C-x> d<Esc> | |
nnoremap <C-v> P<Esc> | |
nnoremap <C-s> :w<Enter> | |
" C-tでタブつくる。C-qでタブ閉じる | |
nnoremap <C-t> :tabnew<Enter> | |
nnoremap <C-q> :tabclose<Enter> | |
" C-oでexplorerオープン | |
nnoremap <C-o> :e . | |
" C-矢印でtab移動 | |
nnoremap <C-S-Right> :tabNext<Enter> | |
nnoremap <C-S-Left>:tabprevious<Enter> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment