aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/make.vim
blob: f4b58f5b8fdbc14ea954562574338620786f95a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" Extra configuration for Makefiles
if &filetype !=# 'make' || v:version < 700
  finish
endif

" 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
if exists('b:undo_ftplugin')
  nmap <buffer> <LocalLeader>m <Plug>MakeTarget
  let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>m'
endif