Giter VIP home page Giter VIP logo

janus's Introduction

Janus: Vim Distribution

This is a distribution of plug-ins and mappings for Vim, Gvim and MacVim.

It is designed to provide minimal working environment using the most popular plug-ins and the most common mappings.

The distribution is completely customisable using a ~/.vimrc.before and ~/.vimrc.after Vim RC files.

Updating to the latest version

To update to the latest version of the distribution, just run rake inside your ~/.vim directory.

NOTE: If you ever have an error updating Janus relating to a missing commit in a submodule, please try running rake again before submitting an issue.

Mailing list

The mailing list is hosted at Google Groups, please join it for discussion and announcements.

Pre-requisites

The distribution is designed to work with Vim >= 7.3.

The distribution also requires ack, ctags, git, ruby and rake. For the most comfortable experience, use the GUI version of Vim. Linux users should install gvim, OSX users should install MacVim. The recommended way of installing MacVim is using Homebrew, but before installing MacVim you need to use system-wide Python (If you are using python that is):

  • If you're using pythonbrew: do pythonbrew off
$ brew install macvim

If you don't use Homebrew, you can still download MacVim here.

Take a look at the Pre-requisites wiki page for more information.

Installation

To install Janus, please use our automatic installer , which backs up any Vim files found in your home folder and installs Janus.

$ curl -L https://bit.ly/janus-bootstrap | bash

Customization

You can use ~/.gvimrc.before and ~/.vimrc.before for settings Janus itself uses, such as the leader setting. You may also use ~/.gvimrc.after and ~/.vimrc.after for any additional settings; it is also a good place for overriding Janus settings, as both files will be loaded at the end of Janus.

For example, to override the default color schemes:

$ echo 'color desert'  >> ~/.vimrc.after
$ echo 'color molokai' >> ~/.gvimrc.after

If you want to do additional customization or add more Vim plugins, create a ~/.janus directory and add your plugins there, either with a git clone or by adding submodules to your own git repository there. This directory is treated like a normal pathogen directory. For example:

$ cd ~/.janus
$ git clone https://github.com/vim-scripts/Rename2.git rename2

Or, if you have a git repository in ~/.janus, you can use a submodule:

$ cd ~/.janus
$ git submodule add https://github.com/vim-scripts/Rename2.git rename2

If you would like to disable an included plug-in, you can do that with 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:

$ echo "call janus#disable_plugin('nerdcommenter')" >> ~/.vimrc.before

WARNING: We've noticed over and over, that people fork Janus just to customize it. This is bad practice for several reasons and you should not do that, and here's why:

  • Janus is fully customisable and there's no need to change the core for using a different plugin fork or using a different mapping.
  • Forking means maintenance; maintenance means burden. Do not burden yourself with maintaining a fork; that's what the ~/.janus folder is for.

If you find yourself needing a customisation that is not possible with the current setup, then please open an issue or consider submitting a pull request to make it possible to continue using/improving the official repo.

WARNING: Any uncommited files inside the janus folder will be removed the next time you run rake so make sure to either put them in the custom folder (~/.janus), or commit them. 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 Janus, you might want to take a look at the Customization wiki page. Additional you can see Example of customization.

Intro to VIM

Here're some tips in case you've never used VIM before:

Tutorials

Modes

  • VIM has three modes:
    • insert mode- stuff you type is added to the buffer
    • normal mode- keys you hit are interpreted as commands
    • visual mode- allows you to select blocks of text
  • To enter insert mode, hit i
  • To exit insert mode, hit <ESC>
  • To enter visual mode, hit v
  • To exit visual mode, hit <ESC>

Useful commands

  • Use :q to exit vim
  • Certain commands are prefixed with a <Leader> key, which maps to \ by default. You can, for example, use let mapleader = "," to change this to a comma. If you want this to be in effect for uses of <Leader> in the .vimrc file, make sure to define this in ~/.vimrc.before
  • Keyboard cheat sheet.

Features

This Vim distribution includes a number of packages built by others.

Base Customizations

