aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/make.vim
blob: b946d547ac9cb41ee3885cc576e53a1b961925aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
" Extra configuration for Makefiles
if &filetype != 'make' || &compatible || 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 = b:undo_ftplugin
        \ . '|nunmap <buffer> <LocalLeader>m'
endif