Skip to content
Commits on Dec 19, 2015
  1. @sgrif

    Better match the default behavior of ctrl-P when using ag

    sgrif committed
    When using ctrl-p without ag, the pattern given is not treated as a regular expression. Additionally, the value passed when first opening ctrl-p is not actually a valid PCRE regex, and produces an error when used on Windows. This modifies the options to treat the pattern as a string literal, not a regular expression, resolving the Windows problem, and better matching the behavior of ctrl-p without Ag.
Commits on Dec 18, 2015
  1. @geoffharcourt

    Extract filetype-specific setups to ftplugin

    geoffharcourt committed
    Vim's documentation advises that buffer-specific configuration based on
    a filetype should be performed via a file in `$HOME/.vim/ftplugin`:
    http://vimdoc.sourceforge.net/htmldoc/usr_41.html#41.12
    
    This change moves CSS/Sass-, Git commit message-, and Markdown-related
    editor settings into `ftplugin/gitcommit.vim` and
    `ftplugin/markdown.vim`, and rewrites those settings to avoid using
    `autocmd`, letting Vim execute `setlocal` when a file of the filetype is
    determined or set.
Commits on Dec 8, 2015
  1. @bernerdschaefer

    Use one space, not two, after punctuation.

    bernerdschaefer committed
    When using a join command (`gq`, `J`), vim defaults to adding two spaces
    after '.', '?', and '!'.
    
    Setting `nojoinspaces` causes vim to only insert a single space.
Commits on Nov 29, 2015
  1. @geoffharcourt

    Set `<leader>ct` shortcut to use Git ctags hook

    geoffharcourt committed
    In cbdcbce we introduced a Tim
    Pope-inspired Git template scheme that automatically ran `ctags`
    asynchronously through a hook after certain source control operations.
    This hook is bypassed if a user uses `<leader>ct` to reindex their tags
    from within Vim.
    
    This change binds `<leader>ct` to use a Vimscript function that will
    identify if the `ctags` hook exists in the local repository and executes
    it. The function falls back to existing functionality if the hook does
    not exist. We are moving the function out of `vimrc` as a first step
    toward breaking our Vim configuration up by topic area.
Commits on Nov 4, 2015
  1. @seanpdoyle

    Recognize JS Linter configuration files as JSON

    seanpdoyle committed
    Unfortunately, the convention for most JavaScript linters is to name
    their configuration `.${TOOL}rc`.
    
    In spite of this name, the configuration files are `JSON`. Forcing vim
    to recognize them as JSON would enable syntax highlighting and linting
    plugins (like syntastic) to recognize invalidly structured JSON.
Commits on Jun 15, 2015
  1. @derekprior

    Ignore "useless use of variable in void context"

    derekprior committed
    The following ERB generates a "Possibly useless use of variable in void
    context" warning from Syntastic:
    
    ```erb
    <%= comment %>
    ```
    
    The warning can be eliminated by making it:
    
    ```erb
    <%= comment.to_s %>
    ```
    
    However, this behavior is the default and is redundant. There are other
    cases where this warning pops up and in each case I've found it to be of
    no use.
Commits on May 22, 2015
  1. @danielnolan @gylaz

    Source matchit.vim from vim/macros directory

    danielnolan committed with gylaz
    * After removing the matchit.vim plugin from the vimrc.bundles file in
      this pull request #379. It
      was brought to my attention that plugins in the macros directory are
      not automatically loaded due to backwards compatibility issues.
    * Add entry to vimrc to source the matchit.vim plugin from the macros
      directory, if the user does not have it installed already. This is how
      Tim Pope adds the matchit.vim plugin to vimrc in his vim-sensible plugin.
      https://github.com/tpope/vim-sensible/blob/master/plugin/sensible.vim#L88
Commits on Apr 9, 2015
  1. @andyw8 @gylaz

    Enable autocomplete with dictionary words

    andyw8 committed with gylaz
    Enable autocomplete with dictionary words when
    spell check is on.
