On 11/05/11 7:57 PM, woodygar wrote:
Hi just stated to use vim as a python ide - how to remove numbers from .txt but leave them on for .py .pyw files
Perhaps something as simple as :set number :autocmd BufNewFile,BufRead *.txt setlocal nonumber in your .vimrc That would use numbers for all files, except turn them off when you edit .txt. Of course, you could do it the other way around, too: :set nonumber :autocmd BufNewFile,BufRead *.py,*.pyw setlocal number To make it more robust in case you source your .vimrc multiple times, you can wrap it in an augroup block: :set number :augroup myautocommands :autocmd! :autocmd BufNewFile,BufRead *.txt setlocal nonumber :augroup END Ben. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php