aboutsummaryrefslogtreecommitdiff
path: root/after
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-10-19 22:59:27 +0800
committerjdhao <jdhao@hotmail.com>2020-10-19 22:59:27 +0800
commitd06770efeff8b9e35d74895fa978fa7de1348eb3 (patch)
tree03dfacdf8120b43524c00aa25acc10cb5171b7b7 /after
parentbb242b7699bb64e25b7497385882aff56fd9c32a (diff)
add <C-U> in mappings that use command where appropriate
Diffstat (limited to 'after')
-rw-r--r--after/ftplugin/cpp.vim2
-rw-r--r--after/ftplugin/python.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/after/ftplugin/cpp.vim b/after/ftplugin/cpp.vim
index 7962700..4fe80ab 100644
--- a/after/ftplugin/cpp.vim
+++ b/after/ftplugin/cpp.vim
@@ -1 +1 @@
-nnoremap <F9> :w <CR> :!g++ -Wall -std=c++11 % -o %<&&./%<<CR>
+nnoremap <F9> :<C-U>w <CR> :!g++ -Wall -std=c++11 % -o %<&&./%<<CR>
diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim
index 0caca7d..f8177db 100644
--- a/after/ftplugin/python.vim
+++ b/after/ftplugin/python.vim
@@ -1,5 +1,5 @@
if exists(':AsyncRun')
- nnoremap <silent> <F9> :AsyncRun python -u "%"<CR>
+ nnoremap <silent> <F9> :<C-U>AsyncRun python -u "%"<CR>
endif
" Do not wrap Python source code.