Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Janus: Go through all files and change all occurences of vimius to ja…

…nus.
  • Loading branch information...
commit 902f8188691f49762c0151618f0975a6107313be 1 parent 4f9f29b
@kalbasit kalbasit authored
Showing with 168 additions and 190 deletions.
  1. +26 −48 README.md
  2. +7 −7 Rakefile
  3. +4 −4 bootstrap.sh
  4. +14 −14 janus/ruby/janus.rb
  5. +4 −4 janus/ruby/janus/errors.rb
  6. +1 −1  janus/ruby/janus/gems.rb
  7. +1 −1  janus/ruby/janus/git.rb
  8. +1 −1  janus/ruby/janus/github.rb
  9. +3 −3 janus/ruby/janus/plugins.rb
  10. +1 −1  janus/ruby/janus/vim.rb
  11. +43 −43 janus/vim/core/before/plugin/janus.vim
  12. +7 −7 janus/vim/core/before/plugin/plugins.vim
  13. +1 −1  janus/vim/core/before/plugin/settings.vim
  14. +2 −2 janus/vim/core/before/plugin/statuline.vim
  15. +2 −2 janus/vim/langs/tasks/mustache.rake
  16. +1 −1  janus/vim/tools/after/plugin/command-t-osx-menu-remapping.vim
  17. +1 −1  janus/vim/tools/after/plugin/syntastic_settings.vim
  18. +4 −4 janus/vim/tools/janus/plugin/NERD_commenter.vim
  19. +2 −2 janus/vim/tools/janus/plugin/ack.vim
  20. +10 −10 janus/vim/tools/janus/plugin/command-t.vim
  21. +7 −7 janus/vim/tools/janus/plugin/fugitive.vim
  22. +1 −1  janus/vim/tools/janus/plugin/gist.vim
  23. +2 −2 janus/vim/tools/janus/plugin/gundo.vim
  24. +2 −2 janus/vim/tools/janus/plugin/hammer.vim
  25. +1 −1  janus/vim/tools/janus/plugin/kwbd.vim
  26. +2 −2 janus/vim/tools/janus/plugin/nerdtree.vim
  27. +1 −1  janus/vim/tools/janus/plugin/tagbar.vim
  28. +4 −4 janus/vim/tools/janus/plugin/unimpaired.vim
  29. +1 −1  janus/vim/tools/janus/plugin/zoomwin.vim
  30. +1 −1  janus/vim/tools/tasks/watchtower.rake
  31. +11 −11 janus/vim/vimrc
