Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

user and password are now script variables

  • Loading branch information...
commit 79ca767ea7abbfbffa911f24f42637e1e9fc5659 1 parent e5f7041
@mrtazz mrtazz authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 plugin/simplenote.vim
View
8 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>)
Please sign in to comment.
Something went wrong with that request. Please try again.