mattn

Results 918 comments of mattn

What message do you get from below? ``` :echo g:github_user ``` What response do you get from below? ``` :echo substitute(s:system('git config --get github.user'), "\n", '', '') ```

Ah, sorry. try this instead. ``` :echo substitute(system('git config --get github.user'), "\n", '','') ```

Yes, you will see your account name because it's given from https://github.com/mattn/gist-vim/blob/master/autoload/gist.vim#L39 So the error https://github.com/mattn/gist-vim/blob/master/autoload/gist.vim#L719 couldn't be displayed.

> What might be the reason im not seeing the account name in the firs example? Removed by another plugin.

What error do you get from `git config --get github.user` ?

okay, but you must get error code. try to see `echo $?` on unix, `echo %ERRORLEVEL%` on windows.

And do you mean that you get always error with `system("git config --get github.user")`. Right?

I don't still understand what problem you get. `s:system` is defined in line 36.