forked from b4winckler/macvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
636 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
" Vim support file to detect file types | ||
" | ||
" Maintainer: Bram Moolenaar <[email protected]> | ||
" Last Change: 2014 Jun 12 | ||
" Last Change: 2014 Jul 09 | ||
|
||
" Listen very carefully, I will say this only once | ||
if exists("did_load_filetypes") | ||
|
@@ -864,7 +864,7 @@ func! s:FThtml() | |
setf xhtml | ||
return | ||
endif | ||
if getline(n) =~ '{%\s*\(extends\|block\)\>' | ||
if getline(n) =~ '{%\s*\(extends\|block\|load\)\>' | ||
setf htmldjango | ||
return | ||
endif | ||
|
@@ -1649,6 +1649,20 @@ else | |
au BufNewFile,BufRead *.rnw,*.snw setf rnoweb | ||
endif | ||
|
||
" R Markdown file | ||
if has("fname_case") | ||
au BufNewFile,BufRead *.Rmd,*.rmd,*.Smd,*.smd setf rmd | ||
else | ||
au BufNewFile,BufRead *.rmd,*.smd setf rmd | ||
endif | ||
|
||
" R reStructuredText file | ||
if has("fname_case") | ||
au BufNewFile,BufRead *.Rrst,*.rrst,*.Srst,*.srst setf rrst | ||
else | ||
au BufNewFile,BufRead *.rrst,*.srst setf rrst | ||
endif | ||
|
||
" Rexx, Rebol or R | ||
au BufNewFile,BufRead *.r,*.R call s:FTr() | ||
|
||
|
@@ -2664,7 +2678,7 @@ au BufNewFile,BufRead zsh*,zlog* call s:StarSetf('zsh') | |
|
||
" Plain text files, needs to be far down to not override others. This avoids | ||
" the "conf" type being used if there is a line starting with '#'. | ||
au BufNewFile,BufRead *.txt,*.text setf text | ||
au BufNewFile,BufRead *.txt,*.text,README setf text | ||
|
||
|
||
" Use the filetype detect plugins. They may overrule any of the previously | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
" Vim filetype plugin file | ||
" Language: R | ||
" Maintainer: Jakson Alves de Aquino <[email protected]> | ||
" Last Change: Sun Feb 23, 2014 04:07PM | ||
|
||
" Only do this when not yet done for this buffer | ||
if exists("b:did_ftplugin") | ||
finish | ||
endif | ||
|
||
" Don't load another plugin for this buffer | ||
let b:did_ftplugin = 1 | ||
|
||
let s:cpo_save = &cpo | ||
set cpo&vim | ||
|
||
setlocal iskeyword=@,48-57,_,. | ||
setlocal formatoptions-=t | ||
setlocal commentstring=#\ %s | ||
setlocal comments=:#',:###,:##,:# | ||
|
||
if has("gui_win32") && !exists("b:browsefilter") | ||
let b:browsefilter = "R Source Files (*.R)\t*.R\n" . | ||
\ "Files that include R (*.Rnw *.Rd *.Rmd *.Rrst)\t*.Rnw;*.Rd;*.Rmd;*.Rrst\n" . | ||
\ "All Files (*.*)\t*.*\n" | ||
endif | ||
|
||
let b:undo_ftplugin = "setl cms< com< fo< isk< | unlet! b:browsefilter" | ||
|
||
let &cpo = s:cpo_save | ||
unlet s:cpo_save |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
" Vim filetype plugin file | ||
" Language: R help file | ||
" Maintainer: Jakson Alves de Aquino <[email protected]> | ||
" Last Change: Wed Jul 09, 2014 06:23PM | ||
|
||
" Only do this when not yet done for this buffer | ||
if exists("b:did_ftplugin") | ||
finish | ||
endif | ||
|
||
" Don't load another plugin for this buffer | ||
let b:did_ftplugin = 1 | ||
|
||
let s:cpo_save = &cpo | ||
set cpo&vim | ||
|
||
setlocal iskeyword=@,48-57,_,. | ||
|
||
if has("gui_win32") && !exists("b:browsefilter") | ||
let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" . | ||
\ "All Files (*.*)\t*.*\n" | ||
endif | ||
|
||
let b:undo_ftplugin = "setl isk< | unlet! b:browsefilter" | ||
|
||
let &cpo = s:cpo_save | ||
unlet s:cpo_save | ||
|
||
" vim: sw=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
" Vim filetype plugin file | ||
" Language: R help file | ||
" Maintainer: Jakson Alves de Aquino <[email protected]> | ||
" Last Change: Wed Jul 09, 2014 06:23PM | ||
" Original work by Alex Zvoleff (adjusted for rmd by Michel Kuhlmann) | ||
|
||
" Only do this when not yet done for this buffer | ||
if exists("b:did_ftplugin") | ||
finish | ||
endif | ||
|
||
runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim | ||
|
||
setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=>\ %s | ||
setlocal formatoptions+=tcqln | ||
setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+ | ||
setlocal iskeyword=@,48-57,_,. | ||
|
||
let s:cpo_save = &cpo | ||
set cpo&vim | ||
|
||
" Enables pandoc if it is installed | ||
unlet! b:did_ftplugin | ||
runtime ftplugin/pandoc.vim | ||
|
||
" Don't load another plugin for this buffer | ||
let b:did_ftplugin = 1 | ||
|
||
if has("gui_win32") && !exists("b:browsefilter") | ||
let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" . | ||
\ "All Files (*.*)\t*.*\n" | ||
endif | ||
|
||
if exists('b:undo_ftplugin') | ||
let b:undo_ftplugin .= " | setl cms< com< fo< flp< isk< | unlet! b:browsefilter" | ||
else | ||
let b:undo_ftplugin = "setl cms< com< fo< flp< isk< | unlet! b:browsefilter" | ||
endif | ||
|
||
let &cpo = s:cpo_save | ||
unlet s:cpo_save | ||
|
||
" vim: sw=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
" Vim filetype plugin file | ||
" Language: Rnoweb | ||
" Maintainer: Jakson Alves de Aquino <[email protected]> | ||
" Last Change: Wed Jul 09, 2014 06:23PM | ||
|
||
" Only do this when not yet done for this buffer | ||
if exists("b:did_ftplugin") | ||
finish | ||
endif | ||
|
||
let s:cpo_save = &cpo | ||
set cpo&vim | ||
|
||
runtime! ftplugin/tex.vim | ||
|
||
" Don't load another plugin for this buffer | ||
let b:did_ftplugin = 1 | ||
|
||
" Enables Vim-Latex-Suite, LaTeX-Box if installed | ||
runtime ftplugin/tex_*.vim | ||
|
||
setlocal iskeyword=@,48-57,_,. | ||
setlocal suffixesadd=.bib,.tex | ||
setlocal comments=b:%,b:#,b:##,b:###,b:#' | ||
|
||
if has("gui_win32") && !exists("b:browsefilter") | ||
let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" . | ||
\ "All Files (*.*)\t*.*\n" | ||
endif | ||
|
||
if exists('b:undo_ftplugin') | ||
let b:undo_ftplugin .= " | setl isk< sua< com< | unlet! b:browsefilter" | ||
else | ||
let b:undo_ftplugin = "setl isk< sua< com< | unlet! b:browsefilter" | ||
endif | ||
|
||
let &cpo = s:cpo_save | ||
unlet s:cpo_save | ||
|
||
" vim: sw=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
" Vim filetype plugin file | ||
" Language: reStructuredText documentation format with R code | ||
" Maintainer: Jakson Alves de Aquino <[email protected]> | ||
" Last Change: Wed Jul 09, 2014 06:23PM | ||
" Original work by Alex Zvoleff | ||
|
||
" Only do this when not yet done for this buffer | ||
if exists("b:did_ftplugin") | ||
finish | ||
endif | ||
|
||
" Don't load another plugin for this buffer | ||
let b:did_ftplugin = 1 | ||
|
||
let s:cpo_save = &cpo | ||
set cpo&vim | ||
|
||
setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=>\ %s | ||
setlocal formatoptions+=tcqln | ||
setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+ | ||
setlocal iskeyword=@,48-57,_,. | ||
|
||
if has("gui_win32") && !exists("b:browsefilter") | ||
let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" . | ||
\ "All Files (*.*)\t*.*\n" | ||
endif | ||
|
||
if exists('b:undo_ftplugin') | ||
let b:undo_ftplugin .= " | setl cms< com< fo< flp< isk< | unlet! b:browsefilter" | ||
else | ||
let b:undo_ftplugin = "setl cms< com< fo< flp< isk< | unlet! b:browsefilter" | ||
endif | ||
|
||
let &cpo = s:cpo_save | ||
unlet s:cpo_save | ||
|
||
" vim: sw=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
" Vim filetype plugin | ||
" Language: Text | ||
" Maintainer: David Barnett <[email protected]> | ||
" Last Change: 2014 Jul 09 | ||
|
||
if exists('b:did_ftplugin') | ||
finish | ||
endif | ||
let b:did_ftplugin = 1 | ||
|
||
let b:undo_ftplugin = 'setlocal comments< commentstring<' | ||
|
||
" We intentionally don't set formatoptions-=t since text should wrap as text. | ||
|
||
" Pseudo comment leaders to indent bulleted lists. | ||
setlocal comments=fb:-,fb:* | ||
setlocal commentstring= |
Oops, something went wrong.