Changeset 7587 for lang/vim

Show
Ignore:
Timestamp:
03/06/08 21:10:17 (9 months ago)
Author:
motemen
Message:
  • 複数のポストに対応できてなかったので正規表現を修正
  • パスワードを入力しなかったらポストしない
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/vim/sync/sync-delicious.vim

    r7524 r7587  
    1212" という感じ 
    1313if !exists('g:sync_delicious_pattern') 
    14     let g:sync_delicious_pattern = '\v%(^|\n)@<= \* (%(\[.{-}\])*)\s*(.{-})\s+(%(https?|ftp):\/\/\p+)\n%(   (\S+))?' 
     14    let g:sync_delicious_pattern = '\v \* (%(\[.{-}\])*)\s*(.{-})\s+(%(https?|ftp):\/\/\p+)%(\n   (\S+))?' 
    1515endif 
    1616 
     
    7070    let password = inputsecret('del.icio.us password: ') 
    7171 
     72    if !strlen(password) 
     73        echo 'キャンセルされました' 
     74        return { 'new_opts': 'user=' . user } 
     75    endif 
     76 
    7277    for item in items 
    7378        if !PostDelicious(user, password, item)