carlhuda / janus Goto Github PK
View Code? Open in Web Editor NEWVim distribution
Vim distribution
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.
this is a useful textmate feature, for example git diff | mate
which does not work with mvim
Currently, the ir_black colorscheme is no longer included after performing a rake upgrade
. This causes an error to occur when gvim
starts, due to line 52 of gvimrc.
Simple to fix, of course, but wanted to let you know it's happening.
add to .vimrc (not .gvimrc) :
let macvim_hig_shift_movement = 1
This will make the editor much more familiar for people starting out.
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
http://www.vim.org/scripts/script.php?script_id=2578
And it lets me be a grown up and turn off ;
:E is built into vim and does the same as the e mapping.
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
.
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...
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
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?
Complains about smart indent
:(
Folding is a nice feature. 'set foldmethod=syntax' should do it.
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.
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?
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
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:
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?
Color scheme inserted in .vimrc.local (or .vimrc) is ignored by MacVim, since the one in .gvimrc overwrite it. The theme does work in the terminal.
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 :)
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
I would love to see ruby debugger included in the distribution.
Implementing this is no problem for me, as long as other people will find it useful too.
Could do with looking at https://github.com/astashov/vim-ruby-debugger and implementing it in janus, with custom keybindings.
Why does *.html.erb opens as eruby? Shouldn't the file type be eruby-rails?
If NERDTree is not visible, it should not be made visible as a side-effect. Or at the very least, the current behavior should be easily overridden in .gvimrc.local
.
i guess the first step of installation should be:
git clone http://github.com/carlhuda/janus.git ~/.vimrc
?
how can i turn this off.
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.
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
If you use Vim as your GIT_EDITOR and write a multiline commit message, the next commit message you write may put the caret at e.g. line 3 instead of line 1.
Fixed this in my repo based on (but not forked from) Janus: henrik/dotfiles@6167bf3
Based on code from https://github.com/akitaonrails/vimfiles/blob/master/vimrc#L367
janus should support textmate style apple-NUM keys to switch to a tab, instead of the current apple-} and apple-{
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.
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.
at line 99 of the Rakefile, should we assume that everyone has installed RVM?
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?
:h FocusLost
Optionally current buffer, or all buffers in window?
There should be a keybinding to refresh Command-T's file list. Or, we can force it to reload everytime Command-T is invoked, which seems to be a common solution.
This only seems to collapse all the code in the file. I couldn't locate anything that might have been overriding this. Any ideas on how to get this functionality back?
See probablycorey@69525d91690f2818ef544100cc894e6e10168350 and http://github.com/probablycorey/janus/commits/master
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?
I've seen a wish somewhere in the source/config files for ruby text-objects, recently i stumbled on a plugin for this here:
http://vimcasts.org/blog/2010/12/a-text-object-for-ruby-blocks/
It requires the textobj-user, textobj-rubyblock and matchit plugins.
When i have some time i'll try to incorporate it with janus and make a patch.
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?
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.
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:
Great work! Two plugins that I though you may be interested in adding to this package.
http://peterodding.com/code/vim/session (supports saving sessions, compatible with NerdTree)
http://www.vim.org/scripts/script.php?script_id=42 (buffer support)
https://github.com/akitaonrails/vimfiles
I noticed a lot of good snippets here for all the common Rails plugins. I'm totally new to VIM, is integration just a matter of dropping them in the .vim/snippets folder?
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...
Instead of remapping Toggle Full Screen Mode to , why not Cmd+Return, ala iTerm?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.