summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-05-05 11:26:30 +1200
committerDavid Phillips <david@sighup.nz>2017-05-05 11:26:30 +1200
commit6fbb316ada91815cee9791a5fb381bc950848b0f (patch)
treeb17c0634f88a670de7d013ae31474d9835705b6d
parent64c229e3333a9463f43186e2bf1436624c18da7c (diff)
downloaddotfiles-6fbb316ada91815cee9791a5fb381bc950848b0f.tar.xz
Fix C+arrow keys in insert mode in vim
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 7e410fc..3fed831 100644
--- a/vimrc
+++ b/vimrc
@@ -5,9 +5,13 @@ set autoindent
set tabstop=4
set shiftwidth=4
set softtabstop=4
+set backspace=2
+" Force remap C+Left and C+Right for moving on words in insert mode
map <ESC>[1;5C <C-Right>
map <ESC>[1;5D <C-Left>
+map! <ESC>[1;5C <C-Right>
+map! <ESC>[1;5D <C-Left>
"set listchars=tab:▸\ ,trail:·,space:·
set listchars=tab:→\ ,trail:·,space:·