Last active
December 22, 2015 08:39
-
-
Save sawanoboly/6446391 to your computer and use it in GitHub Desktop.
Vimで矢印キーの有効無効を切り替える ref: http://qiita.com/sawanoboly/items/3b599f6141cc637e1e74
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
function! HardMode () | |
noremap <Up> <Nop> | |
noremap <Down> <Nop> | |
noremap <Left> <Nop> | |
noremap <Right> <Nop> | |
endfunction | |
function! EasyMode () | |
noremap <Up> <Up> | |
noremap <Down> <Down> | |
noremap <Left> <Left> | |
noremap <Right> <Right> | |
endfunction | |
command! HardMode call HardMode() | |
command! EasyMode call EasyMode() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment