From d29f111ba8ebc1fdeafbe04ab01aab99c8e0e1ca Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Sun, 25 Jun 2017 21:12:33 +0700 Subject: Extend some mappings to include selection mode --- autoload/novim_mode.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/novim_mode.vim b/autoload/novim_mode.vim index 445b2c3..f93e29f 100644 --- a/autoload/novim_mode.vim +++ b/autoload/novim_mode.vim @@ -92,7 +92,9 @@ function! g:SetNoVimModeShortcuts() " ALT+; for command prompt inoremap : + snoremap : inoremap : + snoremap : nnoremap : nnoremap : @@ -123,12 +125,16 @@ function! g:SetNoVimModeShortcuts() " Move between splits, panes, windows, etc and close them if g:novim_mode_use_pane_controls == 1 inoremap + snoremap nnoremap inoremap + snoremap nnoremap inoremap + snoremap nnoremap inoremap + snoremap nnoremap " This allows unsaved buffers to be kept in the background. @@ -148,6 +154,7 @@ function! g:SetNoVimModeShortcuts() " NB. All these use the named 'p' register. inoremap "pP snoremap "pP + cnoremap "p snoremap "pygv inoremap "pY snoremap "pxi @@ -231,7 +238,7 @@ endfunction " more conventionally. function! s:SetWrappedTextNavigation() " Allow text to wrap in text files - au BufNewFile,BufRead *.txt,*.md,*.markdown setlocal linebreak spell + au BufNewFile,BufRead *.txt,*.md,*.markdown setlocal linebreak spell wrap " Make arrow keys move through wrapped lines " TODO: -- cgit v1.2.3-70-g09d2