aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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
2014-05-11Add camelcasemotion pluginTeddy Wing
For moving inside camelCased and under_scored words.
2014-05-11README: add Indent Guides to the plugin listTeddy Wing
2014-05-08vimrc: add settings for Indent GuidesTeddy Wing
* Remap toggle to <leader>ts * Set column size to 1 * Set colours of guides to blend better with the background and be less distracting
2014-05-08Update CHANGELOG for Indent Guides pluginTeddy Wing
2014-05-08Add Indent Guides pluginTeddy Wing
Visually displays indentation so you can have an easier time seeing where a block ends. Like BBEdit's tab stops (kind of), but looks more like the Visual Studio style (blech). Going to be amazingly useful since my team enforces 2-space indentation for all front-end code (WTF???!).
2014-05-02vimrc: remove setting for `switchbuf=usetab,newtab`Teddy Wing
This setting wasn't working for me, particularly when using EasyGrep, so I've decided to remove it.
2014-05-02vimrc: set gitcommit files to use 2-space indentationTeddy Wing
2014-05-01vimrc: change statusline colour depending on Insert/Normal modeTeddy Wing
When in Insert mode, the statusline background colour changes to green. In all other modes, the default reversed colours are used. This change only appears when the twilight256 colourscheme is set.
2014-04-30Add backup directoriesTeddy Wing
* Add backup directories using .gitkeep files * .gitignore: - ignore files in the three backup directories - ensure that .gitkeep files are not ignored
2014-04-30.gitignore: change `projects/` to `/projects/`Teddy Wing
Only ignore the projects/ dir in the repository root. Who knows? we might have a projects/ directory somewhere else in here that we want to hold on to.
2014-04-30vimrc: store backup/swap files in ~/.vimTeddy Wing
Instead of dropping .swp etc. files all over the filesystem, put them in the `~/.vim/backup/` directory. Here we have three directories, one for each of backups, swap, and undo.
2014-04-28vimrc: add JavaScript syntax highlighting for JSON filesTeddy Wing
* Create an augroup to house syntax highlighting settings * Add an autocmd that highlights JSON files using JavaScript syntax highlighting
2014-04-25vimrc: add file encoding to statuslineTeddy Wing
Useful to know. I like having it in BBEdit for those cases when a file is for whatever reason not UTF-8, so adding it in here.
2014-04-25vimrc: set `ignorecase` and `smartcase`Teddy Wing
So I don't have to keep typing '\c' all the time when I'm searching for something. Also, `smartcase`, an option I just found out about, allows us to have case sensitivity if we enter uppercase.
2014-04-25vimrc: map gj to j and gk to kTeddy Wing
Gives us access to skip wrapped lines since we mapped the inverse direction before and as such there was no way to do this. Consider this a power user version of up and down. I think this mapping is more intuitive.
2014-04-25Add mapping to clear search highlightingTeddy Wing
<leader>/ now performs :nohlsearch
2014-04-24vimrc: set EasyGrep to ignore caseTeddy Wing
Ignore case by default when searching with EasyGrep.
2014-04-20Add README and LICENSETeddy Wing
2014-04-20Add ignore=untracked to a couple submodulesTeddy Wing
To prevent them from showing untracked changes in git status. See: http://stackoverflow.com/questions/4343544/generating-tags-to-different-location-by-pathogen
2014-04-20Add pluginsTeddy Wing
* Pathogen * Command-T * NerdTree * TabBar (disabled) * commentary.vim * PreserveNoEOL * EasyGrep
2014-04-20Initial commit: .vimrc form 2014.04.20Teddy Wing
.vimrc from today. Will be re-adding my plugins as git submodules.