Skip to content

Commit c972338

Browse files
committed
Use “inoremap” for <M-BS> and <D-BS>
As a Mac user I’m used to using Option-Delete to delete to the beginning of the previous word; MacVim sets up this behavior with its gvimrc. But I also like to use Control-W to delete to the beginning of the line. This change makes it possible for these two mappings to coexist without a problem.
1 parent c5c6beb commit c972338

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MacVim/gvimrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ if !exists("macvim_skip_cmd_opt_movement")
6363
map <M-Down> }
6464
imap <M-Down> <C-o>}
6565
66-
imap <M-BS> <C-w>
67-
imap <D-BS> <C-u>
66+
ino <M-BS> <C-w>
67+
ino <D-BS> <C-u>
6868
endif " !exists("macvim_skip_cmd_opt_movement")
6969

7070

0 commit comments

Comments
 (0)