我的Vim设置

Category : Vim

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
"
"
" Created by David Shieh
" E-mail : mykingheaven@gmail.com
" blog : kingheaven.alwaysdata.net
"
" created: 2009-02-06 14:03
"
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Get out of VI's compatible mode..
set nocompatible

"Sets how many lines of history VIM har to remember
set history=400

"Enable filetype plugin
filetype plugin on
filetype indent on

"Set to auto read when a file is changed from the outside
set autoread

"Have the mouse enabled all the time:
set mouse=a

"Set mapleader
let mapleader = ","
let g:mapleader = ","

"Fast save and quit
nmap <leader>w :w!<cr>
nmap <leader>q :q!<cr>
nmap <leader>f :find<cr>

source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Colors and Fonts
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Enable syntax hl
syntax enable

"Set font to dejaVu 10pt
set guifont=dejaVu\ Sans\ MONO\ 10

"Set the colorscheme
colorscheme desert
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Files and backups
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Turn backup off
set nobackup
set nowb
set noswapfile


"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Folding
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Enable folding, I find it very useful
set nofen
set fdl=0


"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text options
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set expandtab
set shiftwidth=4

au FileType html,python,vim,javascript,php,tpl setl shiftwidth=4
au FileType html,python,vim,javascript,php,tpl setl tabstop=4

set smarttab
set lbr
set tw=500

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Indent
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Auto indent
set ai

"Smart indet
set si

"C-style indeting
set cindent

"Wrap lines
set wrap

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => VIM userinterface
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Set 7 lines to the curors - when moving vertical..
set so=7

"Turn on WiLd menu
set wildmenu

"Always show current position
set ruler

"The commandbar is 2 high
set cmdheight=1

"Show line number
set nu

"Do not redraw, when running macros.. lazyredraw
set lz

"Change buffer - without saving
set hid

"Set backspace
set backspace=eol,start,indent

"Bbackspace and cursor keys wrap to
set whichwrap+=<,>,h,l

"Ignore case when searching
set ignorecase
set incsearch

"Set magic on
set magic

"No sound on errors.
set noerrorbells
set novisualbell
set t_vb=

"show matching bracets
set showmatch

"How many tenths of a second to blink
set mat=2
"Highlight search things
set hlsearch

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => file encoding
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set encoding=utf-8
set fileencodings=utf-8

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => NerdTree
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
map <F10> :NERDTreeToggle<CR>

Tags :  Linux  Vim  Editor 

Published by 2009-01-01 18:57:00 | Views : 310 | Comments : 210


Comments

nxxgznzqbhn said :

aYEZMq nlcdxrutbmwu, [url=http://aypqscouabjh.com/]aypqscouabjh[/url], [link=http://hodwmvrhqoak.com/]hodwmvrhqoak[/link], http://tzixynajjksq.com/

Published by : 2009-10-24 16:53:23

Aashmore said :

There are a number of accessories that can be useful to people who play golf. car rental dwohuu

Published by : 2009-11-21 04:45:25

htmlbeispiel1 said :

Erection of penis is an essential without it love making is not possible. order tramadol ykuhu buy tramadol fgazk cialis online 228962

Published by : 2009-12-09 22:27:19

ahtis_ausstellung said :

accutane 963283 ambien online 8OOO buy valium =-PP

Published by : 2009-12-10 00:15:05

Pharmf795 said :

Very nice site! cheap viagra

Published by : 2009-12-22 18:05:08

Pharme117 said :

Very nice site! [url=http://ypxaieo.com/rrqasoo/2.html]cheap cialis[/url]

Published by : 2009-12-22 18:05:12

Pharme69 said :

Very nice site! cheap cialis http://ypxaieo.com/rrqasoo/4.html

Published by : 2009-12-22 18:05:15

Pharmc669 said :

Very nice site!

Published by : 2009-12-22 18:05:16

Pharma574 said :

Very nice site! cheap viagra , cheap viagra , cheap viagra , cheap viagra , cheap viagra ,

Published by : 2009-12-22 18:05:30

Pharmb430 said :

Very nice site! cheap viagra , cheap viagra , cheap viagra , cheap viagra , cheap viagra , cheap viagra , cheap viagra , cheap viagra , cheap viagra , cheap viagra ,

Published by : 2009-12-22 18:05:35

 *(required)

 (won't be displayed)