Restrict runaway mapping to normal mode

This commit is contained in:
Talia 2021-10-20 17:47:26 +02:00
parent 1b28cc113e
commit 55ad19494d
2 changed files with 1 additions and 5 deletions

View file

@ -564,7 +564,7 @@ vnoremap > >gv
nnoremap <S-l> :L<cr>
noremap <space> :
noremap <C-space> @:
nnoremap <C-space> @:
noremap Q @q
nnoremap <S-space> gQ
" This part is just supposed to make saving as inconvenient as possible
@ -820,9 +820,6 @@ function! s:init_html_file()
put =l:text
endfunction
nnoremap <C-space> :call <sid>insert_tag(input(""), 0)<CR>
inoremap <buffer> <C-space> <C-o>""ciw<<C-o>""p><C-o>m'</<C-o>""p><C-o>`'<C-o>l
inoremap <buffer> <C-CR> <C-o>""diw<C-o>"_cc<<C-o>""p><C-o>o</<C-o>""p><C-o>O
endfunction

View file

@ -1,4 +1,3 @@
" --- VISUAL EXECUTE ---
let g:exe_prg = 'lua'
vnoremap <CR> :<C-U>exec "'<,'>!".g:exe_prg<CR>
inoremap <C-Space> <C-[>0v$:<C-U>exec "'<,'>!".g:exe_prg<CR>