diff options
author | Teddy Wing | 2017-12-13 20:56:09 +0100 |
---|---|---|
committer | Teddy Wing | 2017-12-13 20:56:09 +0100 |
commit | 000fc5434b61924dfb8a102c05d7abcf914abb8f (patch) | |
tree | f773fda822de5fe15f8d61d4bf38b43f5001af74 | |
parent | dfdb91aa2dd792aa9074f4f15adb2ab32afb80d1 (diff) | |
download | dotvim-000fc5434b61924dfb8a102c05d7abcf914abb8f.tar.bz2 |
projects/af83.vim: Add abbreviations for Ouibus
I'm not supposed to write this word, so change it to the code word
automatically if I happen to write it accidentally in a commit message.
Interestingly, the bars (`|`) need to go either right next to the
backslashes (`\`) or right after the right-hand side, as in:
inoreabbrev <buffer> Ouibus the socle commun|
Otherwise, if a space is before the `|`, that space becomes part of the
abbreviation's right-hand side.
-rw-r--r-- | projects/af83.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/projects/af83.vim b/projects/af83.vim index 75544a7..8102173 100644 --- a/projects/af83.vim +++ b/projects/af83.vim @@ -7,4 +7,9 @@ augroup af83 autocmd BufRead,BufEnter $VIM_PROJECT_PATH_AF83/* \ let g:rspec_command = "!bundle exec spring rspec {spec}" + + autocmd BufRead,BufEnter $VIM_PROJECT_PATH_AF83/**/.git/{COMMIT_EDIT,TAG_EDIT,MERGE_,}MSG + \ inoreabbrev <buffer> Ouibus the socle commun + \| inoreabbrev <buffer> OuiBus the socle commun + \| inoreabbrev <buffer> ouibus the socle commun augroup END |