Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

mustache.vim を追加。ftdetect を修正。

  • Loading branch information...
commit b902b2ab6bff93bc8c8ad26b1cdd21082724673c 1 parent de45984
akirasosa akirasosa authored
3  .gitmodules
@@ -79,3 +79,6 @@
79 79 [submodule ".vim/bundle/AutoComlPop"]
80 80 path = .vim/bundle/AutoComlPop
81 81 url = git://github.com/vim-scripts/AutoComplPop.git
  82 +[submodule ".vim/bundle/mustache.vim"]
  83 + path = .vim/bundle/mustache.vim
  84 + url = git://github.com/juvenn/mustache.vim.git
0  .vim/ftdetect/gradle.vim → .vim/after/ftdetect/gradle.vim
File renamed without changes
0  .vim/ftdetect/gsp.vim → .vim/after/ftdetect/gsp.vim
File renamed without changes
2  .vim/ftdetect/html.erb.vim → .vim/after/ftdetect/html.erb.vim
... ... @@ -1 +1 @@
1   -au BufNewFile,BufRead *.html.erb set filetype=xhtml.eruby syntax=xhml.eruby
  1 +au BufNewFile,BufRead *.html.erb set filetype=xhtml.eruby syntax=eruby
1  .vim/after/ftdetect/html.mustache.vim
... ... @@ -0,0 +1 @@
  1 +au BufNewFile,BufRead *.html.mustache set filetype=xhtml.mustache syntax=xhtml.mustache
0  .vim/ftdetect/jst.eco.vim → .vim/after/ftdetect/jst.eco.vim
File renamed without changes
0  .vim/ftdetect/twig.vim → .vim/after/ftdetect/twig.vim
File renamed without changes
1  .vim/bundle/mustache.vim
... ... @@ -0,0 +1 @@
  1 +Subproject commit 9c119016faf2e3e6c9077cf8bb9a7df400c2c400
64 .vim/plugin/Rename.vim
... ... @@ -1,64 +0,0 @@
1   -" Rename.vim - Rename a buffer within Vim and on the disk
2   -"
3   -" Copyright June 2007-2011 by Christian J. Robinson <heptite@gmail.com>
4   -"
5   -" Distributed under the terms of the Vim license. See ":help license".
6   -"
7   -" Usage:
8   -"
9   -" :Rename[!] {newname}
10   -
11   -command! -nargs=* -complete=file -bang Rename call Rename(<q-args>, '<bang>')
12   -
13   -function! Rename(name, bang)
14   - let l:name = a:name
15   - let l:oldfile = expand('%:p')
16   -
17   - if bufexists(fnamemodify(l:name, ':p'))
18   - if (a:bang ==# '!')
19   - silent exe bufnr(fnamemodify(l:name, ':p')) . 'bwipe!'
20   - else
21   - echohl ErrorMsg
22   - echomsg 'A buffer with that name already exists (use ! to override).'
23   - echohl None
24   - return 0
25   - endif
26   - endif
27   -
28   - let l:status = 1
29   -
30   - let v:errmsg = ''
31   - silent! exe 'saveas' . a:bang . ' ' . l:name
32   -
33   - if v:errmsg =~# '^$\|^E329'
34   - let l:lastbufnr = bufnr('$')
35   -
36   - if expand('%:p') !=# l:oldfile && filewritable(expand('%:p'))
37   - if fnamemodify(bufname(l:lastbufnr), ':p') ==# l:oldfile
38   - silent exe l:lastbufnr . 'bwipe!'
39   - else
40   - echohl ErrorMsg
41   - echomsg 'Could not wipe out the old buffer for some reason.'
42   - echohl None
43   - let l:status = 0
44   - endif
45   -
46   - if delete(l:oldfile) != 0
47   - echohl ErrorMsg
48   - echomsg 'Could not delete the old file: ' . l:oldfile
49   - echohl None
50   - let l:status = 0
51   - endif
52   - else
53   - echohl ErrorMsg
54   - echomsg 'Rename failed for some reason.'
55   - echohl None
56   - let l:status = 0
57   - endif
58   - else
59   - echoerr v:errmsg
60   - let l:status = 0
61   - endif
62   -
63   - return l:status
64   -endfunction

0 comments on commit b902b2a

Please sign in to comment.
Something went wrong with that request. Please try again.