Created
June 23, 2019 06:15
-
-
Save koturn/668b1b2da88aeabb6f411a0425ee5c65 to your computer and use it in GitHub Desktop.
Visual Studioの拡張VSVIMの設定ファイル
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
set clipboard=unnamed | |
set hlsearch | |
set incsearch | |
set virtualedit=block | |
set whichwrap=b,s,h,l,<,>,[,] | |
set ignorecase smartcase | |
set scrolloff=5 | |
nnoremap c "_c | |
nnoremap x "_x | |
nnoremap n nzz | |
nnoremap N Nzz | |
nnoremap * *Nzz | |
nnoremap j gj | |
nnoremap k gk | |
nnoremap gj j | |
nnoremap gk k | |
nnoremap <silent> <M-<> <C-w>< | |
nnoremap <silent> <M-+> <C-w>+ | |
nnoremap <silent> <M--> <C-w>- | |
nnoremap <silent> <M-=> <C-w>- | |
nnoremap <silent> <M->> <C-w>> | |
cnoremap <C-a> <Home> | |
cnoremap <C-b> <Left> | |
cnoremap <C-d> <Del> | |
cnoremap <C-e> <End> | |
cnoremap <C-f> <Right> | |
nnoremap <silent> <Esc><Esc> :<C-u>nohlsearch<CR> | |
nnoremap <silent> <Space><Esc> :<C-u>setlocal hlsearch! hlsearch?<CR> | |
" Search the word nearest to the cursor in new window. | |
nnoremap <C-w>* <C-w>s* | |
nnoremap <C-w># <C-w>s# | |
nnoremap <C-]> g<C-]>zz | |
nnoremap g<C-]> <C-]>zz | |
nnoremap <silent> <Leader>s :<C-u>setlocal spell! spell?<CR> | |
nnoremap <silent> <Leader>w :<C-u>setlocal wrap! wrap?<CR> | |
nnoremap <Space>m :<C-u>marks<CR> | |
nnoremap <Space>r :<C-u>registers<CR> | |
nnoremap <Leader>/ /<C-u>\<\><Left><Left> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment