scriptencoding=utf-8
"set mouse=a
set tags=./tags,../tags,../../tags,../../../tags,tags
function! Komment()
if getline(".") =~ '\/\*'
let hls=@/
s/^\/\*//
s/*\/$//
let @/=hls
else
let hls=@/
s/^/\/*/
s/$/*\//
let @/=hls
endif
endfunction
function! C_comment()
let hls=@/
s/^/\/\//
let @/=hls
endfunction
function! C2_comment()
let hls=@/
s/^/"/
let @/=hls
endfunction
function! C3_comment()
let hls=@/
s/^/#/
let @/=hls
endfunction
function! HTML_comment()
let hls=@/
s/^//
let @/=hls
endfunction
function! UNcomment()
let hls=@/
if getline(".") =~ '\/\/'
s/^\/\/// "for c
elseif getline(".") =~ '\"'
s/^"//
elseif getline(".") =~ '#'
s/^#//
elseif getline(".") =~ '#$'
s/^#$/$/
endif
let @/=hls
endfunction
map ,/ :call C_comment()
map ,\ :call Komment()
map ," :call C2_comment()
map ,# :call C3_comment()
map ,< :call HTML_comment()
map ,c :call UNcomment()
"colorscheme torte
"colorscheme default
"colorscheme delek
set nu
set hlsearch
set nocompatible
set backspace=2
set autoindent
"set cindent
set smartindent
set textwidth=90
set nowrapscan
set nobackup
set novisualbell
set nojoinspaces
set ruler
set tabstop=4
set shiftwidth=4
set keywordprg=man\ -a
set showcmd
set showmatch
set ignorecase
set incsearch
set autowrite
"set linespace=2
set linespace=1
set title
set keywordprg=wdic
"set statusline=\ %<%l:%v\ [%P]%=%a\ %h%m%r\ %F\
set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P
"set expandtab
set wildmenu
set laststatus=2
set matchpairs+=<:>
syntax on
" for programming
set formatoptions=qro
set showmatch
set foldmethod=marker foldmarker={{{,}}}
" dictionary
autocmd FileType perl :set dictionary=$HOME/vim71/runtime/syntax/perl.vim
autocmd FileType cgi :set dictionary=$HOME/vim71/runtime/syntax/perl.vim
autocmd FileType c :set dictionary=$HOME/vim71/runtime/syntax/c.vim
autocmd FileType sh :set dictionary=$HOME/vim71/runtime/syntax/shell.vim
autocmd FileType html :set dictionary=$HOME/vim71/runtime/syntax/html.vim
autocmd FileType php :set dictionary=$HOME/vim71/runtime/syntax/php.vim
autocmd FileType sql :set dictionary=$HOME/vim71/runtime/syntax/sql.vim
highlight NOTE1 cterm=bold ctermfg=Magenta guibg=Yellow guifg=Magenta
"match NOTE1 /NOTE/
au BufNew,BufRead * match NOTE1 /NOTE/
highlight TODO1 cterm=bold ctermfg=Magenta guibg=Blue guifg=Yellow
au BufNew,BufRead * match TODO1 /TODO/
autocmd BufRead *.mxml set filetype=mxml syntax=mxml
"" Jeff's cscope settings
"if has("cscope")
"" set csprg=/usr/bin/cscope
"set csprg=~/bin/cscope
"set csto=0
"set cst
"set nocsverb
"" add any database in current directory
"if filereadable("cscope.out")
"cs add cscope.out
"" else add database pointed to by environment
"elseif $CSCOPE_DB != ""
"cs add $CSCOPE_DB
"endif
"set csverb
"
"" Using 'CTRL-\' then a search type makes the vim window
"" "shell-out", with search results displayed on the bottom
"
"nmap s :cs find s =expand("")
"nmap g :cs find g =expand("")
"nmap c :cs find c =expand("")
"nmap t :cs find t =expand("")
"nmap e :cs find e =expand("")
"nmap f :cs find f =expand("")
"nmap i :cs find i ^=expand("")$
"nmap d :cs find d =expand("")
"
"" Using 'CTRL-spacebar' then a search type makes the vim window
"" split horizontally, with search result displayed in
"" the new window.
"
"nmap s :scs find s =expand("")
"nmap g :scs find g =expand("")
"nmap c :scs find c =expand("")
"nmap t :scs find t =expand("")
"nmap e :scs find e =expand("")
"nmap f :scs find f =expand("")
"nmap i :scs find i ^=expand("")$
"nmap d :scs find d =expand("")
"
"" Hitting CTRL-space *twice* before the search type does a vertical
"" split instead of a horizontal one
"
"nmap s :vert scs find s =expand("")
"nmap g :vert scs find g =expand("")
"nmap c :vert scs find c =expand("")
"nmap t :vert scs find t =expand("")
"nmap e :vert scs find e =expand("")
"nmap i :vert scs find i ^=expand("")$
"nmap d :vert scs find d =expand("")
"endif
highlight NOTE1 cterm=bold ctermfg=Magenta guibg=Yellow guifg=Magenta
"match NOTE1 /NOTE/
au BufNew,BufRead * match NOTE1 /NOTE/
highlight TODO1 cterm=bold ctermfg=Magenta guibg=Blue guifg=Yellow
au BufNew,BufRead * match TODO1 /TODO/
highlight SUNINNO1 cterm=bold ctermfg=Magenta guibg=Blue guifg=Yellow
au BufNew,BufRead * match SUNINNO1 /SUNINNO/
autocmd BufRead *.mxml set filetype=mxml syntax=mxml
set nolist
set listchars=tab:$_,trail:-,nbsp:%,extends:>,precedes:<
"set listchars=tab:^_,trail:-,nbsp:%,extends:>,precedes:<
"set listchars=tab:»·,eol:¬,trail:.,nbsp:.,extends:#,precedes:<
set encoding=utf-8
set fileencoding=utf-8
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" Installing plugins to /home/user/.vim/bundle
"Plugin 'VundleVim/Vundle.vim'
Plugin 'Source-Explorer-srcexpl.vim'
Plugin 'AutoComplPop'
Plugin 'SrcExpl'
Plugin 'The-NERD-tree'
" map nt :NERDTreeToggle
Plugin 'airblade/vim-gitgutter'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'nanotech/jellybeans.vim'
Plugin 'desert-warm-256'
" Plugin 'ctrlp'
"Helptags
call vundle#end()
"AirlineTheme term
let g:airline_theme='term'
colorscheme desert-warm-256
"set mouse=a
set tags=./tags,../tags,../../tags,../../../tags,tags
function! Komment()
if getline(".") =~ '\/\*'
let hls=@/
s/^\/\*//
s/*\/$//
let @/=hls
else
let hls=@/
s/^/\/*/
s/$/*\//
let @/=hls
endif
endfunction
function! C_comment()
let hls=@/
s/^/\/\//
let @/=hls
endfunction
function! C2_comment()
let hls=@/
s/^/"/
let @/=hls
endfunction
function! C3_comment()
let hls=@/
s/^/#/
let @/=hls
endfunction
function! HTML_comment()
let hls=@/
s/^//
let @/=hls
endfunction
function! UNcomment()
let hls=@/
if getline(".") =~ '\/\/'
s/^\/\/// "for c
elseif getline(".") =~ '\"'
s/^"//
elseif getline(".") =~ '#'
s/^#//
elseif getline(".") =~ '#$'
s/^#$/$/
endif
let @/=hls
endfunction
map ,/ :call C_comment()
map ,\ :call Komment()
map ," :call C2_comment()
map ,# :call C3_comment()
map ,< :call HTML_comment()
map ,c :call UNcomment()
"colorscheme torte
"colorscheme default
"colorscheme delek
set nu
set hlsearch
set nocompatible
set backspace=2
set autoindent
"set cindent
set smartindent
set textwidth=90
set nowrapscan
set nobackup
set novisualbell
set nojoinspaces
set ruler
set tabstop=4
set shiftwidth=4
set keywordprg=man\ -a
set showcmd
set showmatch
set ignorecase
set incsearch
set autowrite
"set linespace=2
set linespace=1
set title
set keywordprg=wdic
"set statusline=\ %<%l:%v\ [%P]%=%a\ %h%m%r\ %F\
set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P
"set expandtab
set wildmenu
set laststatus=2
set matchpairs+=<:>
syntax on
" for programming
set formatoptions=qro
set showmatch
set foldmethod=marker foldmarker={{{,}}}
" dictionary
autocmd FileType perl :set dictionary=$HOME/vim71/runtime/syntax/perl.vim
autocmd FileType cgi :set dictionary=$HOME/vim71/runtime/syntax/perl.vim
autocmd FileType c :set dictionary=$HOME/vim71/runtime/syntax/c.vim
autocmd FileType sh :set dictionary=$HOME/vim71/runtime/syntax/shell.vim
autocmd FileType html :set dictionary=$HOME/vim71/runtime/syntax/html.vim
autocmd FileType php :set dictionary=$HOME/vim71/runtime/syntax/php.vim
autocmd FileType sql :set dictionary=$HOME/vim71/runtime/syntax/sql.vim
highlight NOTE1 cterm=bold ctermfg=Magenta guibg=Yellow guifg=Magenta
"match NOTE1 /NOTE/
au BufNew,BufRead * match NOTE1 /NOTE/
highlight TODO1 cterm=bold ctermfg=Magenta guibg=Blue guifg=Yellow
au BufNew,BufRead * match TODO1 /TODO/
autocmd BufRead *.mxml set filetype=mxml syntax=mxml
"" Jeff's cscope settings
"if has("cscope")
"" set csprg=/usr/bin/cscope
"set csprg=~/bin/cscope
"set csto=0
"set cst
"set nocsverb
"" add any database in current directory
"if filereadable("cscope.out")
"cs add cscope.out
"" else add database pointed to by environment
"elseif $CSCOPE_DB != ""
"cs add $CSCOPE_DB
"endif
"set csverb
"
"" Using 'CTRL-\' then a search type makes the vim window
"" "shell-out", with search results displayed on the bottom
"
"nmap s :cs find s =expand("")
"nmap g :cs find g =expand("")
"nmap c :cs find c =expand("")
"nmap t :cs find t =expand("")
"nmap e :cs find e =expand("")
"nmap f :cs find f =expand("")
"nmap i :cs find i ^=expand("")$
"nmap d :cs find d =expand("")
"
"" Using 'CTRL-spacebar' then a search type makes the vim window
"" split horizontally, with search result displayed in
"" the new window.
"
"nmap s :scs find s =expand("")
"nmap g :scs find g =expand("")
"nmap c :scs find c =expand("")
"nmap t :scs find t =expand("")
"nmap e :scs find e =expand("")
"nmap f :scs find f =expand("")
"nmap i :scs find i ^=expand("")$
"nmap d :scs find d =expand("")
"
"" Hitting CTRL-space *twice* before the search type does a vertical
"" split instead of a horizontal one
"
"nmap s :vert scs find s =expand("")
"nmap g :vert scs find g =expand("")
"nmap c :vert scs find c =expand("")
"nmap t :vert scs find t =expand("")
"nmap e :vert scs find e =expand("")
"nmap i :vert scs find i ^=expand("")$
"nmap d :vert scs find d =expand("")
"endif
highlight NOTE1 cterm=bold ctermfg=Magenta guibg=Yellow guifg=Magenta
"match NOTE1 /NOTE/
au BufNew,BufRead * match NOTE1 /NOTE/
highlight TODO1 cterm=bold ctermfg=Magenta guibg=Blue guifg=Yellow
au BufNew,BufRead * match TODO1 /TODO/
highlight SUNINNO1 cterm=bold ctermfg=Magenta guibg=Blue guifg=Yellow
au BufNew,BufRead * match SUNINNO1 /SUNINNO/
autocmd BufRead *.mxml set filetype=mxml syntax=mxml
set nolist
set listchars=tab:$_,trail:-,nbsp:%,extends:>,precedes:<
"set listchars=tab:^_,trail:-,nbsp:%,extends:>,precedes:<
"set listchars=tab:»·,eol:¬,trail:.,nbsp:.,extends:#,precedes:<
set encoding=utf-8
set fileencoding=utf-8
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" Installing plugins to /home/user/.vim/bundle
"Plugin 'VundleVim/Vundle.vim'
Plugin 'Source-Explorer-srcexpl.vim'
Plugin 'AutoComplPop'
Plugin 'SrcExpl'
Plugin 'The-NERD-tree'
" map
Plugin 'airblade/vim-gitgutter'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'nanotech/jellybeans.vim'
Plugin 'desert-warm-256'
" Plugin 'ctrlp'
"Helptags
call vundle#end()
"AirlineTheme term
let g:airline_theme='term'
colorscheme desert-warm-256
Comments