Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: stevemartin/dotvim
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: neilcode/dotvim
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Jul 21, 2014

  1. revert 3f95790

    Yu-Hung Lin committed Jul 21, 2014
    Copy the full SHA
    cc7977c View commit details

Commits on Jul 25, 2014

  1. Highlight after 100 characters.

    Danny Olson committed Jul 25, 2014
    Copy the full SHA
    1f96791 View commit details

Commits on Jul 26, 2014

  1. Use vundle instead of pathogen.

    * Use vroom instead of vim-rspec
    Danny Olson committed Jul 26, 2014
    Copy the full SHA
    df9fda5 View commit details
  2. Update readme.

    Danny Olson committed Jul 26, 2014
    Copy the full SHA
    73cdd72 View commit details

Commits on Jul 27, 2014

  1. Clean up readme.

    Danny Olson committed Jul 27, 2014
    Copy the full SHA
    5df33e2 View commit details
  2. Add bundled plugins.

    Danny Olson committed Jul 27, 2014
    Copy the full SHA
    43d8902 View commit details
  3. Ignore bundle/.

    * We need to install vundle anyway, so this way we can have project
      specific plugins without polluting the main repository
    Danny Olson committed Jul 27, 2014
    Copy the full SHA
    69a9e9e View commit details
  4. Finally got readme correct.

    Danny Olson committed Jul 27, 2014
    Copy the full SHA
    52eb727 View commit details
  5. Remove plugins from /bundle.

    Danny Olson committed Jul 27, 2014
    Copy the full SHA
    b91e8ed View commit details

Commits on Jul 30, 2014

  1. Remove trailing whitespace on buffer save.

    Danny Olson committed Jul 30, 2014
    Copy the full SHA
    bde8562 View commit details

Commits on Jul 31, 2014

  1. Add writeup about whitespace.

    * Line breaks at 100 characters
    Danny Olson committed Jul 31, 2014
    Copy the full SHA
    caec484 View commit details

Commits on Aug 1, 2014

  1. Add clojure plugins and setup.

    Danny Olson committed Aug 1, 2014
    Copy the full SHA
    6854755 View commit details

Commits on Aug 4, 2014

  1. Added vim-multiple-cursors plugin.

    Afam Agbokdike and Jack Zhou committed Aug 4, 2014
    Copy the full SHA
    324c0d4 View commit details

Commits on Aug 6, 2014

  1. Added vim-multiple-cursors plugin

    Afam Agbokdike committed Aug 6, 2014
    Copy the full SHA
    77cc761 View commit details
  2. Removed duplicate multiple cursors plugin entry

    Afam Agbokdike committed Aug 6, 2014
    Copy the full SHA
    e33380f View commit details

Commits on Aug 8, 2014

  1. should document new bundles

    Yu-Hung Lin committed Aug 8, 2014
    Copy the full SHA
    586f9c9 View commit details
  2. Add space after ag command since we always need it.

    Danny Olson committed Aug 8, 2014
    Copy the full SHA
    1aaf5b6 View commit details

Commits on Aug 11, 2014

  1. Copy the full SHA
    7e8fe1c View commit details

Commits on Aug 12, 2014

  1. fix vroom link

    Yu-Hung Lin committed Aug 12, 2014
    Copy the full SHA
    3348cb4 View commit details
  2. new bundles + regex engine setting

    Yu-Hung Lin committed Aug 12, 2014
    Copy the full SHA
    32e0791 View commit details

Commits on Aug 15, 2014

  1. Merge pull request #4 from FundingCircle/blockie-airlines

    Blockle airlines
    agbodike committed Aug 15, 2014
    Copy the full SHA
    d0447cf View commit details

Commits on Aug 26, 2014

  1. Add rainbow parentheses for clojure.

    Danny Olson committed Aug 26, 2014
    Copy the full SHA
    4801f12 View commit details

Commits on Sep 8, 2014

  1. Organize and update bundles.

    Danny Olson committed Sep 8, 2014
    Copy the full SHA
    ddba381 View commit details
  2. Merge pull request #5 from FundingCircle/organize-bundles

    Organize and update bundles.
    dbolson committed Sep 8, 2014
    Copy the full SHA
    280bab7 View commit details
  3. Dockerfile syntax highlighting.

    * Need to run `set syntax=dockerfile` for some reason
    Danny Olson committed Sep 8, 2014
    Copy the full SHA
    0283671 View commit details

Commits on Oct 27, 2014

  1. Generate ctags in .git

    Danny Olson and Keith Smiley committed Oct 27, 2014
    Copy the full SHA
    94b7a47 View commit details

