LoginSignup
10
10

More than 5 years have passed since last update.

vimのちょっとしたプラグイン拡張をgist管理する

Posted at

vimのちょっとしたプラグイン拡張とかgist管理したらすっきりしたのでおすすめです。

NeoBundle 'gist:soramugi/6775207', { 'script_type' : 'plugin' }

" octopressの記事追加したらgit commitのやつ"
function! s:octopress_git(message)
  if a:message == ''
    exe "!cd " . g:octopress_path . " && git add -A && git ci -m \"`date`\" && git push "
  else
    exe "!cd " . g:octopress_path . " && git add -A && git ci -m " a:message "&& git push "
  endif
endfunction

command! -nargs=? OctopressGit :call s:octopress_git(<q-args>)

本家プラグインの使い方から外れてそうな拡張とかする時とか?
プラグインにするの面倒くさいけどvimrcからは分けておきたいとか?

10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10