Janus ships with a number of basic customizations for vim:

  • Line numbers
  • Ruler (line and column numbers)
  • No wrap (turn off per-buffer via :set wrap)
  • Soft 2-space tabs, and default hard tabs to 2 spaces
  • Show trailing whitespace as .
  • Make searching highlighted, incremental, and case insensitive unless a capital letter is used
  • Always show a status line
  • Allow backspacing over everything (indentations, eol, and start characters) in insert mode
  • <C-P> inserts the directory of the current file into a command
  • Automatically resize splits when resizing the Vim window (GUI only)
  • <leader>ew expands to :e (directory of current file)/ (open in the current buffer)
  • <leader>es expands to :sp (directory of current file)/ (open in a horizontal split)
  • <leader>ev expands to :vsp (directory of current file)/ (open in a vertical split)
  • <leader>et expands to :tabe (directory of current file)/ (open in a new tab)
  • Write a privileged file with :SudoW or :SudoWrite, it will prompt for sudo password when writing
  • <F4> toggles paste mode
  • <leader>fef formats the entire file
  • <leader>u converts the entire word to uppercase
  • <leader>l converts the entire word to lowercase
  • <leader>U converts the first char of a word to uppercase
  • <leader>L converts the first char of a word to lowercase
  • <leader>cd changes the path to the active buffer's file
  • <leader>md creates the directory of the active buffer's file (For example, when editing a new file for which the path does not exist.)
  • gw swaps the current word with the following word
  • <leader>ul underlines the current line with =
  • <leader>tw toggles wrap
  • <leader>fc finds the next conflict marker (tested with Git conflicted files)
  • Remap <Down> and <Up> to gj and gk (Wrapped text is not considered a single long line of text.)
  • <leader>hs toggles highlight search
  • <leader>= adjusts viewports to the same size (<C-w>=)
  • <A-[ (<D-[ on MacVim) shifts current line or selected lines rightwards
  • <A-] (<D-] on MacVim) shifts current line or selected lines leftwards
  • <C-W>! invokes kwbd plugin; it closes all open buffers in the open windows but keeps the windows open

Ack.vim uses ack to search inside the current directory for a pattern. You can learn more about it with :help Ack.

Customizations: Janus rebinds command-shift-f (<D-F>) to bring up :Ack .

Fuzzy file, buffer, mru and tag finder. Replaces Command-T

Customizations: For users of Command-T Janus maps CtrlP to command-t (<D-t>)

NERDCommenter allows you to wrangle your code comments, regardless of filetype. View :help NERDCommenter for all the details.

Customizations: Janus binds command-/ (<D-/>) to toggle comments.

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: Janus adds a number of customizations to the core NERDTree:

  • Use <Leader>n to toggle NERDTree
  • Ignore compiled ruby, python, and java files
  • When opening vim with vim /path, open the left NERDTree to that directory, set the vim pwd, and clear the right buffer
  • In general, assume that there is a single NERDTree buffer on the left and one or more editing buffers on the right

This plugin provides a lot of useful mappings, here's a brief example of what it does provide:

  • [b to go to the previous buffer
  • ]b to go to the next buffer
  • [n to go to the previous SCM conflict marker
  • ]n to go to the next SCM conflict marker

Please check :help unimpaired for a complete list

In insert mode, start typing something and hit <TAB> to tab-complete based on the current context.

Syntastic is a syntax checking plugin that runs files through external syntax checkers as they are saved and opened. If syntax errors are detected, the user is notified and is happy because they didn't have to compile their code or execute their script to find them.

Please see :help syntastic for more information.

Tagbar is a vim plugin for browsing the tags of source code files.

Customizations: Janus binds <Leader>rt to toggle Tagbar.

SnipMate defines text snippets (a series of characters) that expand to a useful piece of code when tab is pressed. For example, in a Ruby file, def<TAB> expands to:

def method_name

end

After typing in the method name, press tab again to put the cursor right where you want it on the next line. This repository has a full list of the Snippets that are available in Janus.

EasyMotion provides a much simpler way to use some motions in vim. It takes the <number> out of <number>w or <number>f{char} by highlighting all possible choices and allowing you to press one key to jump directly to the target.

When one of the available motions is triggered, all visible text preceding or following the cursor is faded, and motion targets are highlighted.

EasyMotion is triggered by one of the provided mappings.

