]> git.madduck.net Git - etc/vim.git/blob - ftdetect/pass.vim

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Initial setup
[etc/vim.git] / ftdetect / pass.vim
1 " detect password-store files
2 if exists('did_pass') || &compatible  || version < 700
3     finish
4 endif
5 let g:did_pass = 'did_pass'
6 let s:save_cpo = &cpoptions
7 set compatible&vim
8
9 " this is straight from Tom Ryders plugin
10 augroup password-store
11   autocmd!
12   autocmd VimEnter
13         \ /dev/shm/pass.?*/?*.txt
14         \,$TMPDIR/pass.?*/?*.txt
15         \,/tmp/pass.?*/?*.txt
16         \ set filetype=pass
17 augroup END
18
19 " Cleanup at end
20 let &cpoptions = s:save_cpo