Permalink
Browse files

user and password are now script variables

  • Loading branch information...
1 parent e5f7041 commit 79ca767ea7abbfbffa911f24f42637e1e9fc5659 @mrtazz mrtazz committed Sep 1, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 plugin/simplenote.vim
@@ -119,21 +119,21 @@ function! s:SimpleNote(line1, line2, ...)
endfor
unlet args
if listnotes == 1
- let notes = s:GetNoteList(g:user, s:token)
- let winnum = bufwinnr(bufnr('notes:'.g:user))
+ let notes = s:GetNoteList(s:user, s:token)
+ let winnum = bufwinnr(bufnr('notes:'.s:user))
if winnum != -1
if winnum != bufwinnr('%')
exe "normal \<c-w>".winnum."w"
endif
setlocal modifiable
else
- exec 'silent split notes:'.g:user
+ exec 'silent split notes:'.s:user
endif
endif
endfunction
-let s:token = s:SimpleNoteAuth(g:user, g:password)
+let s:token = s:SimpleNoteAuth(s:user, s:password)
" set the simplenote command
command! -nargs=? -range=% SimpleNote :call <SID>SimpleNote(<line1>, <line2>, <f-args>)

0 comments on commit 79ca767

Please sign in to comment.