diff options
| author | jdhao <jdhao@hotmail.com> | 2020-10-19 22:59:27 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-10-19 22:59:27 +0800 |
| commit | d06770efeff8b9e35d74895fa978fa7de1348eb3 (patch) | |
| tree | 03dfacdf8120b43524c00aa25acc10cb5171b7b7 /after | |
| parent | bb242b7699bb64e25b7497385882aff56fd9c32a (diff) | |
add <C-U> in mappings that use command where appropriate
Diffstat (limited to 'after')
| -rw-r--r-- | after/ftplugin/cpp.vim | 2 | ||||
| -rw-r--r-- | after/ftplugin/python.vim | 2 |
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. |
