Vim: OCaml bindings, disallow arrows

This commit is contained in:
Théophile Bastian 2017-02-16 14:48:40 +01:00
parent 2e37faa774
commit 0623db7802

View file

@ -12,6 +12,7 @@ set smartindent
set incsearch
set ttimeoutlen=100
set scrolloff=5
set tw=79
set exrc
set secure
@ -74,7 +75,6 @@ let g:syntastic_ocaml_checkers = ['merlin']
"""" Ocp-indent (OCaml indentation)
set rtp^=g:opamshare."/ocp-indent/vim"
""""""""""""""""" Trailing whitespaces
fun! TrimWhitespace()
let l:save_cursor = getpos('.')
@ -99,3 +99,9 @@ nnoremap K <Esc>i<CR><Esc>
xnoremap <Leader>x <esc>:'<,'>:w !xclip -selection clipboard<CR><esc>
set tw=79
" Disable arrow keys - use hjkl, ffs.
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>