~ inty /.vimrc

set nocompatible
behave xterm

colorscheme dante

"autocmd BufRead,BufNewFile *
"        \ if b:current_syntax == 'php' |
"        \ colorscheme professional |
"        \ else |
"        \ colorscheme dante |
"        \ endif

"noremap <silent> <F1> :bp<CR>
"noremap <silent> <F2> :bn<CR>

"noremap <silent> <F9> :BufExplorer<CR>
"noremap <silent> <F10> :TlistToggle<CR>
"noremap <silent> <F11> :cal VimCommanderToggle()<CR> 
"noremap <silent> <F10> :VSTreeExplore<CR>
"noremap <silent> <F8> :VikiHome<CR>
"noremap <silent> <F10> :NERDTreeToggle<CR>
"noremap <silent> <F12> :Calendar<CR>

"inoremap <C-P> <ESC>:call PhpDocSingle()<CR>i
"nnoremap <C-P> :call PhpDocSingle()<CR>
"vnoremap <C-P> :call PhpDocRange()<CR> 

noremap <C-D> :call EnhancedCommentify('yes', 'guess')<CR>

"noremap <C-G> :SQLUFormatter<CR>

"noremap <C-T> :tabnew<CR>
"noremap <C-I> :tabn<CR>
"noremap <C-U> :tabp<CR>

noremap <C-J> :bprevious<CR>
noremap <C-K> :bnext<CR>

map <silent>  q :1b<CR>
map <silent>  w :2b<CR>
map <silent>  e :3b<CR>
map <silent>  r :4b<CR>
map <silent>  t :5b<CR>
map <silent>  y :6b<CR>
map <silent>  u :7b<CR>
map <silent>  i :8b<CR>
map <silent>  o :9b<CR>
map <silent>  p :10b<CR>

map <MiddleMouse> <Nop>
imap <MiddleMouse> <Nop>"

