Created
January 25, 2012 17:47
-
-
Save esperia/1677554 to your computer and use it in GitHub Desktop.
自分用のバックアップです。汚くてすみません…
This file contains hidden or 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
set nocompatible | |
set number | |
syntax on | |
set tabstop=4 | |
set showtabline=1 | |
set shiftwidth=4 | |
set history=255 | |
set ignorecase | |
set wrapscan | |
"set title | |
set ruler | |
set laststatus=2 | |
set showcmd | |
set showmatch | |
set matchtime=1 | |
set hlsearch | |
"set shortmess+=1 | |
set noexpandtab | |
set wildmode=list,full | |
set fileformat=unix | |
" set cursorline | |
" highlight CursorLine guibg=#75dc50 | |
set fileencodings=ucs-bom,utf-8,iso-2022-jp,sjis,cp932,euc-jp,cp20932 | |
"colorscheme torte | |
"colorscheme elflord | |
"colorscheme solarized | |
" ■や●などを全角表示 | |
" http://blog.kaihatsubu.com/?p=1989 | |
if exists('&ambiwidth') | |
set ambiwidth=double | |
endif | |
" ----------------------------------------- | |
"set dictionary=.vim/dict/javascript.dict | |
"autocmd FileType javascript :set dictionary=.vim/dict/javascript.dict | |
autocmd BufRead *.go :colorscheme go | |
nmap <C-N> :tabn<CR> | |
nmap <C-P> :tabp<CR> | |
" ----------------------------------------- | |
" vimプラグイン管理 | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'Shougo/unite.vim' | |
"Bundle 'Shougo/vimshell' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'Shougo/neocomplcache' | |
Bundle 'tyru/open-browser.vim' | |
Bundle 'go.vim' | |
Bundle 'IndentAnything' | |
Bundle 'thinca/vim-quickrun' | |
Bundle 'mattn/gist-vim' | |
Bundle 'mattn/zencoding-vim' | |
Bundle 'scratch.vim' | |
Bundle 'basyura/jslint.vim' | |
Bundle 'tpope/vim-surround' | |
" Bundle 'rails.vim' | |
filetype plugin indent on | |
" --------------- | |
" gjslint.vim ---- | |
"autocmd QuickfixCmdPost make copen | |
" --------------- | |
" jslint.vim ---- | |
" let g:JSLintHighlightErrorLine = 0 | |
function! s:javascript_filetype_settings() | |
autocmd BufLeave <buffer> call jslint#clear() | |
autocmd BufWritePost <buffer> call jslint#check() | |
autocmd CursorMoved <buffer> call jslint#message() | |
endfunction | |
autocmd FileType javascript call s:javascript_filetype_settings() | |
" --------------- | |
" openbrowser.vim | |
nmap gw <Plug>(openbrowser-smart-search) | |
nmap <Leader>w <Plug>(openbrowser-open) | |
" ------------ | |
" quickrun.vim | |
let g:quickrun_config = {} | |
" let g:quickrun_config = { | |
" \ 'go': { | |
" \ 'command': '6g', | |
" \ 'exec': ['6g %s', '6l -o %s:p:r %s:p:r.6', '%s:p:r %a', 'rm -f %s:p:r'] | |
" \ } | |
" \} | |
let g:quickrun_config['markdown'] = { | |
\ 'outputter': 'browser' | |
\ } | |
" ------------ | |
" neocomplcache | |
" Disable AutoComplPop. | |
let g:acp_enableAtStartup = 0 | |
" Use neocomplcache. | |
let g:neocomplcache_enable_at_startup = 1 | |
" Use smartcase. | |
let g:neocomplcache_enable_smart_case = 1 | |
" Use camel case completion. | |
let g:neocomplcache_enable_camel_case_completion = 1 | |
" Use underbar completion. | |
let g:neocomplcache_enable_underbar_completion = 1 | |
" Set minimum syntax keyword length. | |
let g:neocomplcache_min_syntax_length = 3 | |
let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*' | |
" Define dictionary. | |
let g:neocomplcache_dictionary_filetype_lists = { | |
\ 'default' : '', | |
\ 'vimshell' : $HOME.'/.vimshell_hist', | |
\ 'scheme' : $HOME.'/.gosh_completions' | |
\ } | |
" Define keyword. | |
if !exists('g:neocomplcache_keyword_patterns') | |
let g:neocomplcache_keyword_patterns = {} | |
endif | |
let g:neocomplcache_keyword_patterns['default'] = '\h\w*' | |
" Shell like behavior(not recommended). | |
"set completeopt+=longest | |
"let g:neocomplcache_enable_auto_select = 1 | |
"let g:neocomplcache_disable_auto_complete = 1 | |
"inoremap <expr><TAB> pumvisible() ? "\<Down>" : "\<TAB>" | |
"inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>" | |
" Enable omni completion. | |
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS | |
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags | |
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS | |
"autocmd FileType python setlocal omnifunc=pythoncomplete#Complete | |
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags | |
"" Enable heavy omni completion. | |
"if !exists('g:neocomplcache_omni_patterns') | |
" let g:neocomplcache_omni_patterns = {} | |
"endif | |
"let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::' | |
""autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment