Skip to content

Instantly share code, notes, and snippets.

@sawanoboly
Last active December 22, 2015 08:39
Show Gist options
  • Save sawanoboly/6446391 to your computer and use it in GitHub Desktop.
Save sawanoboly/6446391 to your computer and use it in GitHub Desktop.
Vimで矢印キーの有効無効を切り替える ref: http://qiita.com/sawanoboly/items/3b599f6141cc637e1e74
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