Мой .vimrc

version 6.0
if $LANG ==? 'ru_RU.CP1251'
    set encoding=8bit-cp1251
endif   

scriptencoding koi8-r
set langmap=йq,цw,уe,кr,еt,нy,гu,шi,щo,зp,фa,ыs,вd,аf,пg,рh,оj,лk,дl,яz,чx,сc,мv,иb,тn,ьm,ЙQ,ЦW,УE,КR,ЕT,НY,ГU,ШI,ЩO,ЗP,ФA,ЫS,ВD,АF,ПG,РH,ОJ,ЛK,ДL,ЯZ,ЧX,СC,МV,ИB,ТN,ЬM,х[,Х{,ъ],ж\\;,Ж:,э',Э\\",б\\,,Б<,ю.,Ю>
set sw=4
set ts=4
set ai
set shiftround
set showfulltag
set showmatch
set linebreak
set background=dark
set isp=@,128-255
map <F2> :e ++enc=cp1251 %
map <F3> :e ++enc=utf-8 %
map <F4> :e ++enc=ibm866 %
map <F5> :e ++enc=koi8-r %
map <F6> :e ++enc=iso8859-5 %
set nohlsearch
set errorformat=%f:%l:%m 
map ,m :make %<.o
map ,t :!latex %<
map ,p :!dvips %<
map ,r :!%
map ,x :!chmod +x %
map ,v :!xdvi %< >/dev/null 2>&1
set tw=72
" ^M and ^[ in the following lines are real control characers <CR> and <ESC>
autocmd BufNewFile *.tex :normal i\documentclass{article}^M\usepackage[koi8-r]{inputenc}^M\usepackage[russian]{babel}^M\begin{document}^M^M\end{document}^[k 
au BufRead .article.* .,$!~/bin/fq
au BufNewFile *.html :normal i<HTML><HEAD>^M<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=koi8-r">^M<TITLE></TITLE>^M</HEAD><BODY>^M^M</BODY>^M</HTML>^[4k^f>l
set wm=8
set backupdir=~/vim_backup
syntax on
"лЕМЧ ЙНДХПНБНЙ
set wildmenu
set wcm=<Tab>
menu Encoding.koi8-r   :e ++enc=koi8-r<CR>
menu Encoding.windows-1251 :e ++enc=cp1251<CR>
menu Encoding.ibm-866      :e ++enc=ibm866<CR>
menu Encoding.utf-8        :e ++enc=utf-8 <CR>
menu Encoding.iso8859-5        :e ++enc=iso8859-5 <CR>
map <F8> :emenu Encoding.<TAB>
"to read man inside vim
runtime ftplugin/man.vim
"to read info
source ~/.vim/info.vim
command Html source $VIMRUNTIME/syntax/2html.vim