Re: vim replace a string when a change occurred in another place

2015-06-24 Thread KF
On Tuesday, June 23, 2015 at 6:52:54 PM UTC+8, Rudra Banerjee wrote: > Hi, > > Say, I have a file: > Program foo > > End Program foo > > Is it possible that if I change the word "foo" in the first line to "bar" > (which may not be the first line of the file), the last line's "foo" will > also

Re: gvim colorscheme is run before global variables restored

2015-06-24 Thread Paul
On Wed, Jun 24, 2015 at 6:45 PM, Nikolay Pavlov wrote: > 2015-06-25 1:24 GMT+03:00 Paul : >> My color scheme checks for the existence of a global variable >> g:Lapscreen and modified colours accordingly. The colorscheme is >> invoked from my vimrc. I have sessionoption set to include globals >>

Re: How to let vim immediate update the screen when I type ESC (in TUI mode)?

2015-06-24 Thread h_east
Hi Peng and Ben, 2015-6-25(Thu) 0:04:59 UTC+9 Ben Fritz: > On Wednesday, June 24, 2015 at 8:42:01 AM UTC-5, Peng Yu wrote: > > Hi, > > > > For example, starting with normal model, then I type :, then type ESC, > > it will take some time (maybe a sec) for the ":" at the bottom of the > > screen to

Re: gvim colorscheme is run before global variables restored

2015-06-24 Thread Nikolay Pavlov
2015-06-25 1:24 GMT+03:00 Paul : > My color scheme checks for the existence of a global variable > g:Lapscreen and modified colours accordingly. The colorscheme is > invoked from my vimrc. I have sessionoption set to include globals so > that the colorscheme does the right thing when my session i

gvim colorscheme is run before global variables restored

2015-06-24 Thread Paul
My color scheme checks for the existence of a global variable g:Lapscreen and modified colours accordingly. The colorscheme is invoked from my vimrc. I have sessionoption set to include globals so that the colorscheme does the right thing when my session is restored -- or rather, that's what I'm

Re: make existing subwindow as preview window

2015-06-24 Thread Paul
2015/6/11(Thu) 10:25:34 UTC+9 Paul: > Is there a way to make the current window into the preview window? > In another window running netrw, I would then want to be able to > press "p" on a file and have it show in the window that I designate > for preview. On Thursday, June 11, 2015 at 12:29:55 AM

Re: How to let vim immediate update the screen when I type ESC (in TUI mode)?

2015-06-24 Thread Ben Fritz
On Wednesday, June 24, 2015 at 8:42:01 AM UTC-5, Peng Yu wrote: > Hi, > > For example, starting with normal model, then I type :, then type ESC, > it will take some time (maybe a sec) for the ":" at the bottom of the > screen to disappear (this is the case in TUI not GUI mode). > > How to let vim

Re: Problem with netrw and buftype

2015-06-24 Thread Charles Campbell
Christian Brabandt wrote: > Hi wednesday! > > On Mi, 24 Jun 2015, wednesday wrote: > >> On Wed, Jun 24, 2015 at 02:25:03AM +0100, wednesday wrote: >>> When I open up the explorer to put a new file into a split, once >>> that new file is there the old one becomes unwritable due to buftype >>> being

How to let vim immediate update the screen when I type ESC (in TUI mode)?

2015-06-24 Thread Peng Yu
Hi, For example, starting with normal model, then I type :, then type ESC, it will take some time (maybe a sec) for the ":" at the bottom of the screen to disappear (this is the case in TUI not GUI mode). How to let vim immediate update the screen when I type ESC in TUI mode? -- Regards, Peng

Re: Problem with netrw and buftype

2015-06-24 Thread Christian Brabandt
Hi wednesday! On Mi, 24 Jun 2015, wednesday wrote: > On Wed, Jun 24, 2015 at 02:25:03AM +0100, wednesday wrote: > > When I open up the explorer to put a new file into a split, once > > that new file is there the old one becomes unwritable due to buftype > > being set to nofile. This has been pret

errorformat Rhino js

2015-06-24 Thread Afanasiy Fet
let &makeprg='java -jar "rhino.jar" -strict -fatal-warnings "%:p"' let &errorformat='%Ajs: "%f"\, line %l: %m,%Zjs: %p^,%C%.%#' https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the

Re: vim replace a string when a change occurred in another place

2015-06-24 Thread Erik Christiansen
On 23.06.15 23:56, Rudra Banerjee wrote: > Erik, > Thanks for you commentbut it is solved. Now, another important > thinghow to invoke it! Is it possible to have something like this: > > if (getline(".")) startswith "Program" au CursorMovedI call EdName() > > i.e. calling a autocmd condit

Re: Problem with netrw and buftype

2015-06-24 Thread wednesday
On Wed, Jun 24, 2015 at 02:25:03AM +0100, wednesday wrote: > When I open up the explorer to put a new file into a split, once that new file > is there the old one becomes unwritable due to buftype being set to nofile. > This has been pretty frustrating and I have yet to find the answer. If this > h