|
文件: |
_vimrc_win32.zip |
大小: |
1KB |
下载: |
下载 | |
" My vim settings file
" Settings {{{
set secure nocompatible
if version >= 600
syntax enable
if version >= 700
filetype plugin indent on
else
filetype on
filetype plugin on
filetype indent on
endif
else
:finish
endif
" }}}
" }}}
" General Settings {{{
"
"Make autoindent happen
set autoindent
"Show actual cursor position
set ruler
set showcmd
set showmatch
set showmode
"Misc
set backspace=indent,eol,start
set formatoptions=croq
set number
set shiftwidth=4
set smartindent
set tabstop=4
" *always* use Unicode
set encoding=utf-8 fileencodings=
"Fix findstr for Win32
if has("win32")
set grepprg=findstr\ /R\ /S\ /N
endif
" Choose right syntax highlighting with tab completion
map :source $VIM/syntax/
" F9 toggles highlighting
map :if has("syntax_items")syntax offelsesyntax onendif
"Vim 7 specific mappings
if version >= 700
map :tabnew
map :tabclose
endif
" show status line
set ls=2
"Make no *.bak
set nobackup
" keep backup while we are editing
set writebackup
"Do not wrap text
set nowrap
" do not highlight searches
set nohlsearch
"Turn this ON when we want to debug
"set verbose=9
"General Options ends }}}
"Java settings {{{
let java_highlight_functions=1
autocmd BufRead,BufNewFile *.java set makeprg=javac\ %
"autocmd BufRead BufNewFile *.java set makeprg=ant\ -emacs
" Mark Klips as XML files (17/2/2005)
autocmd BufRead,BufNewFile *.klip set filetype=xml
" Mark Mycroft Source as XML files (17/2/2005)
autocmd BufRead,BufNewFile *.src set filetype=xml
" Reload settings file everytime its written
autocmd! bufwritepost _vimrc source $VIM/_vimrc
"Java Settings End }}}
"My color settings {{{
"
"Reset the default ones before we begin loading ours
highlight Constant NONE
highlight Delimiter NONE
highlight Directory NONE
highlight Error NONE
highlight ErrorMsg NONE
highlight Identifier NONE
highlight LineNr NONE
highlight ModeMsg NONE
highlight MoreMsg NONE
highlight NonText NONE
highlight Normal NONE
highlight PreProc NONE
highlight Question NONE
highlight Search NONE
highlight Special NONE
highlight SpecialKey NONE
highlight Statement NONE
highlight StatusLine NONE
highlight Title NONE
highlight Todo NONE
highlight Type NONE
highlight Visual NONE
highlight WarningMsg NONE
"Now put in our own colors
highlight Comment term=bold ctermfg=5 ctermbg=0 guifg=#FF005F guibg=gray
highlight Constant term=underline ctermfg=6 guifg=#FF2F8F
highlight Delimiter term=bold cterm=bold ctermfg=1 gui=bold guifg=red
highlight Directory term=bold ctermfg=DarkBlue guifg=Blue
highlight Error term=standout cterm=bold ctermbg=1 ctermfg=1 gui=bold guifg=red
highlight ErrorMsg term=standout cterm=bold ctermfg=1 gui=bold guifg=red
highlight Identifier term=underline ctermfg=3 guifg=Yellow3
highlight LineNr term=underline cterm=bold ctermfg=3 guifg=Brown
highlight ModeMsg term=bold cterm=bold ctermfg=3 ctermbg=1 guifg=yellow2 guibg=red
highlight MoreMsg term=bold cterm=bold ctermfg=2 gui=bold guifg=green
highlight NonText term=bold ctermfg=2 guifg=green3
highlight Normal ctermfg=white ctermbg=black guifg=grey90 guibg=#000020
highlight PreProc term=underline ctermfg=14 guifg=cyan
highlight Question term=standout cterm=bold ctermfg=2 gui=bold guifg=Green
highlight Search term=reverse ctermbg=2 guibg=Yellow
highlight Special term=bold ctermfg=5 guifg=SlateBlue
highlight SpecialKey term=bold ctermfg=DarkBlue guifg=Blue
"set foldmethod=indent
"colorscheme darkblue
colorscheme desert
"use our custom font
if has("gui")
set guifont=Courier_New:h16:cANSI
endif
阅读(678) | 评论(0) | 转发(0) |