aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-01-15ftplugin/python.vim: Add map to quickly insert debug statementTeddy Wing
Create a python-specific map (<leader>gdo and <leader>gdO) that inserts import ipdb; ipdb.set_trace() either above or below the current line. I got tired of having to type it all the time.
2015-01-06virmc: Set backupcopy=yesTeddy Wing
Add setting to preserve file attributes, such as creation date. I went to check the creation date of a file I know was created at least a year ago, but its creation date was today and the same as its modified date. I had recently edited the file in Vim, and that ended up being the problem. This setting ensures that files are reused so their attributes are preserved. What an unfortunate loss of history since last April.
2014-12-13Update `auditory.vim` plugin to the latestTeddy Wing
2014-12-13Update `vim-ls-grep` plugin to the latestTeddy Wing
2014-11-24Add ls-grep pluginTeddy Wing
So I can grep my open buffers.
2014-11-18ftplugin/python.vim: Set textwidth to 79 columnsTeddy Wing
Comply with PEP8 style guidelines by setting a max line width of 79 columns). Should make it easier to write Python code without having to watch the column count myself.
2014-11-15vimrc: Add <leader>p mappingTeddy Wing
Add a mapping to read from the OS X pasteboard. Pasting directly in insert mode is excessively slow when dealing with a lot of text. Likely caused by too much redrawing. Reading directly from the OS X pasteboard is much faster, so add a mapping for that.
2014-11-12vimrc: set sessionoptions-=optionsTeddy Wing
This setting tells vim not to save options & mappings in persisted sessions. This allows open buffers, windows, and tabs to be saved but configuration options and plugins to be different when reopening a session. Useful if I've made modifications to my vimrc after creating a session. Found out about this from https://github.com/xolox/vim-session. Really cool that this exists. It's been something that annoyed me for a while but I never bothered to find a solution.
2014-11-12Add auditory.vim pluginTeddy Wing
2014-11-06ftplugin/gitcommit.vim: Don't start wrapped lines with '*'Teddy Wing
When making bulleted lists in git commits, I normally use '*' as the bullet character. When my text wrapped from the textwidth=72 setting for gitcommit-type files, the line following the start of a bullet would begin with a bullet. Obviously this is the wrong behaviour since I'm continuing a list item, not of starting a new one. This frustrated me to no end whenever I wrote a list in a git commit, constantly having to `0r<space>` to fix the extra asterisks. I finally decided to solve this problem once and for all. Read up a little on: * :h formatoptions * :h fo-table * :h format-comments The last of which gave me what I needed to fix the problem. Now asterisks in git commits behave as list bullets.
2014-11-05vimrc: Add command mode mappings for word movementTeddy Wing
Never being able to move by word in command mode would always get on my nerves. In particular if I was trying compose a long command. Sure you can bring up a command window but that's not what I think of first when starting to writing a command. Luckily `cmdline.txt` in vim help has the answer! Since Shift-Left/Right doesn't work for me and I'm using Control-Left/Right to move between OS X spaces (not even sure if the Control modifier version works for this either), create bash/emacs-style mappings to move between words in command mode. I'm sorry I didn't find this earlier but it does feel good to have a big annoyance solved.
2014-11-05README: Add ag.vim pluginTeddy Wing
2014-11-05Add ag.vim pluginTeddy Wing
Was doing a search for a class in HTML files and realised that I want the files open in vim and in order to do so I would either have to monkey with some shell piping or Control-Z/fg back and forth from ag output to vim whilst remembering which filenames I wanted to open and open them manually. Craziness. Finally installing Ag.vim for these instances when I want to instantly open vim buffers for the files in my search results.
2014-10-30vimrc: Add <leader>tq mappingTeddy Wing
<leader>tq quits a window and goes to the previous tab. I was getting tired of doing `:q` -> `gT`. I know I have <leader>td but I've been working on some projects lately where I don't want to delete the buffers from my session.
2014-10-25Add ftdetect/md.vimTeddy Wing
Add an ftdetect file to automatically set Markdown syntax highlighting for files with a .md extension.
2014-09-10README: Update plugin listTeddy Wing
* Delete mentions of removed plugins (commentary.vim and TabBar) * Add an entry for tcomment
2014-09-10vimrc: Add <leader>r mapping to reload current fileTeddy Wing
Typing `:e!` is fine and all but I want a quicker way to do it.
2014-07-06vimrc: ignore node_modules/ from Command-TTeddy Wing
2014-07-02Add ftplugin/{html.vim,htmldjango.vim}Teddy Wing
Gives me matchit plugin settings for HTML and Django templates without including the entire ftplugin for either. Copied the settings from vim's default ftplugins. Allows me to use matchit to jump between HTML tags and <:>.
2014-07-02vimrc: source the built-in matchit pluginTeddy Wing
Allows for extended % matching, between things like < & >, HTML opening and closing tags, and general regex for various languages.
2014-06-30Create custom tabline.vim pluginTeddy Wing
Add a plugin for a custom tabline. Still a lot of room for improvement here, but I really wanted something that would tell me the tab numbers to make it easier for me to switch between tabs using #gt.
2014-06-29vimrc: remove commentary.vim autocmdsTeddy Wing
These are no longer required now that I've switched to tcomment.
2014-06-29Remove commentary.vim pluginTeddy Wing
Tried tcomment which is able to recognise the code and apply the appropriate comment instead of blindly using the comment format specified for the current file type. Removing commentary.vim as part of the switchover.
2014-06-29Add tcomment pluginTeddy Wing
Trying it out to see how it compares to commentary.vim. Getting annoyed that commentary.vim doesn't know to use JavaScript comments for a script embedded in HTML.
2014-06-29vimrc: remove custom mappings for TabBarTeddy Wing
Now that I removed the plugin these are no longer necessary.
2014-06-29Remove TabBar plugin submoduleTeddy Wing
I wasn't using the plugin and it's been sitting around disabled for a while. Now that I read up on how to delete submodules, I figured I may as well remove it.
2014-06-28vimrc: add mapping to split multiple XML tags to separate linesTeddy Wing
Faster way of going from <div><span>Hello, world!</span></div> to <div> <span>Hello, world!</span> </div> Respects current indentation length and expandtab value.
2014-06-27vimrc: add line ending type to statuslineTeddy Wing
Show the type of line ending (line feed or carriage return & line feed, or in vim land unix & dos) in the statusline.
2014-06-27vimrc: fix whitespace of 2014.06.26 changelog headerTeddy Wing
2014-06-26vimrc: update <c-h> mapping to reselect selectionTeddy Wing
The visual selection would get dropped after saving using <c-h> from visual mode. Ensure that we're brought back to were we started before save.
2014-06-25vimrc: add <leader>sf mapping to :CommandTFlushTeddy Wing
:CommandTFlush reloads the search list. Necessary when switching branches or creating new files for example. Add a mapping to make it faster to do this.
2014-06-19vimrc: fix Open path in Finder mappingTeddy Wing
Allow paths with spaces.
2014-06-19vimrc: fix Open in Textmate mappingTeddy Wing
Allow paths with spaces.
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.