View
74 README.md
@@ -1,6 +1,4 @@
-# Vimius: Vim Distribution [![Still Maintained](http://stillmaintained.com/TechnoGate/vimius.png)](http://stillmaintained.com/TechnoGate/vimius)
-
-[![Click here to lend your support to: Open Source Projects and make a donation at www.pledgie.com!](http://pledgie.com/campaigns/16123.png?skin_name=chrome)](http://www.pledgie.com/campaigns/16123)
+# Janus: Vim Distribution
This is a distribution of plug-ins and mappings for Vim, Gvim and
MacVim.
@@ -22,28 +20,28 @@ users should install `gvim`, OSX users should install
[here](https://github.com/b4winckler/macvim/downloads).
Take a look at the [Pre-requisites wiki
-page](https://github.com/TechnoGate/vimius/wiki/Pre-requisites) for more
+page](https://github.com/carlhuda/janus/wiki/Pre-requisites) for more
information.
## Installation
-To install Vimius, please use our [automatic
-installer](https://github.com/TechnoGate/vimius/blob/master/bootstrap.sh)
+To install Janus, please use our [automatic
+installer](https://github.com/carlhuda/janus/blob/master/bootstrap.sh)
, which backups up any Vim files found in your home folder and installs
-Vimius.
+Janus.
```bash
-$ curl https://raw.github.com/TechnoGate/vimius/master/bootstrap.sh -o- | sh
+$ curl https://raw.github.com/carlhuda/janus/master/bootstrap.sh -o- | sh
```
## Customization
-You can use `~/.gvimrc.before` and `~/.vimrc.before` for settings Vimius,
+You can use `~/.gvimrc.before` and `~/.vimrc.before` for settings Janus,
like the __leader__ setting, you may also use `~/.gvimrc.after` and
`~/.vimrc.after` for any additional setting, it is also a good place for
-overriding Vimius settings as both files will be loaded at the end of
-Vimius
+overriding Janus settings as both files will be loaded at the end of
+Janus
For example, to override the default color schemes:
@@ -53,40 +51,40 @@ $ echo 'color molokai' >> ~/.gvimrc.after
```
If you want to add additional Vim plug-ins you can do so by adding a new
-submodule in the Vimius repository inside the `vimius/vim/custom` like so:
+submodule in the Janus repository inside the `janus/vim/custom` like so:
```bash
$ cd ~/.vim
-$ git submodule add git://github.com/vim-scripts/Rename2.git vimius/vim/custom/rename2
+$ git submodule add git://github.com/vim-scripts/Rename2.git janus/vim/custom/rename2
```
If you would like to disable an included plug-in, you can do that with
-the `vimius#disable_plugin()` function from inside your
+the `janus#disable_plugin()` function from inside your
`~/.vimrc.before`, this function takes a plug-in name as an argument
without the group, for example, if you would like to disable the
NERDCommenter plug-in, you can do that with the command:
```bash
-$ echo "call vimius#disable_plugin('nerdcommenter')" >> ~/.vimrc.before
+$ echo "call janus#disable_plugin('nerdcommenter')" >> ~/.vimrc.before
```
-**WARNING**: Any **uncommited** file inside the **vimius** folder and
+**WARNING**: Any **uncommited** file inside the **janus** folder and
outside the `custom` folder will be removed the next time your run
`rake` so make sure to either put them in the custom folder, or entirely
-outside the vimius folder or commit them with Git. We clean the vimius
+outside the janus folder or commit them with Git. We clean the janus
folder in case we replace a manually installed plugin (using rake tasks)
with a submodule.
-For more information on how to customize Vimius, you might want to take
+For more information on how to customize Janus, you might want to take
a look at the [Customization wiki
-page](https://github.com/TechnoGate/vimius/wiki/Customization).
+page](https://github.com/carlhuda/janus/wiki/Customization).
## Updating to the latest version
To update to the latest version of the distribution, just run `rake`
again inside your `~/.vim` directory.
-NOTE: If you even had an error updating Vimius, problem related to a
+NOTE: If you even had an error updating Janus, problem related to a
missing commit in a submodule, please try running `rake` again before
submitting an issue.
@@ -129,7 +127,7 @@ This Vim distribution includes a number of packages built by others.
## Base Customizations
-Vimius ships with a number of basic customizations for vim:
+Janus ships with a number of basic customizations for vim:
* Line numbers
* Ruler (line and column numbers)
@@ -189,7 +187,7 @@ exist.)
Ack.vim uses ack to search inside the current directory for a pattern.
You can learn more about it with :help Ack
-**Customizations**: Vimius rebinds command-shift-f (`<D-F>`) to bring up
+**Customizations**: Janus rebinds command-shift-f (`<D-F>`) to bring up
`:Ack `.
## [Command-T](https://wincent.com/products/command-t)
@@ -198,7 +196,7 @@ Command-T provides a mechanism for searching for a file inside the
current working directory. It behaves similarly to command-t in
Textmate.
-**Customizations**: Vimius rebinds command-t (`<D-t>`) to bring up this
+**Customizations**: Janus rebinds command-t (`<D-t>`) to bring up this
plugin. It defaults to `<Leader>t`.
## [NERDCommenter](http://github.com/ddollar/nerdcommenter)
@@ -206,7 +204,7 @@ plugin. It defaults to `<Leader>t`.
NERDCommenter allows you to wrangle your code comments, regardless of
filetype. View `:help NERDCommenter` for all the details.
-**Customizations**: Vimius binds command-/ (`<D-/>`) to toggle comments.
+**Customizations**: Janus binds command-/ (`<D-/>`) to toggle comments.
## [NERDTree](https://github.com/scrooloose/nerdtree)
@@ -214,7 +212,7 @@ NERDTree is a file explorer plugin that provides "project drawer"
functionality to your vim projects. You can learn more about it with
:help NERDTree.
-**Customizations**: Vimius adds a number of customizations to the core
+**Customizations**: Janus adds a number of customizations to the core
NERDTree:
* Use `<Leader>n` to toggle NERDTree
@@ -240,7 +238,7 @@ execute their script to find them.
Tagbar is a vim plugin for browsing the tags of source code files.
-**Customizations**: Vimius binds `<Leader>rt` to toggle Tagbar.
+**Customizations**: Janus binds `<Leader>rt` to toggle Tagbar.
## [EasyMotion](https://github.com/Lokaltog/vim-easymotion)
@@ -295,7 +293,7 @@ file
When working with split windows, ZoomWin lets you zoom into a window and
out again using `Ctrl-W o`
-**Customizations**: Vimius binds `<leader>zw` to `:ZoomWin`
+**Customizations**: Janus binds `<leader>zw` to `:ZoomWin`
## [BufferGator](https://github.com/jeetsukumaran/vim-buffergator)
@@ -317,7 +315,7 @@ without leaving the buffer catalog viewer.
## Additional Syntaxes
-Vimius ships with a few additional syntaxes:
+Janus ships with a few additional syntaxes:
* Markdown (bound to \*.markdown, \*.md, and \*.mk)
* Mustache (bound to \*.mustache)
@@ -333,30 +331,10 @@ Vimius ships with a few additional syntaxes:
global config to set this if you have EDITOR set to something else
`$ git config --global core.editor 'vim -f'`
-## Contact
-
-For bugs and feature request, please use __Github issues__, for other
-requests, you may use:
-
-- [Google Groups](http://groups.google.com/group/vimius)
-- [Github private message](https://github.com/inbox/new/eMxyzptlk)
-- Email: [contact@technogate.fr](mailto:contact@technogate.fr)
-
-Don't forget to follow me on [Github](https://github.com/eMxyzptlk) and
-[Twitter](https://twitter.com/eMxyzptlk) for news and updates.
-
-## Credits
-
-Vimius is based on [Carlhuda's Janus
-distribution](https://github.com/carlhuda/janus) on their [Experimental
-branch](https://github.com/carlhuda/janus/tree/experimental)
-
## License
### This code is free to use under the terms of the MIT license.
-Copyright (c) 2011 TechnoGate &lt;support@technogate.fr&gt;
-
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
View
14 Rakefile
@@ -1,15 +1,15 @@
ROOT_PATH = File.expand_path(File.join(File.dirname(__FILE__)))
-$: << File.join(ROOT_PATH, 'vimius', 'ruby')
+$: << File.join(ROOT_PATH, 'janus', 'ruby')
-require 'vimius'
-include Vimius
+require 'janus'
+include Janus
desc "link ViM configuration files."
task :link_vim_conf_files do
%w[ vimrc gvimrc ].each do |file|
dest = expand("~/.#{file}")
unless File.exist?(dest)
- ln_s(expand("../vimius/vim/#{file}", __FILE__), dest)
+ ln_s(expand("../janus/vim/#{file}", __FILE__), dest)
end
end
end
@@ -39,14 +39,14 @@ end
desc "Create necessary folders."
task :folders do
- Vimius::VIM.folders.each do |folder|
+ Janus::VIM.folders.each do |folder|
mkdir_p folder
end
end
task :update do
puts "Cleaning the viminius folder"
- `git clean -xdf --exclude=custom -- vimius &> /dev/null`
+ `git clean -xdf --exclude=custom -- janus &> /dev/null`
puts "Pulling latest changes"
`git pull > /dev/null`
@@ -62,7 +62,7 @@ task :install => [:folders, :link_vim_conf_files] do
# Dummy task, real work is done with the hooks.
end
-desc "Install or Update Vimius."
+desc "Install or Update Janus."
task :default do
sh "rake update"
sh "rake install"
View
8 bootstrap.sh
@@ -1,10 +1,10 @@
-# Source RVM so vimius .rvmrc takes effect
+# Source RVM so janus .rvmrc takes effect
if ! type rvm &> /dev/null; then
[[ -s /usr/local/rvm/scripts/rvm ]] && source /usr/local/rvm/scripts/rvm
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
fi
-# Source Rbenv so vimius .rbenv-version takes effect
+# Source Rbenv so janus .rbenv-version takes effect
if ! type rbenv &> /dev/null; then
if [[ -s $HOME/.rbenv/bin/rbenv ]]; then
eval "`$HOME/.rbenv/bin/rbenv init -`"
@@ -19,8 +19,8 @@ for i in $HOME/.vim $HOME/.vimrc $HOME/.gvimrc; do
fi
done
-# Clone Vimius into .vim
-git clone git://github.com/TechnoGate/vimius.git $HOME/.vim
+# Clone Janus into .vim
+git clone -b experimental git://github.com/carlhuda/janus.git $HOME/.vim
# Run rake inside .vim
( cd $HOME/.vim && rake )
View
28 janus/ruby/janus.rb
@@ -1,30 +1,30 @@
-module Vimius
+module Janus
# Return the root path
#
- # @return [String] The absolute path to Vimius repository
+ # @return [String] The absolute path to Janus repository
def root_path
ROOT_PATH
end
- # Return Vimius path
+ # Return Janus path
#
- # @return [String] The absolute path to Vimius distribution
- def vimius_path
- File.join ROOT_PATH, 'vimius'
+ # @return [String] The absolute path to Janus distribution
+ def janus_path
+ File.join ROOT_PATH, 'janus'
end
# Return the vim's path
#
# @return [String] The absolute path to ViM files
def vim_path
- File.join vimius_path, 'vim'
+ File.join janus_path, 'vim'
end
# Return the ruby's path
#
# @return [String] The absolute path to Ruby files
def ruby_path
- File.join vimius_path, 'ruby'
+ File.join janus_path, 'ruby'
end
# Expand the path of a given file
@@ -50,9 +50,9 @@ def sudo(*args)
end
end
-require 'vimius/errors'
-require 'vimius/git'
-require 'vimius/vim'
-require 'vimius/gems'
-require 'vimius/github'
-require 'vimius/plugins'
+require 'janus/errors'
+require 'janus/git'
+require 'janus/vim'
+require 'janus/gems'
+require 'janus/github'
+require 'janus/plugins'
View
8 janus/ruby/janus/errors.rb
@@ -1,6 +1,6 @@
-module Vimius
+module Janus
# Errors
- VimiusError = Class.new Exception
- BlockNotGivenError = Class.new VimiusError
- RubyGemsNotFoundError = Class.new VimiusError
+ JanusError = Class.new Exception
+ BlockNotGivenError = Class.new JanusError
+ RubyGemsNotFoundError = Class.new JanusError
end
View
2  janus/ruby/janus/gems.rb
@@ -1,4 +1,4 @@
-module Vimius
+module Janus
# Find an installed gem
#
# @param [String] The gem name to search for
View
2  janus/ruby/janus/git.rb
@@ -1,4 +1,4 @@
-module Vimius
+module Janus
# Get a list of submodules
#
# @return [Array] of submodules
View
2  janus/ruby/janus/github.rb
@@ -1,4 +1,4 @@
-module Vimius
+module Janus
# Return a fully-qualified url to the raw page of a file stores inside
# a repository on github
View
6 janus/ruby/janus/plugins.rb
@@ -1,7 +1,7 @@
require 'rake'
require 'open-uri'
-module Vimius
+module Janus
include Rake::DSL
def self.included(base)
@@ -17,7 +17,7 @@ def self.included(base)
# @param [String] The plugin name
# @param [&block] The installation block
def install_vim_plugin(group, name, &block)
- raise Vimius::BlockNotGivenError unless block_given?
+ raise Janus::BlockNotGivenError unless block_given?
define_install_plugin_tasks(group, name, &block)
end
@@ -28,7 +28,7 @@ def install_vim_plugin(group, name, &block)
# @param [String] The plugin name
# @param [&block] The installation block
def install_vim_plugin_within_submodule(group, name, &block)
- raise Vimius::BlockNotGivenError unless block_given?
+ raise Janus::BlockNotGivenError unless block_given?
define_verify_plugin_tasks(group, name, &block)
define_install_plugin_tasks(group, name, &block)
View
2  janus/ruby/janus/vim.rb
@@ -1,4 +1,4 @@
-module Vimius
+module Janus
module VIM
extend self
View
86 janus/vim/core/before/plugin/janus.vim
@@ -1,12 +1,12 @@
""
-"" Vimius main functions
+"" Janus main functions
""
" Return a path separator on the current OS
" Taken from pathogen
"
" @return [String] The separator / or \
-function! vimius#separator()
+function! janus#separator()
return !exists("+shellslash") || &shellslash ? '/' : '\'
endfunction
@@ -14,13 +14,13 @@ endfunction
"
" @param [String] The path to a folder
" @return [List] List of files.
-function! vimius#vim_files(folder)
+function! janus#vim_files(folder)
let files = []
- let pattern = resolve(expand(a:folder)) . vimius#separator() . "*"
+ let pattern = resolve(expand(a:folder)) . janus#separator() . "*"
" Add all found vim files
for file in split(glob(pattern), "\n")
if isdirectory(file)
- call extend(files, vimius#vim_files(file))
+ call extend(files, janus#vim_files(file))
elseif (file =~ "\.vim$")
call add(files, file)
endif
@@ -32,26 +32,26 @@ endfunction
" Add a group of plug-ins to Pathogen
"
" @param [String] The plugin name
-function! vimius#add_group(name)
- if !exists("g:vimius_loaded_groups")
- let g:vimius_loaded_groups = []
+function! janus#add_group(name)
+ if !exists("g:janus_loaded_groups")
+ let g:janus_loaded_groups = []
endif
- call add(g:vimius_loaded_groups, a:name)
- call pathogen#runtime_prepend_subdirectories(g:vimius_vim_path. vimius#separator() . a:name)
+ call add(g:janus_loaded_groups, a:name)
+ call pathogen#runtime_prepend_subdirectories(g:janus_vim_path. janus#separator() . a:name)
endfunction
" Which group contains a plugin ?
"
" @param [String] The plugin name
" @return [String] The group name
-function! vimius#which_group(name)
- if !exists("g:vimius_loaded_groups")
+function! janus#which_group(name)
+ if !exists("g:janus_loaded_groups")
return ""
endif
- for group in g:vimius_loaded_groups
- if isdirectory(vimius#plugin_path(group, a:name))
+ for group in g:janus_loaded_groups
+ if isdirectory(janus#plugin_path(group, a:name))
return group
endif
endfor
@@ -64,9 +64,9 @@ endfunction
" @param [String] The plugin name
" @param [String] The reason why it is disabled
" @return [Bool]
-function! vimius#disable_plugin(...)
+function! janus#disable_plugin(...)
if a:0 < 1 || a:0 > 3
- throw "The arguments to vimius#disable_plugin() should bw [group], <name>, [reason]"
+ throw "The arguments to janus#disable_plugin() should bw [group], <name>, [reason]"
elseif a:0 == 1
let group = -1
let name = a:1
@@ -85,30 +85,30 @@ function! vimius#disable_plugin(...)
if !exists("g:pathogen_disabled")
let g:pathogen_disabled = []
endif
- if !exists("g:vimius_disabled_plugins")
- let g:vimius_disabled_plugins = {}
+ if !exists("g:janus_disabled_plugins")
+ let g:janus_disabled_plugins = {}
endif
" Fetch the group if necessary
if group == -1
- let group = vimius#which_group(name)
+ let group = janus#which_group(name)
endif
" Check if we need to add it
- if has_key(g:vimius_disabled_plugins, name) && g:vimius_disabled_plugins[name]['group'] == group
+ if has_key(g:janus_disabled_plugins, name) && g:janus_disabled_plugins[name]['group'] == group
" Just update the reason if necessary.
- if reason != "No reason given." && g:vimius_disabled_plugins[name]['reason'] == -1
- let g:vimius_disabled_plugins[name]['reason'] = reason
+ if reason != "No reason given." && g:janus_disabled_plugins[name]['reason'] == -1
+ let g:janus_disabled_plugins[name]['reason'] = reason
endif
return 0
endif
" Find the plugin path
- let plugin_path = vimius#plugin_path(group, name)
+ let plugin_path = janus#plugin_path(group, name)
- " Add it to vimius_disabled_plugins
- let g:vimius_disabled_plugins[name] = {'group': group, 'path': plugin_path, 'reason': reason}
+ " Add it to janus_disabled_plugins
+ let g:janus_disabled_plugins[name] = {'group': group, 'path': plugin_path, 'reason': reason}
" Add it to pathogen_disabled
call add(g:pathogen_disabled, plugin_path)
@@ -119,46 +119,46 @@ endfunction
" @param [String] The group the plugin belongs to, will be determined if
" no group were given.
" @param [String] The plugin name
-" @return [String] The plugin path relative to g:vimius_vim_path
-function! vimius#plugin_path(...)
+" @return [String] The plugin path relative to g:janus_vim_path
+function! janus#plugin_path(...)
if a:0 < 1 || a:0 > 2
- throw "The arguments to vimius#plugin_path() should be [group], <name>"
+ throw "The arguments to janus#plugin_path() should be [group], <name>"
elseif a:0 == 1
let name = a:1
- let group = vimius#which_group(name)
+ let group = janus#which_group(name)
else
let group = a:1
let name = a:2
endif
- return g:vimius_vim_path . vimius#separator() . group . vimius#separator() . name
+ return g:janus_vim_path . janus#separator() . group . janus#separator() . name
endfunction
" Is modules loaded?
"
" @param [String] The plugin name
" @return [Boolean]
-function! vimius#is_module_loaded(name)
- return len(vimius#vim_files(vimius#plugin_path(a:name))) > 0
+function! janus#is_module_loaded(name)
+ return len(janus#vim_files(janus#plugin_path(a:name))) > 0
endfunction
" Is plugin disabled?
"
" @param [String] The plugin name
-function! vimius#is_plugin_disabled(name)
- if !exists("g:vimius_disabled_plugins")
+function! janus#is_plugin_disabled(name)
+ if !exists("g:janus_disabled_plugins")
return 0
endif
- return has_key(g:vimius_disabled_plugins, a:name)
+ return has_key(g:janus_disabled_plugins, a:name)
endfunction
" Is plugin enabled?
"
" @param [String] The plugin name
" @return [Boolean]
-function! vimius#is_plugin_enabled(name)
- return vimius#is_module_loaded(a:name) && !vimius#is_plugin_disabled(a:name)
+function! janus#is_plugin_enabled(name)
+ return janus#is_module_loaded(a:name) && !janus#is_plugin_disabled(a:name)
endfunction
" Mapping function
@@ -167,20 +167,20 @@ endfunction
" @param [String] The mapping command (map, vmap, nmap or imap)
" @param [String] The mapping keys
" @param [String]* The mapping action
-function! vimius#add_mapping(name, mapping_command, mapping_keys, ...)
+function! janus#add_mapping(name, mapping_command, mapping_keys, ...)
if len(a:000) < 1
- throw "The arguments to vimius#add_mapping() should be <name> <mapping_command> <mapping_keys> <mapping_action> [mapping_action]*"
+ throw "The arguments to janus#add_mapping() should be <name> <mapping_command> <mapping_keys> <mapping_action> [mapping_action]*"
endif
- if vimius#is_plugin_enabled(a:name)
+ if janus#is_plugin_enabled(a:name)
let mapping_command = join(a:000)
else
- if !vimius#disable_plugin(a:name)
+ if !janus#disable_plugin(a:name)
let reason = "Module is not loaded"
- elseif g:vimius_disabled_plugins[a:name]['reason'] == -1
+ elseif g:janus_disabled_plugins[a:name]['reason'] == -1
return 0
else
- let reason = g:vimius_disabled_plugins[a:name]['reason']
+ let reason = g:janus_disabled_plugins[a:name]['reason']
endif
let mapping_command = "<ESC>:echo 'The plugin " . a:name . " is disabled for the following reason: " . reason . ".'<CR>"
View
14 janus/vim/core/before/plugin/plugins.vim
@@ -4,27 +4,27 @@ let s:no_ruby_support = "Vim is compiled without ruby support"
" Plugins that requires python support
if !has("python")
- call vimius#disable_plugin("gundo", s:no_python_support)
- call vimius#disable_plugin("pep8", s:no_python_support)
+ call janus#disable_plugin("gundo", s:no_python_support)
+ call janus#disable_plugin("pep8", s:no_python_support)
endif
" Plugins that requires ruby support
if !has("ruby")
- call vimius#disable_plugin("command-t", s:no_ruby_support)
- call vimius#disable_plugin("ruby", s:no_ruby_support)
+ call janus#disable_plugin("command-t", s:no_ruby_support)
+ call janus#disable_plugin("ruby", s:no_ruby_support)
endif
" Pep8 requires pep8 installed
if !executable("pep8")
- call vimius#disable_plugin("pep8", "The pep8 program is not installed")
+ call janus#disable_plugin("pep8", "The pep8 program is not installed")
endif
" Ack requires ack command
if !executable("ack")
- call vimius#disable_plugin("ack", "The ack program is not installed")
+ call janus#disable_plugin("ack", "The ack program is not installed")
endif
" Gist-vim requires curl
if !executable("curl")
- call vimius#disable_plugin("gist", "The curl program is not installed")
+ call janus#disable_plugin("gist", "The curl program is not installed")
endif
View
2  janus/vim/core/before/plugin/settings.vim
@@ -102,7 +102,7 @@ filetype plugin indent on " Turn on filetype plugins (:help filetype-plugin)
" In Makefiles, use real tabs, not tabs expanded to spaces
au FileType make set noexpandtab
-if vimius#is_plugin_disabled("ruby")
+if janus#is_plugin_disabled("ruby")
" Set the Ruby filetype for a number of common Ruby files without .rb
au BufRead,BufNewFile {Gemfile,Rakefile,Vagrantfile,Thorfile,Procfile,config.ru,*.rake} set ft=ruby
endif
View
4 janus/vim/core/before/plugin/statuline.vim
@@ -3,12 +3,12 @@ if has("statusline") && !&cp
set statusline=%f\ %m\ %r
" Add fugitive if enabled
- if vimius#is_plugin_enabled('fugitive')
+ if janus#is_plugin_enabled('fugitive')
set statusline+=%{fugitive#statusline()}
endif
" Add syntastic if enabled
- if vimius#is_plugin_enabled('syntastic')
+ if janus#is_plugin_enabled('syntastic')
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
View
4 janus/vim/langs/tasks/mustache.rake
@@ -1,6 +1,6 @@
install_vim_plugin "langs", "mustache" do
download_and_save_file github_raw("defunkt/mustache/master/contrib/mustache.vim"),
- "vimius/vim/langs/mustache/syntax/mustache.vim"
- open_and_save_file "vimius/vim/langs/mustache/ftdetect/mustache.vim",
+ "janus/vim/langs/mustache/syntax/mustache.vim"
+ open_and_save_file "janus/vim/langs/mustache/ftdetect/mustache.vim",
"au BufNewFile,BufRead *.mustache setf mustache"
end
View
2  janus/vim/tools/after/plugin/command-t-osx-menu-remapping.vim
@@ -1,3 +1,3 @@
-if vimius#is_plugin_enabled('command-t') && has("gui_macvim")
+if janus#is_plugin_enabled('command-t') && has("gui_macvim")
macmenu &File.New\ Tab key=<nop>
endif
View
2  janus/vim/tools/after/plugin/syntastic_settings.vim
@@ -1,4 +1,4 @@
-if vimius#is_plugin_enabled('syntastic')
+if janus#is_plugin_enabled('syntastic')
let g:syntastic_enable_signs=1
let g:syntastic_quiet_warnings=0
let g:syntastic_auto_loc_list=2
View
8 janus/vim/tools/janus/plugin/NERD_commenter.vim
@@ -1,8 +1,8 @@
" NERDCommenter mappings
if has("gui_macvim")
- call vimius#add_mapping('nerdcommenter', 'map', '<D-/>', '<plug>NERDCommenterToggle<CR>')
- call vimius#add_mapping('nerdcommenter', 'imap', '<D-/>', '<Esc><plug>NERDCommenterToggle<CR>i')
+ call janus#add_mapping('nerdcommenter', 'map', '<D-/>', '<plug>NERDCommenterToggle<CR>')
+ call janus#add_mapping('nerdcommenter', 'imap', '<D-/>', '<Esc><plug>NERDCommenterToggle<CR>i')
else
- call vimius#add_mapping('nerdcommenter', 'map', '<leader>/', '<plug>NERDCommenterToggle<CR>')
- call vimius#add_mapping('nerdcommenter', 'imap', '<leader>/', '<Esc><plug>NERDCommenterToggle<CR>i')
+ call janus#add_mapping('nerdcommenter', 'map', '<leader>/', '<plug>NERDCommenterToggle<CR>')
+ call janus#add_mapping('nerdcommenter', 'imap', '<leader>/', '<Esc><plug>NERDCommenterToggle<CR>i')
endif
View
4 janus/vim/tools/janus/plugin/ack.vim
@@ -1,7 +1,7 @@
if has("gui_macvim")
" Command-Shift-F on OSX
- call vimius#add_mapping('ack', 'map', '<D-F>', ':Ack<space>')
+ call janus#add_mapping('ack', 'map', '<D-F>', ':Ack<space>')
else
" Control-Shift-F on other systems
- call vimius#add_mapping('ack', 'map', '<C-F>', ':Ack<space>')
+ call janus#add_mapping('ack', 'map', '<C-F>', ':Ack<space>')
endif
View
20 janus/vim/tools/janus/plugin/command-t.vim
@@ -1,16 +1,16 @@
if has("gui_macvim")
- call vimius#add_mapping('command-t', 'map', '<D-t>', ':CommandT<CR>')
- call vimius#add_mapping('command-t', 'imap', '<D-t>', '<ESC>:CommandT<CR>')
+ call janus#add_mapping('command-t', 'map', '<D-t>', ':CommandT<CR>')
+ call janus#add_mapping('command-t', 'imap', '<D-t>', '<ESC>:CommandT<CR>')
- call vimius#add_mapping('command-t', 'map', '<D-A-t>', ':CommandTFlush<CR>')
- call vimius#add_mapping('command-t', 'imap', '<D-A-t>', '<ESC>:CommandTFlush<CR>')
+ call janus#add_mapping('command-t', 'map', '<D-A-t>', ':CommandTFlush<CR>')
+ call janus#add_mapping('command-t', 'imap', '<D-A-t>', '<ESC>:CommandTFlush<CR>')
else
- call vimius#add_mapping('command-t', 'map', '<C-t>', ':CommandT<CR>')
- call vimius#add_mapping('command-t', 'imap', '<C-t>', '<ESC>:CommandT<CR>')
+ call janus#add_mapping('command-t', 'map', '<C-t>', ':CommandT<CR>')
+ call janus#add_mapping('command-t', 'imap', '<C-t>', '<ESC>:CommandT<CR>')
- call vimius#add_mapping('command-t', 'map', '<C-A-t>', ':CommandTFlush<CR>')
- call vimius#add_mapping('command-t', 'imap', '<C-A-t>', '<ESC>:CommandTFlush<CR>')
+ call janus#add_mapping('command-t', 'map', '<C-A-t>', ':CommandTFlush<CR>')
+ call janus#add_mapping('command-t', 'imap', '<C-A-t>', '<ESC>:CommandTFlush<CR>')
endif
-call vimius#add_mapping('command-t', 'map', '<A-t>', ':CommandTBuffer<CR>')
-call vimius#add_mapping('command-t', 'imap', '<A-t>', '<ESC>:CommandTBuffer<CR>')
+call janus#add_mapping('command-t', 'map', '<A-t>', ':CommandTBuffer<CR>')
+call janus#add_mapping('command-t', 'imap', '<A-t>', '<ESC>:CommandTBuffer<CR>')
View
14 janus/vim/tools/janus/plugin/fugitive.vim
@@ -1,7 +1,7 @@
-" Vimius mappings
-call vimius#add_mapping('fugitive', 'nmap', '<leader>gb', ':Gblame<CR>')
-call vimius#add_mapping('fugitive', 'nmap', '<leader>gs', ':Gstatus<CR>')
-call vimius#add_mapping('fugitive', 'nmap', '<leader>gd', ':Gdiff<CR>')
-call vimius#add_mapping('fugitive', 'nmap', '<leader>gl', ':Glog<CR>')
-call vimius#add_mapping('fugitive', 'nmap', '<leader>gc', ':Gcommit<CR>')
-call vimius#add_mapping('fugitive', 'nmap', '<leader>gp', ':Git push<CR>')
+" Janus mappings
+call janus#add_mapping('fugitive', 'nmap', '<leader>gb', ':Gblame<CR>')
+call janus#add_mapping('fugitive', 'nmap', '<leader>gs', ':Gstatus<CR>')
+call janus#add_mapping('fugitive', 'nmap', '<leader>gd', ':Gdiff<CR>')
+call janus#add_mapping('fugitive', 'nmap', '<leader>gl', ':Glog<CR>')
+call janus#add_mapping('fugitive', 'nmap', '<leader>gc', ':Gcommit<CR>')
+call janus#add_mapping('fugitive', 'nmap', '<leader>gp', ':Git push<CR>')
View
2  janus/vim/tools/janus/plugin/gist.vim
@@ -1,4 +1,4 @@
-if vimius#is_plugin_enabled('gist')
+if janus#is_plugin_enabled('gist')
if executable("pbcopy")
" The copy command
let g:gist_clip_command = 'pbcopy'
View
4 janus/vim/tools/janus/plugin/gundo.vim
@@ -1,3 +1,3 @@
" Toggle Gundo
-call vimius#add_mapping('gundo', 'nmap', '<F5>', ':GundoToggle<CR>')
-call vimius#add_mapping('gundo', 'imap', '<F5>', '<ESC>:GundoToggle<CR>')
+call janus#add_mapping('gundo', 'nmap', '<F5>', ':GundoToggle<CR>')
+call janus#add_mapping('gundo', 'imap', '<F5>', '<ESC>:GundoToggle<CR>')
View
4 janus/vim/tools/janus/plugin/hammer.vim
@@ -1,6 +1,6 @@
-if vimius#is_plugin_enabled('hammer')
+if janus#is_plugin_enabled('hammer')
function! s:setupMarkup()
- call vimius#add_mapping('hammer', 'map <buffer>', '<Leader>p', ':Hammer<CR>')
+ call janus#add_mapping('hammer', 'map <buffer>', '<Leader>p', ':Hammer<CR>')
endfunction
if executable("redcarpet") && has("autocmd")
View
2  janus/vim/tools/janus/plugin/kwbd.vim
@@ -1 +1 @@
-call vimius#add_mapping('kwbd', 'nmap', '<C-W>!', '<Plug>Kwbd')
+call janus#add_mapping('kwbd', 'nmap', '<C-W>!', '<Plug>Kwbd')
View
4 janus/vim/tools/janus/plugin/nerdtree.vim
@@ -1,5 +1,5 @@
-if vimius#is_plugin_enabled("nerdtree")
+if janus#is_plugin_enabled("nerdtree")
let NERDTreeIgnore=['\.pyc$', '\.pyo$', '\.rbc$', '\.class$', '\.o', '\~$']
endif
-call vimius#add_mapping('nerdtree', 'map', '<Leader>n', ':NERDTreeToggle<CR>')
+call janus#add_mapping('nerdtree', 'map', '<Leader>n', ':NERDTreeToggle<CR>')
View
2  janus/vim/tools/janus/plugin/tagbar.vim
@@ -1,2 +1,2 @@
" Tagbar mappings.
-call vimius#add_mapping('tagbar', 'map', '<Leader>rt', ':TagbarToggle<CR>')
+call janus#add_mapping('tagbar', 'map', '<Leader>rt', ':TagbarToggle<CR>')
View
8 janus/vim/tools/janus/plugin/unimpaired.vim
@@ -1,7 +1,7 @@
" Normal Mode: Bubble single lines
-call vimius#add_mapping('unimpaired', 'nmap', '<C-Up>', '[e')
-call vimius#add_mapping('unimpaired', 'nmap', '<C-Down>', ']e')
+call janus#add_mapping('unimpaired', 'nmap', '<C-Up>', '[e')
+call janus#add_mapping('unimpaired', 'nmap', '<C-Down>', ']e')
" Visual Mode: Bubble multiple lines
-call vimius#add_mapping('unimpaired', 'vmap', '<C-Up>', '[egv')
-call vimius#add_mapping('unimpaired', 'vmap', '<C-Down>', ']egv')
+call janus#add_mapping('unimpaired', 'vmap', '<C-Up>', '[egv')
+call janus#add_mapping('unimpaired', 'vmap', '<C-Down>', ']egv')
View
2  janus/vim/tools/janus/plugin/zoomwin.vim
@@ -1,2 +1,2 @@
" Map <Leader><Leader> to ZoomWin
-call vimius#add_mapping('zoomwin', 'map', '<leader>zw', ':ZoomWin<CR>')
+call janus#add_mapping('zoomwin', 'map', '<leader>zw', ':ZoomWin<CR>')
View
2  janus/vim/tools/tasks/watchtower.rake
@@ -1,4 +1,4 @@
install_vim_plugin "tools", "watchtower" do
download_and_save_file github_raw("TechnoGate/watch_tower/master/lib/watch_tower/editor/extensions/watchtower.vim"),
- "vimius/vim/tools/watchtower/autoload/watchtower.vim"
+ "janus/vim/tools/watchtower/autoload/watchtower.vim"
end
View
22 janus/vim/vimrc
@@ -1,14 +1,14 @@
""
-"" Vimius setup
+"" Janus setup
""
" Define pathes
-let g:vimius_path = fnamemodify(resolve(expand("<sfile>:p")), ":h")
-let g:vimius_vim_path = fnamemodify(resolve(expand("<sfile>:p" . "vim")), ":h")
+let g:janus_path = fnamemodify(resolve(expand("<sfile>:p")), ":h")
+let g:janus_vim_path = fnamemodify(resolve(expand("<sfile>:p" . "vim")), ":h")
-" Source vimius's core
-exe 'source ' . g:vimius_vim_path . '/core/pathogen/autoload/pathogen.vim'
-exe 'source ' . g:vimius_vim_path . '/core/before/plugin/vimius.vim'
+" Source janus's core
+exe 'source ' . g:janus_vim_path . '/core/pathogen/autoload/pathogen.vim'
+exe 'source ' . g:janus_vim_path . '/core/before/plugin/janus.vim'
""
"" Customisations
@@ -24,11 +24,11 @@ endif
" You should note that groups will be processed by Pathogen in reverse
" order they were added.
-call vimius#add_group("tools")
-call vimius#add_group("langs")
-call vimius#add_group("colors")
-call vimius#add_group("custom")
-call vimius#add_group("core")
+call janus#add_group("tools")
+call janus#add_group("langs")
+call janus#add_group("colors")
+call janus#add_group("custom")
+call janus#add_group("core")
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
Please sign in to comment.
Something went wrong with that request. Please try again.