Passing UNC patch from python code to vim inputdialog

2016-04-01 Thread Ni Va
Hi, I have a little python code passing some vars to vim func. My problem is about a default UNC path var to pass to inputdialog vim's func 'cause I loose the backslash. _python code__ defaultDir = '\\MACHINENAME\along\a\path' vim.command(':let inVimTopDir = inputdialog("En

Using gx with text-only browser

2016-04-01 Thread Peter King
I usually use nvim at the console and would like to set gx to open a URL under the cursor with /usr/bin/links. I have tried setting these options: let netrw_browsex_viewer=``/usr/bin/links'' let netrw_http_cmd=``links'' All that happens, though, is that the console screen blinks while the lo

Revert keys values in dict

2016-04-01 Thread Ni Va
Hi, I would like to make values become keys in this dict, is it possible in one simple command ? Thank you let mydict={'"':'"', '&':'&', ''':"'", '<':'<'} -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For m

Re: Revert keys values in dict

2016-04-01 Thread Luc Hermitte
Hi, > Hi, > > I would like to make values become keys in this dict, is it possible > in one simple command ? > > let mydict={'"':'"', '&':'&', ''':"'", '<':'<'} For instance, :echo map(copy(mydict), '{v:val : v:key}') doesn't permit to build a new dictionary from scratch However, with

Open All Folds When Opening a File

2016-04-01 Thread goldhexter
Hello all, I've used VIM for basic editing, but am new to using it as a full fledged development environment. Much of my coding is via Python so I've installed the SimpylFold plugin via Vundle. All is fine, I can unfold and fold using the "z" options. However, what I'd like to do is always have

Re: Outlining folding rule

2016-04-01 Thread Nicola
On 2016-03-31 20:53:34 +, Nicola said: The following foldexpr is giving me headaches because it doesn't work under all circumstances: fun! s:outlinerFoldingRule(n) return getline(a:n) =~ '^\s*:' ? \ 20 : indent(a:n) < indent(a:n+1) ? \ ('>'.(1+indent(a:n)/&l:tabstop)) : (

Need help with macro

2016-04-01 Thread Dmitry Teslenko
I have this block of text: START bbb END I try to record a macro that perform substitutions between START and END. Say, I need to replace with ee and with ff. Cursor is at START. I do visual selection and then search replace :<,>s My problem is macro execution terminates on se

Re: Need help with macro

2016-04-01 Thread Dmitry Teslenko
I have this block of text: START bbb END I try to record a macro that perform substitutions between START and END. Say, I need to replace with ee and with ff. Cursor is at START. I do visual selection and then search replace :<,>s My problem is macro execution terminates on se

Re: Need help with macro

2016-04-01 Thread Dmitry Teslenko
And content between start and end varies. So perform replace on 1st live only is not a solution. 2 апр. 2016 г. 9:37 пользователь "Dmitry Teslenko" написал: > I have this block of text: > > START > > bbb > > END > > I try to record a macro that perform substitutions between START and EN

Re: Open All Folds When Opening a File

2016-04-01 Thread Gary Johnson
On 2016-04-01, goldhexter wrote: > Hello all, > > I've used VIM for basic editing, but am new to using it as a full > fledged development environment. Much of my coding is via Python > so I've installed the SimpylFold plugin via Vundle. All is fine, I > can unfold and fold using the "z" options. H