-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremove_crutches.vim
52 lines (45 loc) · 1.22 KB
/
remove_crutches.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
function! NoNoob() abort
set mouse=
inoremap <Esc> <Nop>
inoremap <special> jk <ESC>
" Remove newbie crutches in Command Mode
" cnoremap <Left> <Nop>
" cnoremap <Down> <Nop>
" cnoremap <Right> <Nop>
" cnoremap <Up> <Nop>
" Remove newbie crutches in Insert Mode
inoremap <Down> <Nop>
inoremap <Left> <Nop>
inoremap <Right> <Nop>
inoremap <Up> <Nop>
" Remove newbie crutches in Normal Mode
nnoremap <Down> <Nop>
nnoremap <Left> <Nop>
nnoremap <Right> <Nop>
nnoremap <Up> <Nop>
" Remove newbie crutches in Visual Mode
vnoremap <Down> <Nop>
vnoremap <Left> <Nop>
vnoremap <Right> <Nop>
vnoremap <Up> <Nop>
endfunction
function! Noob() abort
set mouse=a
inoremap <Esc> <Esc>
" Remove newbie crutches in Insert Mode
inoremap <Down> <Down>
inoremap <Left> <Left>
inoremap <Right> <Right>
inoremap <Up> <Up>
" Remove newbie crutches in Normal Mode
nnoremap <Down> <Down>
nnoremap <Left> <Left>
nnoremap <Right> <Right>
nnoremap <Up> <Up>
" Remove newbie crutches in Visual Mode
vnoremap <Down> <Down>
vnoremap <Left> <Left>
vnoremap <Right> <Right>
vnoremap <Up> <Up>
endfunction
call NoNoob()