Created
July 19, 2011 16:39
-
-
Save esperia/1093013 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 history=100 | |
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 showtabline=2 | |
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 | |
" ■や●などを全角表示 | |
" http://blog.kaihatsubu.com/?p=1989 | |
if exists('&ambiwidth') | |
set ambiwidth=double | |
endif | |
" ----------------------------------------- | |
" vimプラグイン管理 | |
filetype off | |
set rtp+=~/.vim/vundle.git/ | |
call vundle#rc() | |
" original repos on github | |
" Bundle 'Shougo/unite.vim' | |
" Bundle 'Shougo/vimshell' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'Shougo/neocomplcache' | |
" Bundle 'basyura/jslint.vim' | |
Bundle 'tyru/open-browser.vim' | |
Bundle 'IndentAnything' | |
Bundle 'thinca/quickrun.vim' | |
" Bundle 'rails.vim' | |
" Bundle 'git://git.wincent.com/command-t.git' | |
" The is syntax file for vim. no plugin. ---- | |
" Bundle 'cakebaker/scss-syntax.vim' | |
filetype plugin on | |
" filetype plugin indent off | |
" ----------------------------------------- | |
" jslint.vim ---- | |
" 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 = { | |
\ 'go': { | |
\ 'command': '6g', | |
\ 'exec': ['6g %s', '6l -o %s:p:r %s:p:r.8', '%s:p:r %a', 'rm -f %s:p:r'] | |
\ } | |
\} | |
" ------------ | |
" http://d.hatena.ne.jp/tyru/20110710/tenuki | |
command! | |
\ TOhtmlAndBrowse | |
\ call s:TOhtmlAndBrowse() | |
function! s:TOhtmlAndBrowse() | |
TOhtml | |
file `=tempname()` | |
write | |
let save = g:openbrowser_open_filepath_in_vim | |
let g:openbrowser_open_filepath_in_vim = 0 | |
try | |
OpenBrowser file://% | |
finally | |
let g:openbrowser_open_filepath_in_vim = save | |
endtry | |
sleep 1 | |
call delete(expand('%')) | |
endfunction | |
" ----------------------------------------- | |
"set dictionary=.vim/dict/javascript.dict | |
autocmd FileType javascript :set dictionary=.vim/dict/javascript.dict | |
autocmd BufRead *.go :colorscheme go | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment