From 100a9ae0796060384561f4a0661c5f2d1f212b5a Mon Sep 17 00:00:00 2001 From: Pavel Lutskov Date: Fri, 22 Nov 2019 21:27:21 -0800 Subject: [PATCH] added some QOL mappings for using terminal --- .gitignore | 1 + plugin/comment.vim | 3 ++- plugin/settings.vim | 11 ++++++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 1377554..bf9dfdc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.swp +.DS_Store diff --git a/plugin/comment.vim b/plugin/comment.vim index 8718627..9084c7d 100644 --- a/plugin/comment.vim +++ b/plugin/comment.vim @@ -14,7 +14,8 @@ let s:comment_map = { \ 'make': '#', \ 'vuejs': '\/\/', \ 'vue': '\/\/', - \ 'cmake': '#' + \ 'cmake': '#', + \ 'scheme': ';;', \ } let s:block_map = { diff --git a/plugin/settings.vim b/plugin/settings.vim index 60f67d9..80951cf 100644 --- a/plugin/settings.vim +++ b/plugin/settings.vim @@ -152,7 +152,7 @@ augroup END if has('terminal') augroup terminalsettings autocmd! - autocmd TerminalOpen * setlocal nonu termwinsize="20x0" + autocmd TerminalWinOpen * setlocal nonu augroup END endif " }}} @@ -166,6 +166,7 @@ nnoremap nnoremap q nnoremap Q +nnoremap Y y$ nnoremap qn :nohl nnoremap ql :lclose nnoremap qq :cclose @@ -194,11 +195,8 @@ nnoremap sl :pedit $MYVIMRC nnoremap ss :execute 'pedit' my_settings_file nnoremap sv :source $MYVIMRC:execute 'source' my_settings_file nnoremap st :source % -" nnoremap k -" nnoremap j -" nnoremap h -" nnoremap l nnoremap w +tnoremap w nnoremap dd cc nnoremap se :syntax enable nnoremap so :syntax off @@ -212,6 +210,9 @@ vnoremap "+y nnoremap "+p inoremap "+p vnoremap x"+P + +nnoremap t :term +nnoremap sw /\<\> " }}} " Mappings for Plugins