Skip to content

Commit

Permalink
user and password are now script variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtazz committed Sep 1, 2010
1 parent e5f7041 commit 79ca767
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/simplenote.vim
Expand Up @@ -119,21 +119,21 @@ function! s:SimpleNote(line1, line2, ...)
endfor endfor
unlet args unlet args
if listnotes == 1 if listnotes == 1
let notes = s:GetNoteList(g:user, s:token) let notes = s:GetNoteList(s:user, s:token)
let winnum = bufwinnr(bufnr('notes:'.g:user)) let winnum = bufwinnr(bufnr('notes:'.s:user))
if winnum != -1 if winnum != -1
if winnum != bufwinnr('%') if winnum != bufwinnr('%')
exe "normal \<c-w>".winnum."w" exe "normal \<c-w>".winnum."w"
endif endif
setlocal modifiable setlocal modifiable
else else
exec 'silent split notes:'.g:user exec 'silent split notes:'.s:user
endif endif
endif endif


endfunction endfunction


let s:token = s:SimpleNoteAuth(g:user, g:password) let s:token = s:SimpleNoteAuth(s:user, s:password)


" set the simplenote command " set the simplenote command
command! -nargs=? -range=% SimpleNote :call <SID>SimpleNote(<line1>, <line2>, <f-args>) command! -nargs=? -range=% SimpleNote :call <SID>SimpleNote(<line1>, <line2>, <f-args>)
Expand Down

0 comments on commit 79ca767

Please sign in to comment.