On May 11, 2011 at 02:57 AM -0700, 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
In your .vimrc include the following lines:
set nonumber
au FileType python setlocal number
The first line turns off numbering for all files. The second line turns
it on for python files.
You could also do:
set number
au BufRead,BufNewFiel *.{txt} setlocal nonumber
That would turn on numbering for all filetypes, but for new files and
files that you open with the extension .txt, numbering would be turned
off.
Hope this helps.
--
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