-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into for-powerline
- Loading branch information
Showing
10 changed files
with
1,021 additions
and
291 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
"============================================================================= | ||
" FILE: devicons.vim | ||
" AUTHOR: Ryan McIntyre <[email protected]> | ||
" License: MIT license {{{ | ||
" Permission is hereby granted, free of charge, to any person obtaining | ||
" a copy of this software and associated documentation files (the | ||
" "Software"), to deal in the Software without restriction, including | ||
" without limitation the rights to use, copy, modify, merge, publish, | ||
" distribute, sublicense, and/or sell copies of the Software, and to | ||
" permit persons to whom the Software is furnished to do so, subject to | ||
" the following conditions: | ||
" | ||
" The above copyright notice and this permission notice shall be included | ||
" in all copies or substantial portions of the Software. | ||
" | ||
" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
" }}} | ||
"============================================================================= | ||
|
||
let s:save_cpo = &cpo | ||
set cpo&vim | ||
|
||
function! vimfiler#columns#devicons#define() | ||
return s:column | ||
endfunction | ||
|
||
let s:column = { | ||
\ 'name' : 'devicons', | ||
\ 'description' : 'get devicon glyph', | ||
\ 'syntax' : 'vimfilerColumn__devicons', | ||
\ } | ||
|
||
function! s:column.length(files, context) | ||
return 3 | ||
endfunction | ||
|
||
function! s:column.define_syntax(context) "{{{ | ||
syntax match vimfilerColumn__TypeText '\[T\]' | ||
\ contained containedin=vimfilerColumn__Type | ||
syntax match vimfilerColumn__TypeImage '\[I\]' | ||
\ contained containedin=vimfilerColumn__Type | ||
syntax match vimfilerColumn__TypeArchive '\[A\]' | ||
\ contained containedin=vimfilerColumn__Type | ||
syntax match vimfilerColumn__TypeExecute '\[X\]' | ||
\ contained containedin=vimfilerColumn__Type | ||
syntax match vimfilerColumn__TypeMultimedia '\[M\]' | ||
\ contained containedin=vimfilerColumn__Type | ||
syntax match vimfilerColumn__TypeDirectory '\[do\]' | ||
\ contained containedin=vimfilerColumn__Type | ||
syntax match vimfilerColumn__TypeSystem '\[S\]' | ||
\ contained containedin=vimfilerColumn__Type | ||
syntax match vimfilerColumn__TypeLink '\[L\]' | ||
\ contained containedin=vimfilerColumn__Type | ||
|
||
highlight def link vimfilerColumn__TypeText Constant | ||
highlight def link vimfilerColumn__TypeImage Type | ||
highlight def link vimfilerColumn__TypeArchive Special | ||
highlight def link vimfilerColumn__TypeExecute Statement | ||
highlight def link vimfilerColumn__TypeMultimedia Identifier | ||
highlight def link vimfilerColumn__TypeDirectory Preproc | ||
highlight def link vimfilerColumn__TypeSystem Comment | ||
highlight def link vimfilerColumn__TypeLink Comment | ||
endfunction"}}} | ||
|
||
function! s:column.get(file, context) | ||
return WebDevIconsGetFileTypeSymbol(strpart(a:file.action__path, strridx(a:file.action__path, "/")), a:file.vimfiler__is_directory) | ||
endfunction | ||
|
||
let &cpo = s:save_cpo | ||
unlet s:save_cpo | ||
|
||
" vim: foldmethod=marker |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Contributor Code of Conduct | ||
|
||
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, | ||
we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, | ||
submitting pull requests or patches, and other activities. | ||
|
||
We are committed to making participation in this project a harassment-free experience for everyone, | ||
regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, | ||
personal appearance, body size, race, ethnicity, age, religion, or nationality. | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery | ||
* Personal attacks | ||
* Trolling or insulting/derogatory comments | ||
* Public or private harassment | ||
* Publishing other's private information, such as physical or electronic addresses, without explicit permission | ||
* Other unethical or unprofessional conduct. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, | ||
code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. | ||
By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently | ||
applying these principles to every aspect of managing this project. Project maintainers who do not | ||
follow or enforce the Code of Conduct may be permanently removed from the project team. | ||
|
||
This code of conduct applies both within project spaces and in public spaces when an individual | ||
is representing the project or its community. | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue | ||
or contacting one or more of the project maintainers. | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), | ||
version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/) |
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,22 @@ | ||
# Contributing Guide | ||
|
||
## How to contribute | ||
|
||
Work In Progress, for now the minimum: | ||
|
||
* Fork the project and submit a Pull Request (PR) | ||
* Explain what the PR fixes or improves | ||
* Screenshots for bonus points | ||
* Use sensible commit messages | ||
* If your PR fixes a separate issue number, include it in the commit message | ||
|
||
## Things to keep in mind | ||
* Smaller PRs are likely to be merged more quickly than bigger changes | ||
* If it is a useful PR it **will** get merged in eventually | ||
* [E.g. see how many have already been merged vs. still open](https://github.com/ryanoasis/vim-devicons/pulls) | ||
* This project is using [Semantic Versioning 2.0.0](http://semver.org/) | ||
* I try to group fixes into milestones/versions | ||
* If your bug or PR is *not* trivial it will likely end up in the next **MINOR** version | ||
* If your bug or PR *is* trivial *or* critical it will likely end up in the next **PATCH** version | ||
* Most of the time PRs and fixes are *not* merged directly into master without being present on a new versioned branch | ||
** Sometimes for small items I will make exceptions to get the fix or readme change on master sooner but even after there will *always* be a versioned branch to keep track of each release |
Oops, something went wrong.