aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-02 17:36:44 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-02 17:37:05 +1200
commite7aa501119290cef72beef60a14fe0f5b4cdfcf2 (patch)
treebd0bfd853c3061c6b1c258463bb3aa2b4ec67e79
parentMerge branch 'release/v1.16.0' into develop (diff)
downloaddotfiles-e7aa501119290cef72beef60a14fe0f5b4cdfcf2.tar.gz
dotfiles-e7aa501119290cef72beef60a14fe0f5b4cdfcf2.zip
Map \e in Vim to force a buffer to be editable
-rw-r--r--vim/vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 5b47d98f..5f3e06cf 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -225,6 +225,8 @@ nnoremap <Bslash>C :<C-U>set cursorcolumn! cursorcolumn?<CR>
nnoremap <Bslash>d :read !date<CR>
" \D inserts the UTC date (POSIX date)
nnoremap <Bslash>D :read !date -u<CR>
+" \e forces a buffer to be editable
+nnoremap <Bslash>e :set modifiable noreadonly<CR>
" \f shows the current 'formatoptions' at a glance
nnoremap <Bslash>f :<C-U>set formatoptions?<CR>
" \g changes directory to the current file's location