aboutsummaryrefslogtreecommitdiff
path: root/vim/config/undo.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-06 18:04:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-06 18:04:42 +1200
commit01fd7b30cfcf77982c1b6fa9ba030424173dd744 (patch)
treebb70b743e029fa151247bf677510665998dfecf5 /vim/config/undo.vim
parentMerge branch 'hotfix/v0.47.3' (diff)
parentRebuild dotfiles(7) manual page (diff)
downloaddotfiles-01fd7b30cfcf77982c1b6fa9ba030424173dd744.tar.gz
dotfiles-01fd7b30cfcf77982c1b6fa9ba030424173dd744.zip
Merge branch 'release/v0.48.0'v0.48.0
* release/v0.48.0: Rebuild dotfiles(7) manual page Bump VERSION Update README.md's Vim section Add custom scripts.vim Factor out password redaction into new plugin Spacing adjustments Abbreviate and invert j/gj,k/gk mappings Refactor vim/vimrc Consolidate .vimrc and .vim/filetype.vim Update markdown/autoformat.vim Correct a path in a VimL comment
Diffstat (limited to 'vim/config/undo.vim')
-rw-r--r--vim/config/undo.vim25
1 files changed, 0 insertions, 25 deletions
diff --git a/vim/config/undo.vim b/vim/config/undo.vim
deleted file mode 100644
index b9186d6f..00000000
--- a/vim/config/undo.vim
+++ /dev/null
@@ -1,25 +0,0 @@
-" Rebind Ctrl-C in insert mode to undo the current insert operation
-inoremap <C-c> <C-c>u
-
-" Keep screeds of undo history
-set undolevels=2000
-
-" 'undodir' and 'undofile' settings will be taken care of by the
-" auto_cache_dirs.vim plugin if applicable/possible
-if has('persistent_undo')
-
- " Turn off the option by default
- set noundofile
-
- " Don't keep undo files from temporary directories or shared memory in case
- " they're secrets
- if has('autocmd')
- augroup dotfiles_undo_skip
- autocmd!
- autocmd BufWritePre
- \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
- \ setlocal noundofile
- augroup END
- endif
-
-endif