Re: locked window

2006-10-19 Thread Kim Schulz
On Thu, 19 Oct 2006 12:15:17 -0700 "Yegappan Lakshmanan" <[EMAIL PROTECTED]> wrote: > You can use the detailed example code under ":help > CursorHold-example". It uses the ":ptag" command and the cursorhold > autocmd to jump to the tag under the cursor in the preview window and > highlight the li

Re: locked window

2006-10-19 Thread Yegappan Lakshmanan
Hi, On 10/19/06, Kim Schulz <[EMAIL PROTECTED]> wrote: On Thu, 19 Oct 2006 15:18:12 +0200 "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote: [snip] > > Instead of calling the program "vim", call it "rview". Then you won't > be able to write anything, nor to use a shell command. Is that safe > enough?

Re: locked window

2006-10-19 Thread Kim Schulz
On Thu, 19 Oct 2006 15:18:12 +0200 "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote: [snip] > > Instead of calling the program "vim", call it "rview". Then you won't > be able to write anything, nor to use a shell command. Is that safe > enough? Maybe ":help starting.txt" will give you other ideas.

Re: locked window

2006-10-19 Thread Andy Wokula
Brecht Machiels schrieb: Hi, You can clear the 'modifiable' option to disable unintended modifications to a buffer. setlocal nomodifiable Is is possible to prevent, for example, the project plugin from opening another file (other than the current) in a window? The nomodifiable option only

Re: locked window

2006-10-19 Thread A.J.Mechelynck
Brecht Machiels wrote: Hi, You can clear the 'modifiable' option to disable unintended modifications to a buffer. setlocal nomodifiable Is is possible to prevent, for example, the project plugin from opening another file (other than the current) in a window? The nomodifiable option only a

Re: locked window

2006-10-19 Thread Brecht Machiels
Hi, You can clear the 'modifiable' option to disable unintended modifications to a buffer. setlocal nomodifiable Is is possible to prevent, for example, the project plugin from opening another file (other than the current) in a window? The nomodifiable option only applies to the buffer. Th

Re: locked window

2006-10-18 Thread Yegappan Lakshmanan
Hello, On 10/18/06, Kim Schulz <[EMAIL PROTECTED]> wrote: Hi I was wondering if there is a way to lock a window such that the content can only be changed by scripting/commands. Like a preview window or somthing like that. is that possible to make in Vim or should I make a feature request to ge

Re: locked window

2006-10-18 Thread Tim Chase
filename assigned to this given window (no_touch.txt), you could do something like :au WinEnter no_touch.txt wincmd x (which kinda pushes the "locked" window out of the way by preventing you from entering it) or :au WinEnter no_touch.txt wincmd p which simply prevents you from en

locked window

2006-10-18 Thread Kim Schulz
Hi I was wondering if there is a way to lock a window such that the content can only be changed by scripting/commands. Like a preview window or somthing like that. is that possible to make in Vim or should I make a feature request to get it :-) -- Kim Schulz| Private : http://www.schul