Hi ,
I have a question about how to modify the buffer option directly without
focus to that buffer or even showing that buffer.
OK , i explain my need via a specific case.

For example , the window show as below

--------------------------------
|              |               |
| win1      |    win2     |
| buf 1      |   buf2      |
|              |               |
|              |               |
--------------------------------

the window is split into two part , as win1 and win2
within which show the buffer 1 ( buf1) and buffer2 ( buf2 )
And , now we focus at win2

If i want to change the option ( ex, setlocal nonumber ) to the buffer1
with vim script. we "always" deal with this case like this :
1. focus to the win1 ( :1wincmd w )
2. execute the vim command ( :setlocal nonumber )
3. restore the focus ( :2wincmd w )

When there need to be an update ,
( a command need to be executed or a option need to be set )
whenever  i press some key , the focus always need to be changed
during the operation, which make the screen flicker frequently .

So , i want to know that , is it possible to set the option or execute
a command to a buffer without focus to the buffer or even show it
(ex, the buffer is hidden )

Although I know the vim command is always targeted for the
"current buffer/window" , but sometimes the flickering screen
indeed bother me a lot.

Is there a good way to deal with my need ?
And any suggestions are greatly appreciated.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to