enable modeline in vim

2012-07-16 Thread Victor Sudakov
Colleagues, Do you know how to enable modelines in vim running from root? Even if I put set modeline in /root/.vimrc, the output of :set modeline? still shows nomodeline. At the same time, set modeline in ~/.vimrc works for all other accounts except root. Someone has protected the root account

Re: enable modeline in vim

2012-07-16 Thread Виталий Туровец
2012/7/16 Victor Sudakov v...@mpeks.tomsk.su: Colleagues, Do you know how to enable modelines in vim running from root? Even if I put set modeline in /root/.vimrc, the output of :set modeline? still shows nomodeline. At the same time, set modeline in ~/.vimrc works for all other accounts

Re: enable modeline in vim

2012-07-16 Thread Victor Sudakov
Виталий Туровец wrote: Do you know how to enable modelines in vim running from root? Even if I put set modeline in /root/.vimrc, the output of :set modeline? still shows nomodeline. At the same time, set modeline in ~/.vimrc works for all other accounts except root. Someone has

Re: enable modeline in vim

2012-07-16 Thread Patrick
Assuming you've installed vim from the ports tree, /usr/local/share/vim/vimrc is the shared vimrc file amongst all users. Have you tried setting it in there? On Monday, 16 July, 2012 at 09:37 , Victor Sudakov wrote: Виталий Туровец wrote: Do you know how to enable modelines in

Re: enable modeline in vim

2012-07-16 Thread Victor Sudakov
Patrick wrote: Do you know how to enable modelines in vim running from root? Even if I put set modeline in /root/.vimrc, the output of :set modeline? still shows nomodeline. At the same time, set modeline in ~/.vimrc works for all other accounts except root. Someone