check EasyMotion's home page for more information.

Narrowing means focussing on a region and making the rest inaccessible. You simply select the region, call :NarrowRegion and the selected part will open in a new scratch buffer. The rest of the file will be protected, so you won't accidentally modify that buffer. In the new buffer, you can do a global replace, search or anything else to modify that part. When you are finished, simply write that buffer (e.g. by |:w|) and your modifications will be put in the original buffer making it accessible again.

Git Support (Fugitive)

Fugitive adds pervasive git support to git directories in vim. For more information, use :help fugitive

Use :Gstatus to view git status and type - on any file to stage or unstage it. Type p on a file to enter git add -p and stage specific hunks in the file.

Use :Gdiff on an open file to see what changes have been made to that file

customizations:

  • <leader>gb maps to :Gblame<CR>
  • <leader>gs maps to :Gstatus<CR>
  • <leader>gd maps to :Gdiff<CR>
  • <leader>gl maps to :Glog<CR>
  • <leader>gc maps to :Gcommit<CR>
  • <leader>gp maps to :Git push<CR>

A Vim plugin which shows a git diff in the 'gutter' (sign column). It shows whether each line has been added, modified, and where lines have been removed. You can also stage and revert individual hunks.

When working with split windows, ZoomWin lets you zoom into a window and out again using Ctrl-W o

Customizations: Janus binds <leader>zw to :ZoomWin