Commits on Mar 18, 2015
  1. @jessieay

    Remove GitHub colorscheme

    jessieay committed
    * Every time I pull updates from this repo into my own dotfiles, I have to
      reconfigure my preferred theme (solarized)
    * Seems like there is not a majority or plurality of thoughbotters using a
      single colorscheme
    * Easiest to just not specify a colorscheme
    * See https://forum.upcase.com/t/why-is-the-default-vim-theme-on-dotfiles-is-github/4232
Commits on Mar 13, 2015
  1. @derekprior

    Let ctrl-p find files with a leading dot

    derekprior committed
    I am constantly forgetting that I can't use `ctrl-p` to open
    `.travis.yml` or any other file with a leading `.`. This change comes
    about after some discussion in general on how to handle this. Passing
    `--hidden` to the `ag` command allows it to find files with a leading
    `.`.
    
    Unfortunately, this also includes the content of your `.git`
    directory. To overcome this, we add `/.git/` to `agignore`.
Commits on Feb 24, 2015
  1. @joshhartigan @gylaz

    remove `set nocompatible`

    joshhartigan committed with gylaz
    It is not needed - see http://vimdoc.sourceforge.net/htmldoc/options.html#'nocompatible';
    (or see :help 'cp')
Commits on Jan 13, 2015
  1. @geoffharcourt

    Remove outdated references to `Rnavcommand`

    geoffharcourt committed
    `Rnavcommand` has been removed from rails.vim. These commands don't work
    if you are using a recent version of the plugin. Users who want to
    regain this functionality can do it through projections.
Commits on Nov 3, 2014
  1. @derekprior

    Spell check git commits

    derekprior committed
Commits on Oct 27, 2014
  1. @reshleman @gylaz

    Wrap at 72 characters for git commit messages

    reshleman committed with gylaz
    The body of a git commit message is conventionally ([1], [2]) wrapped at
    72 characters. This commit adjusts .vimrc to automatically wrap the body
    of git commit messages at 72 characters.
    
    [1]: http://robots.thoughtbot.com/5-useful-tips-for-a-better-commit-message
    [2]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
Commits on Oct 22, 2014
  1. @scmx @gylaz

    Prevent evil nbsp from being invisible

    scmx committed with gylaz
    Not seeing these can be problematic, since you won't know what broke your code on the day that one of them sneaks in.
    
    Here's a few other common characters people use for this: https://github.com/search?utf8=%E2%9C%93&q=nbsp%3A+extension%3A.vimrc&type=Code&ref=searchresults
Commits on Sep 12, 2014
  1. @derekprior

    Force vertical diffs

    derekprior committed
    Fugitive was updated to switch to horizontal diffs on narrow screens.
    Everyone I've seen experience this behavior finds it disorienting. This
    setting forces a vertical diff without users having to use different
    shortcuts to enter diff mode.
Commits on Jul 24, 2014
  1. @croaky

    Set Vim's spellfile to $HOME

    croaky committed
    Running `zg` adds words to the `spellfile`:
    
    4f5a2ed
    http://robots.thoughtbot.com/vim-spell-checking
    
    Setting the spellfile keeps it out of its default location, `vim/spell`, which
    would otherwise be inside thoughtbot/dotfiles. We don't necessarily want to
    share the `spellfile` across the team.
Commits on Jul 20, 2014
  1. @tsigo
Commits on Jun 20, 2014
  1. @jferris @gylaz

    Set Vim's colorcolumn to 80 characters

    jferris committed with gylaz
    * We have an 80 character formatting limit
    * This makes it obvious where that limit is
  2. @gylaz

    Add Shift+Tab map for tab complete in insert mode

    gylaz committed
    Feature parity with `<c-p>` `<c-n>` tab completion duo.
Commits on May 15, 2014
  1. @derekprior

    Have Syntastic ignore angular attribute warnings

    derekprior committed
    The Syntastic HTML linter will warn on propriety attributes. The
    likelihood that you *accidentally* typed "ng-repeat" is low. Let's just
    assume you know what you're doing and ignore warnings about "ng-*"
    attributes.
