Vim: OCaml bindings, disallow arrows
This commit is contained in:
parent
2e37faa774
commit
0623db7802
|
@ -12,6 +12,7 @@ set smartindent
|
||||||
set incsearch
|
set incsearch
|
||||||
set ttimeoutlen=100
|
set ttimeoutlen=100
|
||||||
set scrolloff=5
|
set scrolloff=5
|
||||||
|
set tw=79
|
||||||
|
|
||||||
set exrc
|
set exrc
|
||||||
set secure
|
set secure
|
||||||
|
@ -74,7 +75,6 @@ let g:syntastic_ocaml_checkers = ['merlin']
|
||||||
"""" Ocp-indent (OCaml indentation)
|
"""" Ocp-indent (OCaml indentation)
|
||||||
set rtp^=g:opamshare."/ocp-indent/vim"
|
set rtp^=g:opamshare."/ocp-indent/vim"
|
||||||
|
|
||||||
|
|
||||||
""""""""""""""""" Trailing whitespaces
|
""""""""""""""""" Trailing whitespaces
|
||||||
fun! TrimWhitespace()
|
fun! TrimWhitespace()
|
||||||
let l:save_cursor = getpos('.')
|
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>
|
xnoremap <Leader>x <esc>:'<,'>:w !xclip -selection clipboard<CR><esc>
|
||||||
|
|
||||||
set tw=79
|
set tw=79
|
||||||
|
|
||||||
|
" Disable arrow keys - use hjkl, ffs.
|
||||||
|
noremap <Up> <NOP>
|
||||||
|
noremap <Down> <NOP>
|
||||||
|
noremap <Left> <NOP>
|
||||||
|
noremap <Right> <NOP>
|
||||||
|
|
Loading…
Reference in a new issue