syntax on
set cin
set noai
set ru
set showcmd
set bs=2
set nobackup
set textwidth=80
set wrap
set wrapmargin=79
"set nowrap
set t_Co=256
set ignorecase
set hls
hi normal guifg=lightgray guibg=black
colorscheme Wombat256
"pydiction
filetype plugin on
let g:pydiction_location = '/home/command/.vim/after/ftplugin/pydiction/complete-dict'
"NERDTree
nnoremap <silent> <F5> :NERDTree<CR>
"---
" highlight cursor line
"---
set cursorline
set cursorcolumn
"highlight cursorline guibg=blue
"highlight cursorcolumn guibg=blue
"---
" erlang settings:
"--—
let g:erlangHighlightBif=1
let g:erlangFold=1
"--
" python settings:
"--
let python_highlight_all = 1
set tabstop=4 "4 space tab
set shiftwidth=4 "The amount to block indent when using < and >
set smarttab "Uses shiftwidth instead of tabstop at start of lines
set softtabstop=4 "Causes backspace to delete 4 spaces = converted <TAB>
"---
"for javascript indent
"---
au FileType javascript so ~/.vim/indent/javascript.vim
"---
"for Workspace Manager
"---
let Ws_Inc_Winwidth=0
"--
"for tab
"--
map tn :tabnext<CR>
map tp :tabprev<CR>
map te :tabnew
map tc :tabclose<CR>
"--—
" highlight customer syntax
"--—
syntax match OOPS /\OOPS!/
hi OOPS ctermfg=Red
hi OOPS guifg=red
"for trace code
nmap ,, :vnew %<CR>
nmap ,. :tabe %<CR>
"—
"for taglist
"—
nnoremap <F12> : TlistToggle<CR>
let Tlist_Inc_Winwidth=0
"for paste mode
map <F9> :call Paste_on_off()<CR>i
set pastetoggle=<F9>
let paste_mode = 0
func! Paste_on_off()
if g:paste_mode == 0
set paste
let g:paste_mode = 1
else
set nopaste
let g:paste_mode = 0
endif
return
endfunc
if has("autocmd")
autocmd BufRead,BufNewFile *.py set kp=pydoc
autocmd BufRead,BufNewFile *.conf,.* set nocin noai
autocmd BufRead,BufNewFile *.py set expandtab "Replaces a <TAB> with spaces?ore portable
autocmd BufRead,BufNewFile *.cpp set expandtab "Replaces a <TAB> with spaces?ore portable
autocmd BufRead,BufNewFile *.c set expandtab "Replaces a <TAB> with spaces?ore portable
autocmd BufRead,BufNewFile *.h set expandtab "Replaces a <TAB> with spaces?ore portable
autocmd BufRead,BufNewFile *.erl set expandtab "Replaces a <TAB> with spaces?ore portable
endif
"set fileencodings=big5,ucs-bom,utf-8,big5,latin1
"set encoding=utf-8
"set fileencoding=ucs-bom,utf-8,default
"set termencoding=big5
set foldmethod=indent "marker
" status bar
set laststatus=2
set statusline=%4*%<\ %1*[%F]
set statusline+=%4*\ %5*[%{&encoding}, " encoding
set statusline+=%{&fileformat}]%m " file format
set statusline+=%4*%=\ %6*%y%4*\ %3*%l%4*,\ %3*%c%4*\ \<\ %2*%P%4*\ \>
highlight User1 ctermfg=red
highlight User2 term=underline cterm=underline ctermfg=green
highlight User3 term=underline cterm=underline ctermfg=yellow
highlight User4 term=underline cterm=underline ctermfg=white
highlight User5 ctermfg=cyan
highlight User6 ctermfg=white