aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/c.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-29 00:09:16 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-29 00:09:16 +1300
commitffc11a076b7bb0ce7ac936085a904eb35603fdac (patch)
treee7c40d63bc955bfb3fc4979b73d630edfd398df1 /vim/after/ftplugin/c.vim
parent692a114838b2d327fae9ab1fc5954e360af84501 (diff)
parentc70f0d298749fcf9e4476f79a425835572efaad8 (diff)
downloaddotfiles-ffc11a076b7bb0ce7ac936085a904eb35603fdac.tar.gz
dotfiles-ffc11a076b7bb0ce7ac936085a904eb35603fdac.zip
Merge branch 'release/v1.78.0'v1.78.0
* release/v1.78.0: Bump VERSION Correct indentation in a few vim/after scripts Move b:undo_ftplugin unsets for C inline with sets Add config file for mpv Use full "mouse" for xset(1) call in ~/.xinitrc Remove vim-tiny workaround for 'undodir' setting Define b:undo_indent for Perl buffers Set missing b:undo_indent instructions for AWK Undo shell script dialect flags from filetype.vim Code-format word in TABS.md Remove a lot of alignment spacing
Diffstat (limited to 'vim/after/ftplugin/c.vim')
-rw-r--r--vim/after/ftplugin/c.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim
index 9ac59733..da34d269 100644
--- a/vim/after/ftplugin/c.vim
+++ b/vim/after/ftplugin/c.vim
@@ -5,13 +5,14 @@ endif
" Include macros in completion
setlocal complete+=d
+let b:undo_ftplugin .= '|setlocal complete<'
" Set include pattern
setlocal include=^\\s*#\\s*include
+let b:undo_ftplugin .= '|setlocal include<'
" Include headers on UNIX
if has('unix')
setlocal path+=/usr/include
+ let b:undo_ftplugin .= '|setlocal path<'
endif
-
-let b:undo_ftplugin .= '|setlocal complete< include< path<'