Skip to content

Commit

Permalink
Use “inoremap” for <M-BS> and <D-BS>
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bdesham committed Sep 5, 2013
1 parent c5c6beb commit c972338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MacVim/gvimrc
Expand Up @@ -63,8 +63,8 @@ if !exists("macvim_skip_cmd_opt_movement")
map <M-Down> }
imap <M-Down> <C-o>}
imap <M-BS> <C-w>
imap <D-BS> <C-u>
ino <M-BS> <C-w>
ino <D-BS> <C-u>
endif " !exists("macvim_skip_cmd_opt_movement")


Expand Down

0 comments on commit c972338

Please sign in to comment.