From 000fc5434b61924dfb8a102c05d7abcf914abb8f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 13 Dec 2017 20:56:09 +0100 Subject: 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 Ouibus the socle commun| Otherwise, if a space is before the `|`, that space becomes part of the abbreviation's right-hand side. --- projects/af83.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'projects') 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 Ouibus the socle commun + \| inoreabbrev OuiBus the socle commun + \| inoreabbrev ouibus the socle commun augroup END -- cgit v1.2.3