aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-04-07vimrc: Make <C-w>q command a no-opTeddy Wing
When hitting <C-w> to initiate a window command, I kept accidentally hitting <C-w>q and quitting the window I was in. This was extremely aggravating, because (1) it would be surprising and confusing for a couple seconds, and (2) I'd have to stop what I was doing and get my workspace back to what it was before. I was accidentally hitting it because the 'w' and 'q' keys are so close together. The only difference I can see between <C-w>q and <C-w>c is that the 'q' version will quit Vim if the current window is the last one. I don't see myself needing that functionality with 'ZQ' readily available. Since closing a window is a destructive operation, I prefer it being farther away on the keyboard (even though 'c' is right next to 'v' and that confusion has messed me up sometimes). All that said, get rid of this command that has a more useful equivalent, that I don't see myself using, and that has messed me up at least three times already.
2017-03-31Add 'vim-argwrap' pluginTeddy Wing
Was getting annoyed at having to manually split function arguments from a single line to multiple lines. Planned on writing a little custom plugin to do this, but this one seems more well thought out and featureful than what I was thinking of. It also seems lighter and not as presumptive as another alternative I found: https://github.com/AndrewRadev/splitjoin.vim
2017-03-22Add 'vim-repeat' pluginTeddy Wing
Finally getting annoyed enough about not being able to '.'-repeat surround.vim commands. It's really nice to have repeating just work now.
2017-03-13vimrc: Add `<leader>Z` mapping to run a single RSpec testTeddy Wing
Using `<leader>z` works well, but now I want to be able to run a single test so I can iterate while writing it.
2017-03-13Add projects/af83.vimTeddy Wing
Create a new project-specific config for AF83. Add a project-specific mapping to save the current Vim session to a file called 'vimsession'.
2017-03-09ftplugin/ruby.vim: Add maps to insert debug breakpointsTeddy Wing
Make it easier to insert `byebug` debug statements. Currently working in Rails so assuming `byebug` is already required. Might want to add new maps or modify these later if I end up needing to do a `require 'byebug'` beforehand. These keys didn't seem to be used for anything, so I figured they would be a nice quick combination for this. Didn't really feel like adding a long leader command to do it.
2017-03-05ftplugin/mail.vim: Don't start wrapped lines with '*'Teddy Wing
When writing bulleted lists, don't start wrapped lines with '*'. Just wrote a mail message an noticed this was a problem. Copied my gitcommit.vim config to resolve this.
2017-02-28Add CoffeeScript ftdetect & ftplugin filesTeddy Wing
Blech, CoffeeScript! Having to read & write some recently, so add support for it.
2017-02-28Add ftdetect/jbuilder.vimTeddy Wing
Load *.jbuilder files as Ruby so that they can be edited like Ruby files and have Ruby syntax colours.
2017-02-23Create 'insert-formatted-cal' pluginTeddy Wing
A plugin that will insert a given month from the `cal` program and format it such that I can insert `*`s next to days to flag them. I've been doing this manually for years and it finally seemed time to automate the process.
2017-02-22ftplugin/ruby.vim: Don't preserve indentation on empty linesTeddy Wing
My tastes have changed over time. These days I normally prefer to remove indentation on empty lines, and this is my general default working on codebases with other people. Change our Ruby config to remove indentation on empty lines so I don't have to keep doing it myself manually.
2017-02-21vimrc: Change <leader>tf mapping to <leader>zTeddy Wing
Typing <leader>tf was too many keys. I wanted to shorten the command a bit to make running tests really quick.
2017-02-17vimrc: Add <leader>tf mapping to run current RSpec fileTeddy Wing
Leverage 'vim-rspec' to make it easy for us to run the current spec file.
2017-02-17Add 'vim-rspec' pluginTeddy Wing
Make it more efficient to run RSpec tests right in Vim. It's been nearly 4 weeks since I started writing Rails code full time and I'd like to see if I can have a nicer system for running only the tests I'm interested in or working on at the moment.
2017-02-08Update 'vim-surround' to latest (v2.1/e49d6c245)Teddy Wing
It's been a few years and it turns out there's some cool new stuff in Surround, like support for arbitrary characters and other goodies.
2017-02-07Create new filetype plugin 'htmlerb'Teddy Wing
I want the HTML matchit command to be available in *.html.erb files. Normally, these files get loaded as `filetype=eruby`. The trouble with that is that not all eruby is HTML, so I can't load the matcher in the 'eruby' filetype because it might not make sense. Create a new special filetype for *.html.erb files that uses the normal eruby syntax, but includes the HTML matchit command.
2016-12-09ftplugin/todo.vim: Set `nocursorline`Teddy Wing
Don't use a cursorline in TODO files because in my colour scheme it makes the text of normal priority to-dos unreadable as it overrides the line background so you end up with dark text on a dark background.
2016-11-28Add ftplugin/netrw.vimTeddy Wing
Override the `g:netrw_bufsettings` variable to make Netrw always open with line numbers. This should make it easier to navigate to a specific file in the tree. Copied the settings from the original value and changed `nonu` to `nu`. Following this Stack Overflow answer from Benoit to get this working: http://stackoverflow.com/questions/8730702/how-do-i-configure-vimrc-so-that-line-numbers-display-in-netrw-in-vim/8731175#8731175
2016-10-26Add ftplugin/todo.vimTeddy Wing
Special overrides for *.todo files. Here we unlet `b:did_ftplugin` to allow the plugin's ftplugin to execute. Normally, we override `b:did_ftplugin` to disable filetype functionality. In this case, though, we do want the ftplugin code that comes with vim-twodo to be loaded and useable. We also set a custom colour for regular todos that fits with our default twilight256 colour scheme.
2016-10-26Add 'vim-twodo' pluginTeddy Wing
This plugin has been sitting uncommitted in my .vim for many months now. I originally hadn't added it to the repo because it wasn't published. Now that it is, I can use the plugin's public Git link. Helps me keep track of my to-dos.
2016-10-26git-blamer: Open blame windows `leftabove`Teddy Wing
Based on my current Vim settings, splits open to the right (I have `splitright` turned on). This causes the blame window to open to the right of the file in question, which is weird, since normally that metadata appears to the left of the file. Open the Blamer split on the left by default to make the formatting more consistent with the normal `git blame` output.
2016-08-28First version of 'spellcycle' pluginTeddy Wing
A new plugin that cycles through a list of languages to use when spell checking. Using a couple of mappings, we can quickly change the `spelllang` to the language we want to write or read in. Languages are currently set to English and French, since those are the two that I use. The mappings are bound to `[l` and `]l` (in unimpaired.vim style) since those didn't seem to be used by anything.
2016-08-28Add English spell filesTeddy Wing
Whenever I tried to change my 'spelllang' to French, I would get an error. :set spelllang=fr :set spell resulted in: E763: Word characters differ between spell files These posts explain the issue: http://stackoverflow.com/questions/14802136/word-characters-differ-between-spell-files-e763#14803439 https://groups.google.com/forum/#!topic/vim_dev/7HTs6kIKnPQ/discussion The problem stems from the English spellfiles Vim was using. Since I use the system Vim installed on Mac OS X 10.8.5, the spellfiles were out of date and caused the error. To fix the error, I've downloaded the latest (as of today) English spellfiles into my `.vim`. Vim will use these instead of the system spellfiles. In order to download these new spellfiles, I followed these steps: $ cd $VIMRUNTIME $ sudo chmod 000 spell/ $ vim : set spell : " Follow the download prompts : quit $ sudo chmod 755 spell/
2016-08-17Add French spell filesTeddy Wing
Official French Vim spell files. These have been sitting uncommitted in my repository for many months. It's time to finally commit them.
2016-08-17Add 'vim-space-vlaze' pluginTeddy Wing
This plugin has been in my `bundle/` directory for nearly a year uncommitted. I think it's about time we formally inducted it, and made my game an official part of my vimrc.
2016-08-16Disable Slimv pluginTeddy Wing
I've had the plugin disabled but uncommitted for many months now. I think it's finally time to make the change official. Slimv is an excellent plugin, and makes it possible to have a good Common Lisp development environment in Vim. I'll still be using it for that reason. The trouble is that Slimv isn't a good plugin citizen: It overrides user defaults. I noticed that at some point many months ago, code I was writing was getting auto-indented. The "smart" kind of autoindent, not `set autoindent`. I _hate_ "smart" auto-indenting. Figured out that Slimv was the cause and immediately disabled the plugin. We may want to create a Bash alias that we can use exclusively for CL development that loads Slimv into the runtimepath instead of having it auto-loaded by Pathogen.
2016-08-01Add command to post mentor logs to The Firehose ProjectTeddy Wing
It finally became tedious to have to manually execute my custom script that posts a mentor log to The Firehose Project in a new shell. Create a new command that will run the script directly within Vim so I don't have to leave the editor. Actual file paths are stored in `projects/file-paths.vim`. Need to set the `BUNDLE_GEMFILE` so that the Ruby gems required by the script get loaded. The absolute path of the current file gets passed to the script for posting.
2016-06-17Update 'vim-grappele' to v0.0.3Teddy Wing
Fixes bug where `G` didn't push to the jumplist.
2016-06-08Update 'pick.vim' to latest (3df380f)Teddy Wing
This commit introduces compatibility with pick's latest 1.4.0 release.
2016-05-08ftplugin/mail.vim: Add a mapping to remove the last two linesTeddy Wing
I have two empty lines below my signature to add some space between my top-posted message and the quoted message of a reply below. When I start a new mail message, though, nothing is below my message, resulting in two empty lines at the bottom of my emails. Add a mapping to quickly remove these lines to save me from having to do it manually. Should save some time.
2016-04-27Add ftplugin/muttrc.vimTeddy Wing
Set the correct comment prefix for the Muttrc config language (`#`).
2016-04-18vimrc: Remove the `Wrap` commandTeddy Wing
I never use this command, so I don't really see a need to keep it in my vimrc. Removing it along with the "Commands" section marker (since that was our only command defined here).
2016-04-17Add ftplugin/yaml.vimTeddy Wing
Set proper 2-space indentation for YAML files.
2016-04-06ftplugin/rust.vim: Don't preserve indentation on empty linesTeddy Wing
Don't think we should be doing this in Rust so taking away my default behaviour.
2016-03-27ftplugin/rust.vim: Add commentstringTeddy Wing
Set `// ` as the comment string for the Rust language (otherwise it defaults to `/* %s */`).
2016-03-26ftplugin/rust.vim: Use 4-space tabsTeddy Wing
According to http://doc.rust-lang.org/book/getting-started.html, the Rust convention is apparently 4-space indentation. Update our settings to match this.
2016-03-26Install Rust.vimTeddy Wing
The Rust language's Vim plugin.
2016-02-15vimrc: Configure SlimvTeddy Wing
* Set a Lisp implementation (SBCL) * Define the SWANK command (copied from Slimv's documentation). The docs provide three different command options, one that creates a new OS X Terminal window using `osascript` (which I didn't really like as it's intrusive), and the other two using `screen` and `tmux`. Opted for the `screen` version.
2016-02-15.gitmodules: Ignore untracked files in the 'slimv' submoduleTeddy Wing
Git was complaining that the tree was dirty with the `doc/tags` file. Just ignore untracked files.
2016-02-15Install SlimvTeddy Wing
Working Emacs with Evil-mode and SLIME felt pretty slow compared to my normal Vim speed. Trying Slimv to see if I can make it work for Common Lisp development in Vim.
2016-02-13ftplugin/go.vim: Don't preserve indentation on empty linesTeddy Wing
Go style (and `go fmt`) doesn't put indentation on empty lines, so for the sake of good Go, don't add indentation in this case.
2015-11-24Update 'vim-auditory' to v0.1.3Teddy Wing
Fixes `G` mapping and errors when executing `:AuditoryOn` and `:AuditoryOff` twice in a row.
2015-11-23ftplugin/go.vim: Add mapping for `go fmt`Teddy Wing
Provide a quick way to format the current file.
2015-11-12vimrc: Output `scrollbind` value with <leader>sbTeddy Wing
Since our `<leader>sb` mapping is a toggle command for `scrollbind`, it can be hard to know whether it's on or off after invoking it if you haven't been paying attention. Output `setl scrollbind?` after performing the toggle so that the current `scrollbind` value displays in the command line area to make it clear what happened.
2015-11-11Create 'copy' pluginTeddy Wing
A custom plugin that invokes a system copy to OS X's pasteboard using `pbcopy` via a Vim command. This allows us to specify a range of lines to copy in command mode, similar to the way that Chris Toomey's System Copy plugin provides an easy way to invoke a system copy using motions. With this plugin we can write: :5,21Copy to copy those lines. :12,'aCopy will also work. If your Vim is compiled with `+clipboard` support, you would instead write: :15,24y * Since I use a Vim that doesn't have clipboard support, I decided to use a plugin to get the same functionality rather than compile a new Vim.
2015-10-28vimrc: Add a mapping to open the current file in ChromeTeddy Wing
This is to make it easier to preview HTML files in a browser. Otherwise I would either open the file in Finder with `<leader>of` and drag it to a browser in my Dock or open a new terminal, `cd` into the right directory, start a Python `SimpleHTTPServer`, and finally navigate to `localhost:8000/___` in a browser. This makes doing the first option quick and easy. Since we're opening the file directly, this will use the `file://` protocol, but that's enough to be able to take a look at small pages.
2015-10-03Add 'scriptease' pluginTeddy Wing
To facilitate Vim plugin development.
2015-09-23projects/flashnotes.vim: Open HTML files as `htmldjango`Teddy Wing
Assume all Flashnotes HTML files are 'htmldjango'-type files (as they typically are since Flashnotes is a Django project). This will preclude me from having to `set ft=htmldjango` when I want to see syntax colours for Django template tags.
2015-09-16Update 'vim-grappele' to v0.0.2Teddy Wing
To take advangage of the newly `<silent>` `G` command.
2015-09-14Add 'vim-grappele' pluginTeddy Wing
This will finally give me a way to repeat `G` commands. Should be useful since I often find myself entering a `G` command only to realise that I was in the wrong window and have to then type the whole thing again. With this plugin all I have to do is type a quick mapping to make the repeat happen.