syntax on command HTML so $VIMRUNTIME/syntax/html.vim set encoding=utf8 set gfn=Fixedsys\ Excelsior\ 3.01:h16.00 "set gfw=unifont:h16 set gfw=Sinonome\ Gothic:h16 set noantialias set guioptions=agiMttr set ruler set shiftwidth=4 set smartindent set smarttab set tabstop=4 set visualbell set lazyredraw set backspace=indent,eol,start set transparency=0 "set guicursor=n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:hor15-blinkon0-Cursor/lCursor,r-cr:hor30-Cursor/lCursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175 set guicursor=n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver15-blinkon0-Cursor/lCursor,r-cr:hor30-Cursor/lCursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175 set linespace=1 set imd "colorscheme ps_color "colorscheme ir_black "colorscheme twilight "colorscheme jellybeans colorscheme my_jellybeans_1.2 set directory=~/.vim/swap set updatetime=100 "for taglist runtime ftplugin/man.vim runtime vimoutliner/ftplugin/otl.vim set shell=/bin/bash\ -l set cursorline set number set incsearch set hlsearch set ignorecase set smartcase " Ignore case when searching lowercase set wrap set linebreak " Wrap at word imap â â imap â â imap /' ׳ imap /" ״ imap /alef ʾ imap /ALEF ʔ imap /ajin ʿ imap /AJIN ʕ imap /EGa ꜥ imap /EGA ꜣ imap /EGi ı͗ imap :tabn map :tabn imap :tabp map :tabp map O " awesome, inserts new line without going into insert mode map o source ~/.vim/macros/table.vim autocmd FileType html,xml,xsl source ~/.vim/scripts/closetag.vim "imap :set invfua "map :set invfu imap \L{}a map a "imap \begin{tabular}{}\end{tabular}ka "map a "let g:Tex_CompileRule_pdf="xelatex -interaction=nonstopmode $*" let g:Tex_CompileRule_pdf="xelatex -interaction=nonstopmode -output-driver=xdvipdfmx $*" let g:Tex_MultipleCompileFormats="pdf" "let g:Tex_ViewRule_pdf="/usr/bin/open /Applications/Skim.app" let g:Tex_ViewRuleComplete_pdf = '/usr/bin/open /Applications/Skim.app $*.pdf' let g:Tex_SmartKeyQuote = "0" let g:tex_flavor='latex' " REQUIRED. This makes vim invoke latex-suite when you open a tex file. set nocp filetype plugin on " IMPORTANT: grep will sometimes skip displaying the file name if you " search in a singe file. This will confuse latex-suite. Set your grep " program to alway generate a file-name. set grepprg=grep\ -nH\ $* " OPTIONAL: This enables automatic indentation as you type. filetype indent on set allowrevins map :set invrl imap :set invrla map ק e map ר r map א t map ט y map ו u map ן i map ם o map פ p map ש a map ד s map ג d map כ f map ע g map י h map ח j map ל k map ך l map ף ; map ז z map ס x map ב c map ה v map נ b map מ n map צ m fun! FixIslenska() execute ":%s/â/á/g" execute ":%s/ê/é/g" execute ":%s/î/í/g" execute ":%s/ô/ó/g" execute ":%s/û/ú/g" execute ":%s/ŷ/ý/g" execute ":%s/9/ǫ/g" execute ":%s/@/Ǫ/g" execute ":%s/ö/ǫ/g" execute ":%s/Ö/Ǫ/g" endfun function! InsertCloseTag() if &filetype == 'html' " list of tags which shouldn't be closed: let UnaryTags = ' Area Base Br DD DT HR Img Input LI Link Meta P Param ' " remember current position: normal mz " loop backwards looking for tags: let Found = 0 while Found == 0 " find the previous <, then go forwards one character and grab the first " character plus the entire word: execute "normal ?\\l" normal "zyl let Tag = expand('') " if this is a closing tag, skip back to its matching opening tag: if @z == '/' execute "normal ?\" . Tag . "\" " if this is a unary tag, then position the cursor for the next " iteration: elseif match(UnaryTags, ' ' . Tag . ' ') > 0 normal h " otherwise this is the tag that needs closing: else let Found = 1 endif endwhile " not yet found match " create the closing tag and insert it: let @z = '' normal `z if col('.') == 1 normal "zP else normal "zp endif else " filetype is not HTML echohl ErrorMsg echo 'The InsertCloseTag() function is only intended to be used in HTML ' . \ 'files.' sleep echohl None endif " check on filetype endfunction " InsertCloseTag()