view runtime/ftplugin/elixir.vim @ 31537:91924f1b59af v9.0.1101

patch 9.0.1101: unused global variable Commit: https://github.com/vim/vim/commit/b536540ab3c13db629432c411e92c05c4a3808ba Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 26 14:37:44 2022 +0000 patch 9.0.1101: unused global variable Problem: Unused global variable. Solution: Remove the variable. (closes https://github.com/vim/vim/issues/11752)
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Dec 2022 15:45:03 +0100
parents 1e91e26ceebf
children 5491229840a3
line wrap: on
line source

" Elixir filetype plugin
" Language: Elixir
" Maintainer:	Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com>
" Last Change: 2022 Sep 20

if exists("b:did_ftplugin")
  finish
endif
let b:did_ftplugin = 1

let s:save_cpo = &cpo
set cpo&vim

" Matchit support
if exists('loaded_matchit') && !exists('b:match_words')
  let b:match_ignorecase = 0

  let b:match_words = '\:\@<!\<\%(do\|fn\)\:\@!\>' .
        \ ':' .
        \ '\<\%(else\|catch\|after\|rescue\)\:\@!\>' .
        \ ':' .
        \ '\:\@<!\<end\>' .
        \ ',{:},\[:\],(:)'
endif

setlocal shiftwidth=2 softtabstop=2 expandtab iskeyword+=!,?
setlocal comments=:#
setlocal commentstring=#\ %s

let b:undo_ftplugin = 'setlocal sw< sts< et< isk< com< cms<'

let &cpo = s:save_cpo
unlet s:save_cpo