aboutsummaryrefslogblamecommitdiff
path: root/vim/after/ftplugin/vim.vim
blob: bd0a83cef8938772b6bdeeea0f60cc9b138c701e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                                       

        
 





                                     




                                                        

                                                              











                               
" Extra configuration for Vim scripts
if &filetype != 'vim' || &compatible || v:version < 700
  finish
endif

" Use Vint as a syntax checker
compiler vint
let b:undo_ftplugin = b:undo_ftplugin
      \ . '|setlocal errorformat<'
      \ . '|setlocal makeprg<'

" Stop here if the user doesn't want ftplugin mappings
if exists('g:no_plugin_maps') || exists('g:no_vim_maps')
  finish
endif

" Get rid of the core ftplugin's square-bracket maps on unload
let b:undo_ftplugin = b:undo_ftplugin
      \ . '|nunmap <buffer> [['
      \ . '|vunmap <buffer> [['
      \ . '|nunmap <buffer> ]]'
      \ . '|vunmap <buffer> ]]'
      \ . '|nunmap <buffer> []'
      \ . '|vunmap <buffer> []'
      \ . '|nunmap <buffer> ]['
      \ . '|vunmap <buffer> ]['
      \ . '|nunmap <buffer> ]"'
      \ . '|vunmap <buffer> ]"'
      \ . '|nunmap <buffer> ["'
      \ . '|vunmap <buffer> ["'