aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/zsh.vim
blob: 79f3c63875aba9e3e026c5dc1425bebd759d0e7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" Extra configuration for Z shell scripts
if &filetype != 'zsh' || &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_zsh_maps')
  finish
endif

" Set mappings
nnoremap <buffer> <LocalLeader>c
      \ :<C-U>call compiler#Make('zsh')<CR>
let b:undo_ftplugin = b:undo_ftplugin
      \ . '|nunmap <buffer> <LocalLeader>c'