map _F ma[[k"xyy`a:echo @x<CR>

au BufReadCmd   *.jar,*.war,*.ear,*.sar,*.rar,*.xpi        call zip#Browse(expand("<amatch>"))

autocmd BufNewFile,BufRead *.as set filetype=actionscript
autocmd BufNewFile,BufRead *.class set filetype=php
autocmd BufNewFile,BufRead *.csv source ~/.vim/csv.vim 

if has("autocmd")
  augroup module
    autocmd BufRead *.module set filetype=php
  augroup END
endif


let php_sql_query = 0
let php_baselib = 1
let php_htmlInStrings = 1
let php_oldStyle = 0
let php_asp_tags = 0 
let php_noShortTags = 0
let php_parent_error_close = 1
let php_parent_error_open = 1
let php_folding = 1
let php_sync_method = -1

let g:load_doxygen_syntax=1
let g:syntax_extra_php='doxygen'
let g:syntax_extra_inc='doxygen'

let g:backup = 0
let g:writebackup = 0

let g:calendar_monday = 1
let b:match_words = '<body>:</body>,<div.*>:</div>'

let g:dbext_default_user = 'root'
let g:dbext_default_passwd = ''
let g:dbext_default_host = 'localhost'
let g:dbext_default_dbname = 'portal'
let g:dbext_default_type = 'mysql'

let g:bufExplorerSortBy='mru'
let g:bufExplorerOpenMode=1
let g:bufExplorerSplitHorzSize = 10

let g:treeExplVertical=1
let g:treeExplWinSize=38
let g:treeExplDirSort=1

let mapleader = ","
let maplocalleader = mapleader

set autochdir

set undolevels=5000
set scrolloff=5

set mouse=a

" Viki settings..
let g:deplatePrg = "deplate -x -X "

set undolevels=5000
set scrolloff=5

set background=dark
set showcmd
set smartindent

set mouse=a

set title

set modeline

set laststatus=2
set statusline=
set statusline+=%2*%-3.3n%0*\                " buffer number
set statusline+=%f\                          " file name
set statusline+=%h%1*%m%r%w%0*               " flags
set statusline+=\[%{strlen(&ft)?&ft:'none'}, " filetype
set statusline+=%{&encoding},                " encoding
set statusline+=%{&fileformat}]              " file format
"if filereadable(expand("$VIM/vimfiles/plugin/vimbuddy.vim"))
"    set statusline+=\ %{VimBuddy()}          " vim buddy
"endif
set statusline+=%=                           " right align
set statusline+=%2*0x%-8B\                   " current char
set statusline+=%-14.(%l,%c%V%)\ %<%P        " offset

" Nice window title
if has('title') && (has('gui_running') || &title)
    set titlestring=
    set titlestring+=%f\                     " file name
    set titlestring+=%h%m%r%w                " flags
    set titlestring+=\ -\ %{v:progname}      " program name
    set titlestring+=\ -\ %{substitute(getcwd(),\ $HOME,\ '~',\ '')}        " working directory
endif


set ignorecase    " Ignore case in search patterns
set smartcase     " Match "word" case-insensitive and "Word" case-sensitive

set display=lastline,uhex " Show the last line instead of '@'; show non-printable chars as <hex>
"set list listchars=tab:>_,trail:_,extends:+ " Show tabs, trailing spaces, long lines
set list listchars=tab:»·,trail:·,extends:¿,nbsp:¿
"set list listchars=tab:>-,trail:.,extends:>,nbsp:_

set ttyfast       " terminal connection is fast

set complete+=k   " Scan spell dictionaries for completion in addition to standard places
set infercase     " adjust case of a keyword completion match
set nojoinspaces  " Do not insert two spaces after a '.', '?' and '!' with a join command
set nrformats=hex " I seldom edit octal numbers, but very often dates like 2001-02-01

set expandtab     " expand <Tab> to spaces in Insert mode
set shiftwidth=2  " number of spaces used for each step of (auto)indent
set smarttab      " a <Tab> in an indent inserts 'shiftwidth' spaces
set softtabstop=2 " number of spaces to insert for a <Tab>

"set cursorline

"set fileencodings=iso-8859-1,us-ascii,utf-8 " automatically detected character encodings


au BufRead,BufNewFile *.tpl set filetype=smarty

"au BufRead,BufNewFile *  set filetype=txt

au Filetype smarty exec('set dictionary=/home/inty/.vim/syntax/smarty.vim')
au Filetype smarty set complete+=k

set dict+=~/.vim/dictionaries/Drupal5.0-core_functions.dict
set tags=tags;/

"let NERDChristmasTree=1
"let g:NERDTreeMapActivateNode="<CR>"

nnoremap j gj
nnoremap k gk
vnoremap j gj
vnoremap k gk
nnoremap <Down> gj
nnoremap <Up> gk
vnoremap <Down> gj
vnoremap <Up> gk
inoremap <Down> <C-o>gj
inoremap <Up> <C-o>gk

" move text between sessions
"nmap xr   :r $HOME/.vimxfer<CR>
"nmap xw   :'a,.w! $HOME/.vimxfer<CR>
"vmap xr   c<esc>:r $HOME/.vimxfer<CR>
"vmap xw   :w! $HOME/.vimxfer<CR>

set spell
set hid

syntax on

if has("spell")
   set spelllang=en,sv spellfile=~/.vim/spell/en.utf-8.add,~/.vim/spell/sv.utf-8.add
endif

highlight SpellBad cterm=bold ctermfg=white ctermbg=red
highlight StatusLine cterm=bold ctermfg=white ctermbg=darkred
highlight Visual cterm=NONE ctermfg=white ctermbg=black

filetype plugin indent on

" Restore cursor position?
" Default is True - restore the position.
" Can be set to False in SetupEncoding() below;
" it restores the position itself.
let b:_goto_pos = 1

" When editing a file, always jump to the last cursor position (if saved)
autocmd BufReadPost * call RestorePosition()

function! RestorePosition()
   if !exists("b:_goto_pos") || b:_goto_pos
      if line("'\"") > 0
         if line("'\"") <= line("$")
            execute "norm `\""
         else
            execute "norm $"
         endif
      endif
   else
      let b:_goto_pos = 1
   endif
endfunction

augroup gpg
autocmd!
autocmd BufReadPre,FileReadPre *.gpg set viminfo=
autocmd BufReadPre,FileReadPre *.gpg set noswapfile
autocmd BufReadPost *.gpg :%!gpg -q -d
autocmd BufReadPost *.gpg | redraw
autocmd BufWritePre *.gpg :%!gpg --default-recipient-self -q -e -a
autocmd BufWritePost *.gpg u
autocmd VimLeave *.gpg :!clear
" For OpenSSL:
" BufReadPost: use "openssl bf -d -a"
" BufWritePre: use "openssl bf -salt -a"
augroup END

autocmd BufRead *.lyx set syntax=lyx foldmethod=syntax foldcolumn=3
autocmd BufRead *.lyx syntax sync fromstart


"turn off any existing search
if has("autocmd")
  au VimEnter * nohls
endif
"
  
Your Ad Here