Better JSON and JSONP with distinct highlighting for keywords versus values, strings colored differently from numbers and booleans and double quotes concealed (disable with let g:vim_json_syntax_conceal = 0 in ~/.vimrc.after, folding of {...} and [...] blocks (enable with :setlocal foldmethod=syntax, and JSON-specific warnings highlighted in red.

Buffergator is a plugin for listing, navigating between, and selecting buffers to edit. Upon invocation (using the command, :BuffergatorOpen or BuffergatorToggle, or the provided key mapping, <Leader>b), a catalog of listed buffers are displayed in a separate new window split (vertical or horizontal, based on user options; default = vertical). From this "buffer catalog", a buffer can be selected and opened in an existing window, a new window split (vertical or horizontal), or a new tab page.

Selected buffers can be "previewed", i.e. opened in a window or tab page, but with focus remaining in the buffer catalog. Even better, you can "walk" up and down the list of buffers shown in the catalog by using <C-N> (or <SPACE>) / <C-P> (or <C-SPACE>). These keys select the next/previous buffer in succession, respectively, opening it for preview without leaving the buffer catalog viewer.

VRoom is a plugin inspired by Gary Bernhardt's vim config for running your ruby tests/specs/features.

Imagine you're hacking on a Rails controller, when you switch to the test or specs for the controller, you can use <leader>r to run all the specs or <leader>R to run the closest spec, then you can jump back to the controller hack on it and use <leader>r to run the last spec you ran last time, so you don't need to open the test again.

Then benefits of this plugin are to centralize your workflow in one window, one software to do it all, which is a huge speedup over using tmux or multiple terminal tabs.

Out of the box, all you need to know is a single key Ctrl-n. Pressing the key in Normal mode highlights the current word under the cursor in Visual mode and places a virtual cursor at the end of it. Pressing it again finds the next occurrence and places another virtual cursor at the end of the visual selection. If you select multiple lines in Visual mode, pressing the key puts a virtual cursor at every line and leaves you in Normal mode.

More at QuickStart

This plugin causes all trailing whitespace to be highlighted in red.

To fix the whitespace errors, just call :FixWhitespace. By default it operates on the entire file. Pass a range (or use V to select some lines) to restrict the portion of the file that gets fixed.

Additional Syntaxes

Janus ships with a few additional syntaxes:

  • Markdown (bound to *.markdown, *.md, and *.mk)
  • Markdown auto styling (disabled by setting g:disable_markdown_autostyle in ~/.vimrc.before => let g:disable_markdown_autostyle = 1)
  • Mustache (bound to *.mustache)
  • Haml (bound to *.haml)
  • Sass (bound to *.sass)
  • SCSS (bound to *.scss)
  • An improved JavaScript syntax (bound to *.js)
  • Javascript for any file having nodejs in the shebang.
  • Map Gemfile, Rakefile, Vagrantfile, Procfile, Thorfile, config.ru and *.rake to Ruby.
  • Git commits (set your EDITOR to vim -f or mvim -f on OSX) $ echo "export EDITOR='vim -f'" >> ~/.bashrc, you can also use Git global config to set this if you have EDITOR set to something else $ git config --global core.editor 'vim -f'

License

This code is free to use under the terms of the 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.

janus's People

Contributors

acrogenesis avatar adrianrego avatar benburkert avatar bergman avatar bmorearty avatar brunohenrique avatar guilleiguaran avatar hakanensari avatar idearat avatar jackdempsey avatar jarinudom avatar jayharris avatar kalbasit avatar kassens avatar lackac avatar mattvonvielen avatar msabramo avatar myronmarston avatar quantisan avatar rafmagana avatar richardkmichael avatar robertomiranda avatar spastorino avatar tmm1 avatar tpope avatar wagenet avatar wuputah avatar wycats avatar zeedunk avatar zerowidth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

janus's Issues

wrong ruby when running rake

I was having a hard time getting Janus and MacVim working when I realized that I had my rvm ruby in my path when I ran rake. After launching MacVim it would show only some menu items, and when I would click, it would do nothing.

Removing rvm from my path and moving /usr/local/bin to the end of my path (so I could have homebrew git, but not homebrew ruby) fixed it.

Ideas for preventing this from happening:

  • Add a make sure system ruby is in your path step to the installation instructions in the readme
  • Adding a Troubleshooting section to the readme with a note about making sure you're using the right ruby
  • Warn when the ruby doesn't match what the snapshot will use

command-t losing spec folder?

I realize this is more of a command-t issue perhaps, but have any janus users noticed that after awhile, command-t stops searching things in the spec folder? sometimes recompiling the plugin helped for awhile, but not it just seems to hate that folder. Anybody know of any workarounds?

Filenames are not escaped in vimrc/gvimrc

Execute and shell commands don't have their arguments escaped in gvimrc / vimrc.

To reproduce this just create a directory with a "blank" in the name, like "test directory".
When you cd into that directory and execute "mvim ." an error within "CdIfDirectory" will be shown.

There seem to be several locations where file or directory names are used unescaped. These arguments should be escaped with "fnameescape" or "shellescape" depending on context.

My ack doesn't search sass files

Hello,
my vim does't search sass files, I tried configuring Ack in ~/.ackrc with

--type-add=ruby=.haml,.rake,.rsel,.builder
--type-add=html=.html.erb,.html.haml
--type-add=js=.js.erb
--type-add=css=.sass,.less,.scss
--type-set=cucumber=.feature
--ignore-dir=vendor
--ignore-dir=log
--ignore-dir=tmp
--ignore-dir=doc
--ignore-dir=coverage
--sort-files
--color
--follow
--group

but it didnt work...

ZoomWinPlugin error

When I start vim:

Error detected while processing /Users/mike/.vim/plugin/ZoomWinPlugin.vim:
line 1:
E492: Not an editor command: ["" ZoomWin:\tBrief-like ability to zoom into/out-of a window\n", "" Author:\tCharles Campbell\n", ""\t\t\toriginal version by Ron Aaron\n", "" Date:\t\tJan 16, 2009\n", "" Version:\t23e\tASTRO-ONLY\n", "" History: see :help zoomwin-history {{{1\n", "" GetLatestVimScripts: 508 1 :AutoInstall: ZoomWin.vim\n", "\n", "" ---------------------------------------------------------------------\n", "" Load Once: {{{1\n", "if &cp || exists("g:loaded_ZoomWinPlugin")\n", " finish\n", "endif\n", "if v:version < 702\n", " echohl WarningMsg\n", " echo "_warning_ this version of ZoomWin needs vim 7.2"\n", " echohl Normal\n", " finish\n", "endif\n", "let s:keepcpo = &cpo\n", "let g:loaded_ZoomWinPlugin = "v23"\n", "set cpo&vim\n", ""DechoTabOn\n", "\n", "" ---------------------------------------------------------------------\n", "" Public Interface: {{{1\n", "if !hasmapto("ZoomWin")\n", " nmap o ZoomWin\n", "endif\n", "nnoremap <sile

My version:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 15 2010 22:03:01)
MacOS X (unix) version

Quote completion generates errors

I often get errors when typing '. I would prefer it just didn't complete the quotes than raise an error

Error detected while processing function 21_CheckPair..21_CountQuotes..21_RemoveQuotes:
line 25:
E684: list index out of range: 70

usage of RVM

at line 99 of the Rakefile, should we assume that everyone has installed RVM?

Is there a way to redefine your snippets?

Hi,

Is there a way to redefine the snippets that are pulled automatically? I like to write my own snippets and would like to redefine yours, but I don't want to mess with the .vim directory as it is your repository, and my work might get lost when new changes are pulled.

Thanks, Ollie.

Should the rake task delete directories inside ~/.vim before installation?

I just installed MacVim and janus on a friends' Mac. I noticed that nerdtree looked different and that autoclose was gone in comparison with my install (maybe there is even more). I needed to delete some directories to get the new nerdtree. I would definitely not have noticed the differences otherwise.

Should the rake task delete stuff before it trying to install new versions or should I approach this differently?

how can I load a custom plugin?

And where should it live (I'm assuming not in my ~/.vim, which is a checkout of janus)? Do I just stick something in my ~/.vimrc.local? If so, what? Or are other changes required? Yehuda mentioned something about pathogen...

Install Error.

Installed MacVim and ran the install script for janus (curl https://github.com/carlhuda/janus/raw/master/bootstrap.sh -o - | sh)

I get this error:

  ****************************************
  *         Installing command_t         *
  ****************************************

  git clone git://github.com/wincent/Command-T.git /Users/rafaelvega/.vim/tmp/command_t
  Cloning into /Users/rafaelvega/.vim/tmp/command_t...
  remote: Counting objects: 1854, done.
  remote: Compressing objects: 100% (767/767), done.
  remote: Total 1854 (delta 995), reused 1769 (delta 932)
  Receiving objects: 100% (1854/1854), 303.19 KiB | 380 KiB/s, done.
  Resolving deltas: 100% (995/995), done.
  git pull
  Already up-to-date.
  cp -rf doc/* /Users/rafaelvega/.vim/doc/
  cp -rf plugin/* /Users/rafaelvega/.vim/plugin/
  cp -rf ruby/* /Users/rafaelvega/.vim/ruby/
  find ruby -name '.gitignore' | xargs rm
  rvm system ruby extconf.rb
  ruby: No such file or directory -- extconf.rb  (LoadError)
  rake aborted!
  Command failed with status (1): [rvm system ruby extconf.rb...]
  /Users/rafaelvega/.vim/Rakefile:155
  (See full trace by running task with --trace)

Now, the file is clearly there:

  rvlaptop ~: find .vim -name extconf.rb
  .vim/ruby/command-t/extconf.rb
  .vim/tmp/command_t/ruby/command-t/extconf.rb

Looks like the Dir.chdir "ruby/command-t" line in the Rakefile is not being executed? I'm using RVM and I have xcode and the unix devel tools installed on my machine.

Any troubleshooting tips?

Thanks for putting all this stuff together, hopefully the switch to vim won't bee too painful :)

installation

i guess the first step of installation should be:

git clone http://github.com/carlhuda/janus.git ~/.vimrc

option to remove "" #{} [] behaviour

as it is "fucking with my shit"(cc).

:D

for better or for worse - i frequently need to add a single ) or } or ] and when i write code like

return /^!last\s(\d{1,3})(?:\s/(.+)/)?$/

the breaks completely.

Custom leader key

If I change the leader key in .vimrc.local, combos defined with leader in .vimrc still remain mapped to \.

It would be great to prompt optionally for a leader key in rake and then put that at the top of the .vimrc.

command-t javascripts/stylesheets folder (rails)

I can't find files using command-t inside "javascripts" and "stylesheets" folder (rails 2.x project). I tried to prepend some characters to these folders and cmd-t works fine.

These folders have something special that I don't understand or it's just a bug?

vim script for linux ubuntu?

Hi!
I love this script! Is it anyhow possible to get this running under linux (ubuntu) as well? Or do you know any other script which does this?

Left, right scrollbars

Was wondering if you have any use for the left and right scrollbars in mvim or would rather do the following in gvimrc:

" Remove left and right scrollbars
set guioptions-=L
set guioptions-=r

Undo/Redo no longer work correctly

Previously I've been using my own homegrown set of vim files but decided to start using janus to get the benefits of a community-driven setup. Overall janus has worked very well for me but there's one major annoyance: undo and redo no longer work correctly. They work correctly when as long as I stay in the same buffer but not when I change buffers. When I change to a buffer, its as if there is no undo history; undo and redo do nothing, even if I had previously made changes to that buffer in the same editing session.

I'm pretty new to vim and am not sure where to start looking to troubleshoot this. Anyone have any ideas how janus could be messing this up?

:bd should merely close the current buffer, not close MacVim entirely.

Say I'm working with 5 files, so 5 buffers. All files' changes have been saved. I don't want the file I'm looking at to show up any more when I do :bn (buffer next), so I do a :bd (buffer delete I suppose), expecting to end up with 4 buffers, but instead MacVim closes up completely.
Thanks for janus, by the way. It's been a great learning tool so far.

Auto bracket closing feature

Hi, I am running into a bug with the automatic insertion of closing quotes, parenthesis, and braces. Vim won't let me insert a bracket where I need to. It actually deletes it as soon as I type it.

I would like to turn this functionality off, but I can't find where you have enabled it. I've looked through .gvimrc and .vimrc. Can you please point me in the right direction?

Thanks

vimball files (.vba) fail to install on some systems

Running the standard installation instructions fails on my mac machine, particularly when the main installation task attempts to install ZoomWin. There should be some sort of check to prevent installation of OS-specific plugins on systems they are not intended for.

ConqueTerm overrides NERDTree's buffer

When NERDTRee's buffer is in focus, launching ConqueTerm (with ) will override it.
I think it should behave like :e in NERDTree and open ConqueTerm in the main buffer.

Exit status of rvm is 0 not 1

This may not have been the case when the Rakefile was initially created, but it seems to be now. At least on my Mac and my Ubuntu machine at work. I'd give a pull request, but I fixed it with a couple of other things.

Here's the relevant commit though:

mlins@4d80a53

Slim bootstrap

I don't know you, but I hate to type too much in terminal :) I think the following lines are more elegant for bootstrap:

cd
ls -d .vim .vimrc .gvimrc | xargs -I% mv % %.old
git clone git://github.com/carlhuda/janus.git .vim
cd .vim
rake

Use config file and pathogen instead of vim_plugin_task

I had an issue with vim-irblack and vim-coffee-script installing. Specifically, they didn't install. This is a little annoying for the vim-irblack (since it's in the default for janus).

It would be nice if janus were a little more flexible and used pathogen, and it's default bundle dir, as the default for installing vim plugins with the rake file reading from a config. Anything that would require extra configuration could still use the vim_plugin_task block syntax.

Installation error when the process gets to command_t

I've recently installed MacVim and wanted to get the goodies from Janus. I followed the install instructions in the readme file here on Github but I'm getting an error when the process gets to the point of installation command_t.

Here's what I'm seeing:


  •     Installing command_t         *
    

Initialized empty Git repository in /Users/aaron/.vim/tmp/command_t/.git/
remote: Counting objects: 1815, done.
remote: Compressing objects: 100% (989/989), done.
remote: Total 1815 (delta 969), reused 1305 (delta 674)
Receiving objects: 100% (1815/1815), 285.91 KiB | 146 KiB/s, done.
Resolving deltas: 100% (969/969), done.
Already up-to-date.
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
rake aborted!
Command failed with status (1): [/usr/bin/ruby extconf.rb...]
/Users/aaron/.vim/rakefile:154
(See full trace by running task with --trace)

I read that the missing Ruby header files are typically due to not having Xcode installed. So I installed Xcode (Essentials and System tools only) but I'm still getting the error. The path to ruby.h exists, but the ruby.h file itself is not there.

ruby -v reports:
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

Any ideas on things I can try to get Janus installed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.