Commits on Oct 31, 2014

  1. Modify clojure plugins.

    Danny Olson committed Oct 31, 2014
    Copy the full SHA
    abd4c86 View commit details
  2. Make commands more robust.

    Danny Olson committed Oct 31, 2014
    Copy the full SHA
    679cedb View commit details
  3. Add to clojure testing workflow.

    Danny Olson committed Oct 31, 2014
    Copy the full SHA
    8ece935 View commit details

Commits on Nov 2, 2014

  1. Install tag list to view ctags.

    Danny Olson committed Nov 2, 2014
    Copy the full SHA
    6af5baa View commit details

Commits on Nov 3, 2014

  1. Copy the full SHA
    8e79eb7 View commit details

Commits on Nov 29, 2014

  1. JS plugins for highlighting and indentation

    Yu-Hung Lin committed Nov 29, 2014
    Copy the full SHA
    46e0a0a View commit details

Commits on Dec 1, 2014

  1. Merge pull request #6 from FundingCircle/yl-js-plugins

    JS plugins for highlighting and indentation
    yuhunglin committed Dec 1, 2014
    Copy the full SHA
    aaacea9 View commit details
  2. This does not work nearly as well as running tests from the test itself.

    * Add speclj macros to indent properly
    dbolson committed Dec 1, 2014
    Copy the full SHA
    f3b0268 View commit details

Commits on Dec 2, 2014

  1. Merge pull request #7 from FundingCircle/clojure-cleanup

    Remove running test from file under test
    dbolson committed Dec 2, 2014
    Copy the full SHA
    a4d3a78 View commit details

Commits on Dec 12, 2014

  1. This will make indenting speclj tests easier.

    Aaron Probus and Danny Olson committed Dec 12, 2014
    Copy the full SHA
    8daa558 View commit details
  2. Remove ii to go out of insert mode.

    * It can be convenient, but it's also a pain when wanting to actually
      type an "i"
    Aaron Probus and Danny Olson committed Dec 12, 2014
    Copy the full SHA
    7f316a0 View commit details
  3. Merge pull request #9 from FundingCircle/remove-i-for-insert-mode

    Remove ii to go out of insert mode.
    dbolson committed Dec 12, 2014
    Copy the full SHA
    aa6aa03 View commit details
  4. Merge pull request #8 from FundingCircle/clojure-syntax

    This will make indenting speclj tests easier.
    dbolson committed Dec 12, 2014
    Copy the full SHA
    0304d98 View commit details

Commits on Dec 17, 2014

  1. word casing manipulation and jsdoc bundles

    move js bundles to it's own file
    Yu-Hung Lin authored and Laila Winner and Yu-Hung Lin committed Dec 17, 2014
    Copy the full SHA
    35ba9d3 View commit details

Commits on Dec 19, 2014

  1. Merge pull request #11 from FundingCircle/yl-more-bundles

    word casing manipulation and jsdoc bundles
    yuhunglin committed Dec 19, 2014
    Copy the full SHA
    edafab5 View commit details

Commits on Apr 29, 2015

  1. Remove autosave

    Mongey committed Apr 29, 2015
    Copy the full SHA
    5c06370 View commit details

Commits on May 2, 2015

  1. Copy the full SHA
    1e68c7b View commit details
  2. Pare back clj customizations.

    * Remove reloading namespaces as it's a pain
    * Remove test customizations as they're not used
    * Don't line break thread macros too much
    dbolson committed May 2, 2015
    Copy the full SHA
    76c3bde View commit details

Commits on May 19, 2015

  1. Merge pull request #14 from FundingCircle/clj-cleanup

    Pare back clj customizations.
    dbolson committed May 19, 2015
    Copy the full SHA
    95abeec View commit details

Commits on Nov 18, 2015

  1. Remove rainbow parens.

    * It's been finicky
    dbolson committed Nov 18, 2015
    Copy the full SHA
    902af2e View commit details

Commits on Dec 6, 2015

  1. Merge pull request #15 from FundingCircle/remove-rainbow-parens

    Remove rainbow parens.
    dbolson committed Dec 6, 2015
    Copy the full SHA
    f09e423 View commit details

Commits on Mar 3, 2016

  1. tweaks

    Neil Lambert committed Mar 3, 2016
    Copy the full SHA
    504b5bf View commit details
  2. tweak

    Neil Lambert committed Mar 3, 2016
    Copy the full SHA
    7a76e6d View commit details