Commits on Apr 25, 2014
  1. @croaky

    Run commands interactively from vim

    croaky committed
    This allows us to do things like:
    
        <Leader>r migrate
  2. @derekprior @gylaz

    Enable shiftround

    derekprior committed with gylaz
    With `shiftround` enabled, using `>>` will indent the line to the next
    multiple of `shiftwidth`. This is useful when you are indenting
    improperly indented code.
Commits on Apr 3, 2014
  1. @jferris

    Use default 'complete' Vim setting

    jferris committed
    Default setting is `.,w,b,u,t,i`:
    
    * `.`: scan the current buffer ('wrapscan' is ignored)
    * `w`: scan buffers from other windows
    * `b`: scan other loaded buffers that are in the buffer list
    * `u`: scan the unloaded buffers that are in the buffer list
    * `t`: tag completion
    * `i`: scan current and included files
    
    The default setting is more likely to find a useful match, and modern
    machines can search many open and unloaded buffers without pausing.
Commits on Mar 28, 2014
  1. @gylaz
Commits on Mar 19, 2014
  1. @jferris

    Only set nocompatible once as early as possible

    jferris committed
    * Setting nocompatible has side effects
    * Setting it again (even if set) repeats side effects
    * Settings like ruler will be reset if set again
Commits on Nov 23, 2013
  1. @croaky

    Spell-check Markdown by type, not file extension

    croaky committed
    Previously, only `*.md` files would get spell-checking. This change adds
    `*.markdown` and decouples Markdown spell-checking by file extension.
    
    http://robots.thoughtbot.com/vim-spell-checking/
Commits on Sep 12, 2013
  1. @jferris

    Set 'autowrite'

    jferris committed
    * Automatically :write before commands such as `:next` or `:!`
    * Saves keystrokes by eliminating writes before running tests, etc
    * See `:help 'autowrite'` for more information
Commits on Sep 11, 2013
  1. @croaky

    Allow backspacing over everything in insert mode

    croaky committed
    The previous setting frequently slowed my ability to edit.
Commits on Aug 23, 2013
  1. @JoelQ

    Don't cache CtrlP results when using ag

    JoelQ committed
    It gets very annoying to manually force CtrlP to re-index every time I
    add a new file. Since ag is so fast, we can turn off caching when it
    powers CtrlP without any noticeable impact on search speed.
Commits on Jul 29, 2013
  1. @croaky

    Remove redundant syntax highlighting

    croaky committed
    Newer versions of vim (such as 7.3.923) syntax highlight Rackup and JSON
    files correctly. In the interest of keeping the dotfiles slim and our
    machines up-to-date, I think the solution is to remove these from
    dotfiles and install a newer version of vim in thoughtbot/laptop:
    
    thoughtbot/laptop#118
Commits on Jul 27, 2013
  1. @croaky

    Add syntax highlighting to certain file types

    croaky committed
    * Syntax highlight `Appraisals` as Ruby. Used especially for our open
      source libraries.
    * Syntax highlight rackup (`config.ru`) files as Ruby. Used in all our
      Ruby web apps. Rails apps are rarely touched but some of the Sinatra
      and Middleman apps are occasionally edited.
    * Syntax highlight JSON files as JavaScript. Used in our Trail Map.
Commits on Jun 24, 2013
  1. Remove double escaped spaces in vimrc

    Adarsh Pandit committed
    * Bash users experience errors when using the double-escaped spaces for the CtrlP-SilverSearcher integration.
    
    Thanks to @adamyonk for raising this issue
Commits on Jun 21, 2013
  1. Use Silver Searcher as CtrlP backend

    Adarsh Pandit committed
    * Use `ag` as the find method for listing files in CtrlP Vim plugin
    * ag indexes and searches far faster than the native engine
    * ag also respects .gitignore files on on a per-directory basis, avoiding duplication
Commits on May 28, 2013
  1. @derekprior

    Consolidate autocommands into the augroup

    derekprior committed
    This makes it so resourcing the vimrc file doesn't duplicate the
    auto commands.
Something went wrong with that request. Please try again.