Question

I generally work in vim with 3 or 4 splits. I am looking for shortcuts to do things like set number, set list, set nolist etc in all the splits. Can one suggest some elegant method to do this instead of setting it in all splits one by one.

Thanks

Was it helpful?

Solution

Yes.

:windo set nonumber list

and more commands you can add to the list.

OTHER TIPS

You can set them in vimrc just as you would do it from inside the editor. Mine is under /etc/vim/vimrc. This way, every time you open your editor the settings will be there.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top