use vim syntax highlighting for wsgi

Hi there,

if you want to have the python syntax highlighting for wsgi-files, you just have to edit this vim file:

sudo vim /usr/share/vim/vim72/filetype.vim

After opening this file search for the keyword python. You can search with vim via the „/“-command. Type „:/ python“ and search the line:

“ Python
au BufNewFile,BufRead *.py,*.pyw        setf python

You just have to add ,*.wsgi after pyw. It should look like this:

“ Python
au BufNewFile,BufRead *.py,*.pyw,*.wsgi        setf python

Now you can open a wsgi-File and the syntax-highlighting should be enabled.

Have fun!

Remove CR-LF in windows files with vi(m)

If you want to delete the Carriage Return and Line Feed (CR+LF) in windows-created files, you can use the vi(m).

( Because Windows uses CR+LF as Line-End, unix/linux just uses the LF-Character )

Open the file via vim:

vim <WindowsFile>

After opening the file you have to enter the following sequence:

:%s/^M$//g

For creating the „^M“ you have to press CTRL+V and CTRL + M, otherwise it would not work!