Commits on Jun 27, 2016

  1. Update README.md

    neilcode authored Jun 27, 2016
    Copy the full SHA
    64cad3d View commit details
Showing with 399 additions and 543 deletions.
  1. +2 −1 .gitignore
  2. +0 −54 .gitmodules
  3. +110 −30 README.md
  4. +1 −0 after/ftplugin/clojure.vim
  5. +0 −245 autoload/pathogen.vim
  6. +0 −1 bundle/ack
  7. +0 −1 bundle/ag
  8. +0 −1 bundle/auto-save
  9. +0 −1 bundle/ctrlp
  10. +0 −1 bundle/fugitive
  11. +0 −1 bundle/jasmine
  12. +0 −1 bundle/kwbd
  13. +0 −1 bundle/localvimrc
  14. +0 −1 bundle/nerdcommenter
  15. +0 −1 bundle/nerdtree
  16. +0 −1 bundle/rails
  17. +0 −1 bundle/rspec
  18. +0 −1 bundle/ruby-matchit
  19. +0 −1 bundle/supertab
  20. +0 −1 bundle/surround
  21. +0 −1 bundle/syntastic
  22. +0 −1 bundle/zoomwin
  23. +6 −0 bundles-clojure.vimrc
  24. +7 −0 bundles-javascript.vimrc
  25. +51 −0 bundles.vimrc
  26. +4 −0 custom-clojure.vimrc
  27. +216 −0 default.vimrc
  28. +2 −196 vimrc
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.netrwhist
backup/*
backup/
bundle/
54 changes: 0 additions & 54 deletions .gitmodules

This file was deleted.

140 changes: 110 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -3,49 +3,129 @@
## Instructions

```bash
git clone http://github.com/FundingCircle/dotvim.git ~/.vim
git clone http://github.com/neilcode/dotvim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
cd ~/.vim/ && git submodule init && git submodule update
cd ~/.vim
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
```

Now open Vim and run `:BundleInstall`

## Custom Commands

**NB**: \<leader\> is defined as *,* (comma).

* **i**: goes from normal mode to insert mode.
* **ii**: goes to normal mode from insert mode.
* **<leader>cf**: copies the current file name into the clipboard
* **<leader>R**: pastes last contents of what was yanked regardless of what was deleted after
* **<ctrl>c**: (from visual mode) copies the highlighted text into the clipboard
* **<leader>v**: vertical split
* **<leader>h**: horizontal split
* **<ctrl>j/k/h/l**: moves to split in desired direction
* **<ctrl>p**: opens fuzzy file finder
* **<leader>nt**: toggles nerdtree
* **<leader>pt**: toggles paste for better clipboard paste formatting
* i: goes from normal mode to insert mode.
* ii: goes to normal mode from insert mode.
* \<leader\>cf: copies the current file name into the clipboard
* \<leader\>P: pastes last contents of what was yanked regardless of what was deleted after
* \<ctrl\>c: (from visual mode) copies the highlighted text into the clipboard
* \<leader\>v: vertical split
* \<leader\>h: horizontal split
* \<ctrl\>j/k/h/l: moves to split in desired direction
* \<ctrl\>p: opens fuzzy file finder
* \<leader\>nt: toggles Nerdtree
* \<leader\>pt: toggles paste for better clipboard paste formatting
* Use this before and after pasting formatted code into the current buffer
* \<leader\>t: Run RSpec tests in current file.
* This will also run the last test run so you can use this in a different file than the test.
* \<leader\>s: Run RSpec tests in current context.
* This will also run the last test run so you can use this in a different file than the test.
* \<leader\>rt: ("re-tag") generates ctags for the current project.
* \<leader\>lt: ("list tags") toggles the tag list for the current project.

## Other Additions

* Manually saving a buffer will remove trailing whitespace automatically. Note that this should not
be run on the ~/.vim/vimrc file because there is a required trailing whitespace character.

## Bundles

* [ack](https://github.com/mileszs/ack.vim) lets you shell out to ack within vim using `:Ack pattern [directory]`. By default, results show up in the quickfix window. You can use `:AckAdd` to append to the quickfix window or prefix 'Ack' with an 'L' to use the location list (just like `:grep`'s siblings).
* [ag](https://github.com/epmatsw/ag.vim) is the above but for ag ([a faster ack replacement](https://github.com/ggreer/the_silver_searcher))
* [auto-save](https://github.com/vim-scripts/vim-auto-save) Save the buffer after input like RubyMine.
* [ctrlp](https://github.com/kien/ctrlp.vim) is a fuzzy file finder invoked by hitting Ctrl-P in normal mode and typing some part of the file name you'd like to open. This config also has `,f` mapped to the same function.
* [vim-fugitive](https://github.com/tpope/vim-fugitive) puts git into vim. It can do almost everything git related, some of the most useful features are:
* `:Gblame` to blame the current file. Press enter on a commit to see the full commit. Do `:Gedit` to go back to the current version (or just open it again).
* `:Gread` to check out the current file from git. Very useful if you made some experimental changes that you want to get rid of.
* [ack](https://github.com/mileszs/ack.vim) lets you shell out to ack within vim using
`:Ack pattern [directory]`. By default, results show up in the quickfix window. You can use
`:AckAdd` to append to the quickfix window or prefix 'Ack' with an 'L' to use the location list
(just like `:grep`'s siblings).
* [ag](https://github.com/epmatsw/ag.vim) is the above but for ag
([a faster ack replacement](https://github.com/ggreer/the_silver_searcher))
* [auto-save](https://github.com/vim-scripts/vim-auto-save) Save the buffer after input like
RubyMine.
* [ctrlp](https://github.com/kien/ctrlp.vim) is a fuzzy file finder invoked by hitting Ctrl-P in
normal mode and typing some part of the file name you'd like to open. This config also has
`<leader>f` mapped to the same function.
* [vim-fugitive](https://github.com/tpope/vim-fugitive) puts git into vim. It can do almost
everything git related, some of the most useful features are:
* `:Gblame` to blame the current file. Press enter on a commit to see the full commit.
Do `:Gedit` to go back to the current version (or just open it again).
* `:Gread` to check out the current file from git. Very useful if you made some experimental
changes that you want to get rid of.
* `:Gbrowse` to open the current file on GitHub, useful for sending links to other people.
* [jasmine](https://github.com/claco/jasmine.vim.git) Jasmine plugin for Vim
* [kwbd](https://github.com/rgarver/Kwbd.vim.git) Add a buffer close to vim that doesn't close the window
* [nerdcommenter](https://github.com/scrooloose/nerdcommenter) lets you comment and uncomment things. The most useful command is `,/` which comments or uncomments either the current line or the currently selected block. This config has `,/` mapped to the Toggle instead of `,c` as listed in the docs (the rest of the commands use the `c` as listed).
* [nerdtree](https://github.com/scrooloose/nerdtree) puts a directory tree on the left side of the screen. Press `\` to open it at your project root, or `Shift-\` to open it with the current file selected. You can press `m` to move, delete, or create files. Press `?` inside the tree to get more help.
* [jasmine](https://github.com/claco/jasmine.vim.git) Jasmine plugin for Vim.
* [kwbd](https://github.com/rgarver/Kwbd.vim.git) Add a buffer close to vim that doesn't close the
window.
* [nerdcommenter](https://github.com/scrooloose/nerdcommenter) lets you comment and uncomment
things. The most useful command is `,/` which comments or uncomments either the current line or the
currently selected block. This config has `,/` mapped to the Toggle instead of `,c` as listed in
the docs (the rest of the commands use the `c` as listed).
* [nerdtree](https://github.com/scrooloose/nerdtree) puts a directory tree on the left side of the
screen. Press `\` to open it at your project root, or `Shift-\` to open it with the current file
selected. You can press `m` to move, delete, or create files. Press `?` inside the tree to get more
help.
* **I**: Shows/Hides hidden files
* [vim-rails](https://github.com/tpope/vim-rails) lets `gf` and `:Rextract` work on partials, highlights Rails functions.
* [rspec](https://github.com/thoughtbot/vim-rspec.git) Run Rspec spec from Vim
* [vim-rails](https://github.com/tpope/vim-rails) lets `gf` and `:Rextract` work on partials,
highlights Rails functions.
* [ruby-matchit](https://github.com/vim-scripts/ruby-matchit.git) 'Matchit' for Ruby.
* [supertab](https://github.com/ervandew/supertab) lets you press Tab after Ctrl-P or Ctrl-N to cycle through completion options.
* [vim-surround](https://github.com/tpope/vim-surround) helps add/remove/change surround parentheses, quotes, and XML tags. Inside of `"yolokitten"`, type `cs"'` to switch the surround double quotes to single quotes. `t` can generally be used to refer to XML tags, so inside of `<tag>Hello</tag>` you can do `cit` to modify the word "Hello." To add quotes around something, you can use the command `ys` followed by a motion and the character to surround it with. For instance, inside of "hello", typing `ysiw(` will change it to "( hello )".
* [syntastic](https://github.com/scrooloose/syntastic) runs your compiler or interpreter and displays syntax errors in vim. A `>>` in the gutter means there is an error on that line, you can mouse over it for more details.
* [ZoomWin](http://www.vim.org/scripts/script.php?script_id=508) lets you close all other windows with `<C-w>o`. You can restore all the closed windows with the same command. Useful with `:tabo` to close everything but what you're working on.
* [supertab](https://github.com/ervandew/supertab) lets you press Tab after Ctrl-P or Ctrl-N to
cycle through completion options.
* [vim-surround](https://github.com/tpope/vim-surround) helps add/remove/change surround
parentheses, quotes, and XML tags. Inside of `"yolokitten"`, type `cs"'` to switch the surround
double quotes to single quotes. `t` can generally be used to refer to XML tags, so inside of
`<tag>Hello</tag>` you can do `cit` to modify the word "Hello." To add quotes around something,
you can use the command `ys` followed by a motion and the character to surround it with. For
instance, inside of "hello", typing `ysiw(` will change it to "( hello )".
* [syntastic](https://github.com/scrooloose/syntastic) runs your compiler or interpreter and
displays syntax errors in vim. A `>>` in the gutter means there is an error on that line, you can
mouse over it for more details.
* [taglist](https://github.com/vim-scripts/taglist.vim) view generated tags using <leader>lt
("list tags").
* [vroom](https://github.com/skalnik/vim-vroom) Run Rspec
specs from Vim.
* [ZoomWin](http://www.vim.org/scripts/script.php?script_id=508) lets you close all other windows
with `<C-w>o`. You can restore all the closed windows with the same command. Useful with `:tabo` to
close everything but what you're working on.
* [vim-multiple-cursors](https://github.com/terryma/vim-multiple-cursors) Sublime Text style
multiple selections for Vim. Use `Ctrl+n` in normal mode to select the current word and enter
visual mode. Press `Ctrl+n` in visual mode and a cursor will be added to the next occurrence of
the current selection. Use `Ctrl+p` to remove the last cursor, `Ctrl+x` to remove the last
cursor and skip to the next cursor location. Simple edit commands like `c` or `d` will work just
fine, multiple key commands like `ciw` are not supported yet.
* [vim-blockle](https://github.com/jgdavey/vim-blockle) lets you change a `do..end` into a `{..}` by pressing `b` with the cursor on part of the block.
* [vim-airline](https://github.com/bling/vim-airline) sets the status bar and makes it more configurable and useful by showing things like the current Git branch, etc.
* [vim-javascript-syntax](https://github.com/jelera/vim-javascript-syntax) JS syntax highlighting.
* [vim-javascript](https://github.com/pangloss/vim-javascript) More JS syntax and indent plugins.
* [vim-abolish](https://github.com/tpope/vim-abolish.git) Easily search for, substitute, and abbreviate multiple variants of a word
* `crc`: change word to camel case (fooBar)
* `crs`: change word to snake case (foo_bar)
* `crm`: change word to mixed case (FooBar)
* `cru`: change word to upper case (FOO_BAR)
* `cr-`: change word to dash case (foo-bar)
* `cr.`: change word to dash case (foo.bar)
* [vim-jsdoc](https://github.com/heavenshell/vim-jsdoc.git) Generate JsDoc to your JavaScript code.
* `<leader>d`: Insert JsDoc.

## Clojure

* \<leader\>E: Evaluate the current file in the REPL. This also starts the REPL if you're in a
leiningen project.

### Plugins

* [classpath](https://github.com/tpope/vim-classpath) This plugin sets the 'path' for JVM languages
to match the class path of your current Java project.
* [clojure-static](https://github.com/guns/vim-clojure-static) Clojure runtime files.
* [dispatch](://github.com/tpope/vim-dispatch) Kick off builds and test suites using one of several
asynchronous adapters, and when the job completes, errors will be loaded and parsed automatically.
* [fireplace](https://github.com/tpope/vim-fireplace) Connect to a REPL within Vim.
* [leiningen](https://github.com/tpope/vim-leiningen) Static Vim support for Leiningen.
* [paredit](https://github.com/vim-scripts/paredit.vim) Performs structured editing of Lisp
S-expressions in Vim.
* [rainbow_parentheses](https://github.com/kien/rainbow_parentheses.vim) Colorizes parenthesis pairs to see them more easily.
1 change: 1 addition & 0 deletions after/ftplugin/clojure.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setlocal lispwords+=do,match,describe,context,it,around
Loading