aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/make.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-30 01:03:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-30 01:03:26 +1200
commit51f73fe6efdf0a127fa6b74cbf4e0521334ffa72 (patch)
tree199aa42372cea0109bee02e8955e8cf369112910 /vim/after/ftplugin/make.vim
parentMerge branch 'release/v1.9.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-51f73fe6efdf0a127fa6b74cbf4e0521334ffa72.tar.gz
dotfiles-51f73fe6efdf0a127fa6b74cbf4e0521334ffa72.zip
Merge branch 'release/v1.10.0'v1.10.0
* release/v1.10.0: (21 commits) Bump VERSION Conform all after/ftplugin files Join some b:undo_ftplugin addenda Review vim/ftplugin and vim/indent files Refactor ftplugins into single files Remove stray vim/autoload/vimrc.vim file Add g:no_plugin_maps checks for ftplugin maps.vim Use ftplugins for filetype mappings instead Refine 'comments' ftplugins further Remove 'formatoptions' reset in ftplugins Add Vim ftplugin to set 'comments' for sed Define 'comments' for AWK Reduce shell format ftplugin to just 'comments' Break sh noglob guard into two lines for clarity Correct typo in .bashrc Changed my mind about 'commentstring' Wrap feature-dependent 'comments' settings Add 'comments' settings for sh filetype Clear 'commentstring' as well as 'comments' Set 'include' and 'path' specifically in C/C++ ...
Diffstat (limited to 'vim/after/ftplugin/make.vim')
-rw-r--r--vim/after/ftplugin/make.vim20
1 files changed, 20 insertions, 0 deletions
diff --git a/vim/after/ftplugin/make.vim b/vim/after/ftplugin/make.vim
new file mode 100644
index 00000000..ca4e41a6
--- /dev/null
+++ b/vim/after/ftplugin/make.vim
@@ -0,0 +1,20 @@
+" Extra configuration for 'make' filetypes
+if &compatible || v:version < 700 || exists('b:did_ftplugin_after')
+ finish
+endif
+if &filetype !=# 'make'
+ finish
+endif
+let b:did_ftplugin_after = 1
+let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|unlet b:did_ftplugin_after'
+
+" Stop here if the user doesn't want ftplugin mappings
+if exists('g:no_plugin_maps') || exists('g:no_make_maps')
+ finish
+endif
+
+" Set mappings
+nmap <buffer> <LocalLeader>m <Plug>MakeTarget
+let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|nunmap <buffer> <LocalLeader>m'