-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseldomusedmaps.vim
30 lines (21 loc) · 1.24 KB
/
seldomusedmaps.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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" seldomusedmaps.vim "
" "
" Segregating seldomly serviced switches a.k.a remaps "
" for easy viewing pleasure "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" set "!" to toggle between hybrid line numbers & absolute line numbers
" to my knowledge, "!" isn't really bound to anything in normal/visual/insert
nnoremap ! :set relativenumber!<CR>
" Toggle between the 80 line column always-on/off
" I'm hiding it for fear of OLED burn-in anwyay
noremap & :call ToggleColumn()<CR>
" Toggle list chars
nnoremap * :call CycleListChars()<CR>
" black hole protection if all else fails with clipboard being overwritten
nnoremap <Leader>blackbeauty :call ToggleBlackHoleApparatus()<CR>
" Remove all trailing whitespaces
nnoremap <Leader>spaces :call feedkeys(':%s/\s\+$//g', 'i')<CR><CR>
" Forfeit all tabs in lieu of spaces
nnoremap <Leader>tabs :call feedkeys(':%s/\t/ /g', 'i')<CR><CR>
nnoremap <Leader>spell :call ToggleSpellCheck()<CR>