LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Vim commands for multiple windows (https://www.linuxquestions.org/questions/linux-software-2/vim-commands-for-multiple-windows-750772/)

vijay_babu1981 08-27-2009 11:40 PM

Vim commands for multiple windows
 
Hi

If I open 10 files in vim simultaneously with or without -o option, I have to do :set commands individually in each window.

How can I run ":set xx" for multiple windows simultaneously open in gvim?

Regards
Vijay

ArfaSmif 08-28-2009 01:01 AM

One way is to use the .exrc file in your home directory. That can contain set commands for vi. These will then be global values for all of your vi sessions. for example, my .exrc file contains the three lines :-

syntax off
set nohlsearch
set ignorecase


All times are GMT -5. The time now is 12:03 AM.