From e7aa501119290cef72beef60a14fe0f5b4cdfcf2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 2 Jul 2018 17:36:44 +1200 Subject: Map \e in Vim to force a buffer to be editable --- vim/vimrc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 5b47d98f..5f3e06cf 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -225,6 +225,8 @@ nnoremap C :set cursorcolumn! cursorcolumn? nnoremap d :read !date " \D inserts the UTC date (POSIX date) nnoremap D :read !date -u +" \e forces a buffer to be editable +nnoremap e :set modifiable noreadonly " \f shows the current 'formatoptions' at a glance nnoremap f :set formatoptions? " \g changes directory to the current file's location -- cgit v1.2.3