Sunday, January 20, 2013

Re: google_translator plugin

On Monday, January 21, 2013 1:44:09 AM UTC+13, Igor Fadeev wrote:
> After i added in my vimrc text:
> "g:goog_user_conf = {
> 'langpair': 'en|ru', "language code iso 639-1
> 'v_key': 'T' "? define key in visual-mode (optional)
> }"
> when i start vim, console says something like:
> "pattern not found: goog_user_conf".

Just quickly, surely "let" is needed, and line continuations ("\"), and one can't have comments within a statement:

let g:goog_user_conf = {
\ 'langpair': 'en|ru',
\ 'v_key' : 'T' }

or, maybe

let g:goog_user_conf = {}
let g:goog_user_conf['langpair'] = 'en|ru' "language code iso 639-1
let g:goog_user_conf['v_key' ] = 'T' "? define key in visual-mode

Regards, John Little

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: