aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin
AgeCommit message (Collapse)Author
2015-01-24Create ftplugin/eruby.vim with indentation settingsTeddy Wing
Looks like ERB files would take their indentation settings from the ruby setting (2 spaces). I want 4-space indentation in my ERB, at least typically that's what I want when I'm writing HTML with embedded ruby. Apply that accordingly.
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.
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-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-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-06-14Add ftplugin/go.vimTeddy Wing
Include basic settings plus compiler mappings. Mappings facilitate compiling and running Go programs.
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-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-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