aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2014-06-18Command-T: update to latestTeddy Wing
2014-06-18README: add vim-scala to the Plugin sectionTeddy Wing
2014-06-18Add vim-scala pluginTeddy Wing
Provides syntax highlighting and a bunch of other niceties that I haven't looked into.
2014-06-14Add ftplugin/go.vimTeddy Wing
Include basic settings plus compiler mappings. Mappings facilitate compiling and running Go programs.
2014-06-14unimpaired_paste: fix `yi` mapping (change to `yoi`)Teddy Wing
Made a mistake. Using `yi` means that commands like `yi(` don't work anymore so change the mapping to `yoi` because I can't think of anything better.
2014-06-14unimpaired_paste: add `yi` mappingTeddy Wing
I often find that I want to delete the line inserted from the `yo` mapping. This adds a mapping that doesn't add the line in the first place so I don't have to go back and delete it after pasting.
2014-06-14README: add new pluginsTeddy Wing
Add: * surround.vim * golang
2014-06-14Add go vim pluginTeddy Wing
Adds syntax highlighting and other filetype plugins for go. This package is a mirror of the official repo's vim plugins.
2014-06-09vimrc: fix 'open in Finder' mappingTeddy Wing
I incorrectly set the mapping to open the current working directory instead of the current file's directory.
2014-06-09vimrc: add mapping to open current file's directory in FinderTeddy Wing
Useful for modifying the current file quickly. Did this manually a few times and it was kind of a pain.
2014-06-06vimrc: add mapping to open current file in TextMateTeddy Wing
Just in case. Can be useful to open the file in a different editor sometimes and if there's an easy way to do it all the better.
2014-06-06vimrc: mapping to copy text to OS X clipboardTeddy Wing
Since I'm using OS X's stock vim which isn't compiled with clipboard support, add a command to copy text to the clipboard. Useful when split windows are open or when I want to copy an entire file that takes up more than a single terminal page.
2014-06-05vimrc: add 0 and $ mappings for soft wrapped linesTeddy Wing
Make 0 go to the beginning of the visual line and $ go to the end. Have g0 and g$ go to the beginning and end of the _actual_ line.
2014-06-04Add vim-javascript plugin for better syntax highlightingTeddy Wing
The stock highlighting didn't recognise multiline strings. "Like this \ one" Add a better JS syntax highlighter.
2014-06-03vimrc: ensure an undo entry is created when saving in Insert modeTeddy Wing
Add a `<c-g>u` to my save command mapping in Insert mode so I can be sure that my edits are progressively fed to the undo tree.
2014-06-03vimrc: ignore "vendor/" in Command-TTeddy Wing
I typically don't want to search the vendor directory when I'm working in Ruby projects.
2014-06-03Add custom plugin better_autoreadTeddy Wing
Make a plugin out of a Stack Overflow post for a better autoread augroup. The `autoread` setting in vim will automatically reload a file if it's been changed outside of vim (if you've made unsaved changes vim will prompt before loading the file). By default, however, vim doesn't automatically detect when a file has changed. It only happens when you do certain things. This sets up an autocmd to force a check a bit more often by tying into the CursorHold events. A bit hackish it seems but it works like a charm. This has been sorely needed especially since yesterday when I was switching git branches in a project several times and editing various files only to be alerted upon saving that the file on disk has changed. Previously I would say it was a minor annoyance to have to type :e! in those situations. Yesterday it was a freaking pain in the glaiven since it happened unexpectedly so many times and after I was ready to commit/save edits.
2014-06-02vimrc: change <leader>tx mapping to use "td" insteadTeddy Wing
"tx" is an awkward pair of keys and it kind of hurts to type. Change the mapping to something easier on the fingers.
2014-05-30vimrc: add <leader>tl to go to last active tabTeddy Wing
Makes it easier to switch between two tabs when there are a bunch open. Instead of having to memorize their tab numbers, just use this command. Taken from http://stackoverflow.com/questions/2119754/switch-to-last-active-tab-in-vim
2014-05-30vimrc: add comment to my "delete buffer & go to previous tab" mapTeddy Wing
Spell out what the mapping is doing.
2014-05-30Add surround.vim pluginTeddy Wing
Deleting or modifying quotes and other surrounding characters has become too much of a pain. Time to install surround.
2014-05-30vimrc: make even Indent Guides slightly ligher than odd onesTeddy Wing
If I don't make the colour difference too drastic it still looks all right, and it's _much_ easier to follow the guide if it's a different colour than the two surrounding it.
2014-05-30vimrc: add <leader>tx to delete current buffer & go to previous tabTeddy Wing
It was getting annoying having to keep typing "gT" after every ":bd".
2014-05-29vimrc: add <leader>sb to set scrollbindTeddy Wing
For a quick way to scroll two windows together. Useful for looking at two different versions of a file where the versions are themselves separate files.
2014-05-28vimrc: disable default ftplugins - clean up last commitTeddy Wing
* Add entry in CHANGELOG * Delete commented trial lines * Add source URLs in a comment above the new augroup
2014-05-28vimrc: figured out how to set b:did_ftplugin properlyTeddy Wing
I did need to set `b:did_ftplugin` in an autocmd. Without doing so I was only setting it for the first opened buffer, and subsequent buffers would have filetype plugins enabled. I'm surprised that I didn't realise it until today. Figured out that I should be setting the autocmd on BufReadPre in order to get the variable set properly for all buffers that I open.
2014-05-26vimrc: delete `Stab` commandTeddy Wing
Remove the `Stab` command now that I moved it to a self-contained plugin.
2014-05-26Create custom vim plugin for Stab commandTeddy Wing
Take the `Stab` command from my vimrc and put it in a custom plugin. This will keep my vimrc cleaner and since the the functions are autoloaded it may ever so slightly improve performance.
2014-05-26vimrc: add mappings for next/previous in quickfix windowTeddy Wing
2014-05-25vimrc: set cursorlineTeddy Wing
Highlight the current line. Makes it easier to see where the cursor is.
2014-05-25twilight256: add colour for CursorLineTeddy Wing
Highlight background colour of the current line. Set it to a couple stops lighter than the background colour.
2014-05-25README: add Gundo to plugin listTeddy Wing
2014-05-25vimrc: add <leader>gu mapping to toggle GundoTeddy Wing
2014-05-25Add Gundo.vim pluginTeddy Wing
Shows a visual representation of the current file's undo tree. Makes it easier to see what you did and when, and roll back to a previous version. I tried installing undotree.vim (http://www.vim.org/scripts/script.php?script_id=4177), a pure Vimscript plugin that's similar, but it requires vim 7.3 with patch005 applied which I don't have, and I'm not crazy about compiling a new vim.
2014-05-25vimrc: allow undo of Ctrl-u and Ctrl-w in insert modeTeddy Wing
Ensure that my changes can be undone if I accidentally press Ctrl-u or Ctrl-w in insert mode.
2014-05-24Add tpope's paste helper from unimpaired.vimTeddy Wing
Copy of Tim Pope's paste helper. I didn't want the full unimpaired.vim but this functionality is really useful, so including it here in a separate plugin.
2014-05-24Add vsearch plugin for visual # & * searchTeddy Wing
Copied from https://github.com/godlygeek/vim-files/blob/master/plugin/vsearch.vim which resembles https://github.com/bronson/vim-visual-star-search but uses the # and * keys directly instead of <leader>*. Allows text in the current visual selection to be searched for as you would a word with # and *.
2014-05-23Add ftplugin/ruby for Ruby indentation settingsTeddy Wing
Set two space indentation for Ruby.
2014-05-23ftplugin/gitcommit: set textwidth=72Teddy Wing
Actually enjoyed the textwidth setting of the default gitcommit ftplugin so bringing that over to my custom one.
2014-05-23twilight256: colour inactive statuslines dark greyTeddy Wing
Use a dark grey colour on statuslines of inactive windows to make it easier to differentiate between active and inactive windows. The active window remains the old light grey.
2014-05-23vimrc: move gitcommit settings to ftpluginTeddy Wing
Move gitcommit indentation settings from vimrc to an ftplugin file. Keeps things more organised and makes for a cleaner vimrc.
2014-05-23vimrc: disable default ftplugins (working)Teddy Wing
Working version of disabled default ftplugins.
2014-05-23vimrc: disable default ftpluginsTeddy Wing
Only run my ftplugins, not the ones that vim provides. NOTE: this doesn't work. Figure out why.
2014-05-17Move JSON filetype detection to ftdetect directoryTeddy Wing
To keep things organised, use the .vim/ftdetect directory instead of my vimrc to set the JSON filetype.
2014-05-15vimrc: turn on filetype plugin & add python ftpluginTeddy Wing
* Ensure filetype plugin is on so that ftplugins get loaded * Add a filetype plugin for python with PEP8 indentation and cancel my custom mappings that preserve indentation on empty lines
2014-05-14vimrc: set the comment string for htmldjango filesTeddy Wing
For commentary.vim.
2014-05-13vimrc: create CopyModeToggle commandTeddy Wing
A command that removes line numbers and invisibles in one go so that text can be more easily selected and copied at the OS level.
2014-05-12vimrc: add leader mapping for :tabnewTeddy Wing
Faster way to create new tabs.
2014-05-11README: add camelcasemotion info to Plugins listTeddy Wing
2014-05-11vimrc: update CHANGELOG for camelcasemotionTeddy Wing