From 61390f58850c34b27d2a28dc14ebd760de152cc9 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 22 Jan 2016 09:08:00 +0100 Subject: Update --- ftplugin/blade.vim | 16 ++++++++++++++++ ftplugin/eelixir.vim | 4 ---- ftplugin/elixir.vim | 7 +------ ftplugin/gitrebase.vim | 3 ++- ftplugin/html.vim | 2 ++ 5 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 ftplugin/blade.vim (limited to 'ftplugin') diff --git a/ftplugin/blade.vim b/ftplugin/blade.vim new file mode 100644 index 00000000..501f9667 --- /dev/null +++ b/ftplugin/blade.vim @@ -0,0 +1,16 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1 + +" Vim filetype plugin +" Language: Blade (Laravel) +" Maintainer: Jason Walton + +if exists('b:did_ftplugin') + finish +endif + +runtime! ftplugin/html.vim +let b:did_ftplugin = 1 + +setlocal iskeyword+=@-@ + +endif diff --git a/ftplugin/eelixir.vim b/ftplugin/eelixir.vim index 57c8cb40..b0f3284f 100644 --- a/ftplugin/eelixir.vim +++ b/ftplugin/eelixir.vim @@ -1,9 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 -" Vim filetype plugin -" Language: Embedded Elixir -" URL: https://github.com/elixir-lang/vim-elixir - if exists("b:did_ftplugin") finish endif diff --git a/ftplugin/elixir.vim b/ftplugin/elixir.vim index 576e4641..04388efd 100644 --- a/ftplugin/elixir.vim +++ b/ftplugin/elixir.vim @@ -1,10 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 -" Vim filetype plugin -" Language: Elixir -" Maintainer: Carlos Galdino -" URL: https://github.com/elixir-lang/vim-elixir - if (exists("b:did_ftplugin")) finish endif @@ -15,7 +10,7 @@ let b:did_ftplugin = 1 if exists("loaded_matchit") && !exists("b:match_words") let b:match_ignorecase = 0 - let b:match_words = '\<\%(do\|fn\)\:\@!\>' . + let b:match_words = '\:\@' . \ ':' . \ '\<\%(else\|elsif\|catch\|after\|rescue\)\:\@!\>' . \ ':' . diff --git a/ftplugin/gitrebase.vim b/ftplugin/gitrebase.vim index 572a1484..e3e015bb 100644 --- a/ftplugin/gitrebase.vim +++ b/ftplugin/gitrebase.vim @@ -14,10 +14,11 @@ runtime! ftplugin/git.vim let b:did_ftplugin = 1 setlocal comments=:# commentstring=#\ %s formatoptions-=t +setlocal nomodeline if !exists("b:undo_ftplugin") let b:undo_ftplugin = "" endif -let b:undo_ftplugin = b:undo_ftplugin."|setl com< cms< fo<" +let b:undo_ftplugin = b:undo_ftplugin."|setl com< cms< fo< ml<" function! s:choose(word) s/^\(\w\+\>\)\=\(\s*\)\ze\x\{4,40\}\>/\=(strlen(submatch(1)) == 1 ? a:word[0] : a:word) . substitute(submatch(2),'^$',' ','')/e diff --git a/ftplugin/html.vim b/ftplugin/html.vim index 3546ab2c..782d4015 100644 --- a/ftplugin/html.vim +++ b/ftplugin/html.vim @@ -8,4 +8,6 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " setlocal iskeyword+=- +setlocal commentstring= + endif -- cgit v1.2.3