aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-02 20:03:58 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-02 20:03:58 +1200
commit2f27201a89b3a8c51ad1bb9f6198a0a5b347a4ed (patch)
treee47a62300a27558a46680e6d5b912c90757c01d0 /vim/vimrc
parentMerge branch 'hotfix/v1.16.1' (diff)
parentBump VERSION (diff)
downloaddotfiles-2f27201a89b3a8c51ad1bb9f6198a0a5b347a4ed.tar.gz
dotfiles-2f27201a89b3a8c51ad1bb9f6198a0a5b347a4ed.zip
Merge branch 'release/v1.17.0'v1.17.0
* release/v1.17.0: Bump VERSION Use if not && for conditional install Add CentOS and Debian .vim tweaks Map \e in Vim to force a buffer to be editable
Diffstat (limited to 'vim/vimrc')
-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