Created
May 28, 2012 13:06
-
-
Save hxgdzyuyi/2819081 to your computer and use it in GitHub Desktop.
vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
runtime! debian.vim | |
syntax on | |
source ~/.vim/vimrc_vundle | |
set nocompatible | |
set noswapfile | |
set fileencodings=ucs-bom,utf-8,chinese,cp936 | |
set isk+=- | |
set list | |
set listchars=tab:▸\ ,trail:· | |
" Source a global configuration file if available | |
if filereadable("/etc/vim/vimrc.local") | |
source /etc/vim/vimrc.local | |
endif | |
au BufNewFile,BufRead *.jsm set filetype=javascript | |
au BufNewFile,BufRead *.php set filetype=php | |
au BufNewFile,BufRead *.html set filetype=mako | |
au BufNewFile,BufRead *.rb set filetype=ruby | |
colorscheme evening | |
filetype plugin indent on | |
autocmd FileType javascript set dictionary+=~/.vim/dict/javascript.dict | |
autocmd FileType javascript set dictionary+=~/.vim/dict/backbone.dict | |
autocmd FileType javascript set dictionary+=~/.vim/dict/jquery.dict | |
autocmd FileType css set dictionary=~/.vim/dict/css.dict | |
autocmd FileType php set dictionary=~/.vim/dict/php.dict | |
set autoindent | |
set cindent | |
set rnu | |
set expandtab | |
set shiftwidth=2 | |
set tabstop=2 | |
set softtabstop=2 | |
map ,n :NERDTreeToggle<CR> | |
map ,l :TlistToggle<CR> | |
if !exists("g:completekey") | |
let g:completekey = "<C-j>" "hotkey | |
endif | |
"<leader> | |
let mapleader = "," | |
au GUIEnter * simalt ~x | |
let g:SuperTabDefaultCompletionType="<C-X><C-K>" | |
inoremap ( ()<left> | |
inoremap { {}<left> | |
inoremap [ []<left> | |
inoremap " ""<left> | |
inoremap ' ''<left> | |
inoreabbrev rt return | |
inoremap <c-j> <down> | |
inoremap <c-k> <up> | |
inoremap <c-l> <right> | |
inoremap <c-c> <esc> | |
map <c-p> :tabprevious<enter> | |
map <c-n> :tabnext<enter> | |
map ,<space> :w<enter> | |
inoremap ,4 function(){}<left><enter><esc>O | |
inoremap ,,4 ,function(){}<left><enter><esc>O | |
inoremap ,v ,function(){}<left><enter><esc>O | |
nmap ,f /<c-r><c-w>:<enter> | |
autocmd InsertLeave * write | |
set matchpairs=(:),{:},[:],<:> | |
set whichwrap=b,s,<,>,[,] | |
set backspace=indent,eol,start | |
let tlist_mako_settings = 'mako;n:name' | |
au BufNewFile,BufRead *.php set filetype=php | |
let tlist_Ctags_Cmd = '/usr/bin/ctags' | |
let g:ackprg="ack-grep -H --nocolor --nogroup --column" | |
set colorcolumn=80 | |
let b:jslint_disabled=1 | |
hi ColorColumn ctermbg=gray guibg=gray | |
set incsearch | |
" 通过 xclip 复制粘贴 | |
vmap <F6> :!xclip -f -sel clip<CR> | |
map <F7> :-1r !xclip -o -sel clip<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment