aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorThomas Buckley-Houston2017-06-25 14:12:33 +0000
committerThomas Buckley-Houston2017-06-25 14:12:33 +0000
commitd29f111ba8ebc1fdeafbe04ab01aab99c8e0e1ca (patch)
tree34be790acef87dec0b760b1141abb4fde3f81bd7 /autoload
parent15cae587a4725ebae9231be9b4a7b295ecdf19fc (diff)
Extend some mappings to include selection mode
Diffstat (limited to 'autoload')
-rw-r--r--autoload/novim_mode.vim9
1 files changed, 8 insertions, 1 deletions
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 <M-;> <C-O>:
+ snoremap <M-;> <C-O>:
inoremap <M-c> <C-O>:
+ snoremap <M-c> <C-O>:
nnoremap <M-;> :
nnoremap <M-c> :
@@ -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 <silent> <M-Left> <C-O><C-W><Left>
+ snoremap <silent> <M-Left> <Esc><C-W><Left>
nnoremap <silent> <M-Left> <C-W><Left>
inoremap <silent> <M-Down> <C-O><C-W><Down>
+ snoremap <silent> <M-Down> <Esc><C-W><Down>
nnoremap <silent> <M-Down> <C-W><Down>
inoremap <silent> <M-Up> <C-O><C-W><Up>
+ snoremap <silent> <M-Up> <Esc><C-W><Up>
nnoremap <silent> <M-Up> <C-W><Up>
inoremap <silent> <M-Right> <C-O><C-W><Right>
+ snoremap <silent> <M-Right> <Esc><C-W><Right>
nnoremap <silent> <M-Right> <C-W><Right>
" 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 <C-V> <C-O>"pP
snoremap <C-V> <C-O>"pP
+ cnoremap <C-V> <C-R>"p
snoremap <C-C> <C-O>"pygv
inoremap <C-C> <C-O>"pY
snoremap <C-X> <C-O>"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: