Age | Commit message (Collapse) | Author |
|
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.
|
|
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.
|
|
Set the correct comment prefix for the Muttrc config language (`#`).
|
|
Set proper 2-space indentation for YAML files.
|
|
Don't think we should be doing this in Rust so taking away my default
behaviour.
|
|
Set `// ` as the comment string for the Rust language (otherwise it
defaults to `/* %s */`).
|
|
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.
|
|
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.
|
|
Provide a quick way to format the current file.
|
|
Include hyphens in the `iskeyword` list so that CSS class names can be
autocompleted. This should make things faster and hopefully save me from
typing some long repetitive class names.
|
|
Add a mapping to flake8 the current file for PEP8 syntax violations so I
don't have to type out the path of a file that I already have open in
order to check it against flake8.
|
|
Noticed when writing emails that when a line ends with a period, two
spaces are added after it, meaning there are now two spaces between my
sentences. Personally I hate this practise even though I understand why
it makes sense when using fixed-width typefaces. Set nojoinspaces to
make it stop happening.
|
|
It's useful to have spell checking on when writing emails.
|
|
Add formatoptions for composing email messages. Using a recommendation
from here:
http://wcm1.web.rice.edu/mutt-tips.html
regarding format=flowed emails.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 <:>.
|
|
Include basic settings plus compiler mappings. Mappings facilitate
compiling and running Go programs.
|
|
Set two space indentation for Ruby.
|
|
Actually enjoyed the textwidth setting of the default gitcommit
ftplugin so bringing that over to my custom one.
|
|
Move gitcommit indentation settings from vimrc to an ftplugin file.
Keeps things more organised and makes for a cleaner vimrc.
|
|
* 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
|