Last active
June 6, 2016 08:01
-
-
Save Imfloppy/06cd482a3310983d6e2d 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
| tags | |
| tmp | |
| .git/ | |
| node_modules/ |
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
| # Useful aliases {{{ | |
| alias e="$EDITOR" | |
| alias g="git" | |
| alias ..="cd .." | |
| alias _='sudo' | |
| alias ll="ls -al" | |
| alias sleep='gsleep' | |
| alias cdownloads="cd ~/Downloads" | |
| alias cdesktop="cd ~/Desktop" | |
| alias reload="exec $SHELL -l" | |
| alias httpserver="python3 -m http.server" | |
| alias week='date +%V' | |
| alias vmrun='/Applications/VMware\ Fusion.app/Contents/Library/vmrun' | |
| alias b="bundle" | |
| alias migrate="rake db:migrate db:rollback && rake db:migrate db:test:prepare" | |
| # }}} | |
| # ls {{{ | |
| alias ls='ls -GF' | |
| if (( $+commands[gls] )); then | |
| alias ls="gls -F --color --group-directories-first" | |
| fi | |
| # }}} | |
| # OS X {{{ | |
| alias pbc='pbcopy' | |
| alias pbp='pbpaste' | |
| # }}} | |
| # Vim {{{ | |
| #() { | |
| #local vimpath='/Applications/MacVim.app/Contents/MacOS' | |
| #if [[ -x "${vimpath}/mvim" ]]; then | |
| # alias mvim="${vimpath}/mvim" | |
| # alias vim="${vimpath}/Vim $@" | |
| #fi | |
| #} | |
| # }}} | |
| # Noglob aliases {{{ | |
| alias ln='noglob ln' | |
| # }}} | |
| # vim:set ft=zsh foldmethod=marker: |
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
| user-agent = "Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0" | |
| referer = ";auto" | |
| connect-timeout = 60 | |
| progress-bar | |
| max-time = 90 | |
| verbose | |
| show-error | |
| remote-time | |
| ipv4 |
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 disassembly-flavor intel | |
| set print array on | |
| set print array-indexes on |
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
| gem: --no-document |
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 vertical-split = auto | |
| set line-graphics = utf-8 | |
| bind generic G move-last-line |
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
| COMMAND open %s |
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 encoding=utf-8 | |
| scriptencoding utf-8 | |
| " NeoBundle {{{ | |
| if 0 | endif " Note: Skip initialization for vim-tiny or vim-small. | |
| if has('vim_starting') | |
| if &compatible | |
| set nocompatible | |
| endif | |
| set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
| endif | |
| call neobundle#begin(expand('~/.vim/bundle/')) | |
| NeoBundleFetch 'Shougo/neobundle.vim' | |
| " color scheme | |
| NeoBundle 'chriskempson/base16-vim' | |
| NeoBundle 'sjl/badwolf' | |
| NeoBundle 'nanotech/jellybeans.vim' | |
| " status line | |
| NeoBundle 'vim-airline/vim-airline' | |
| NeoBundle 'vim-airline/vim-airline-themes' | |
| NeoBundle 'tpope/vim-fugitive' | |
| NeoBundle 'airblade/vim-gitgutter' | |
| NeoBundle 'vim-ruby/vim-ruby' | |
| NeoBundle 'tpope/vim-dispatch' | |
| NeoBundle 'janko-m/vim-test' | |
| let test#strategy = "dispatch" | |
| NeoBundle 'tpope/vim-surround' | |
| let g:surround_{char2nr('-')} = "<% \r %>" | |
| let g:surround_{char2nr('=')} = "<%= \r %>" | |
| let g:surround_indent = 1 | |
| NeoBundle 'ntpeters/vim-better-whitespace' | |
| NeoBundle 'ctrlpvim/ctrlp.vim' | |
| NeoBundle 'tpope/vim-surround' | |
| " Useful utilities | |
| NeoBundleLazy 'ap/vim-css-color', { | |
| \ 'autoload': { | |
| \ 'filetypes': ['css', 'less', 'sass'] | |
| \ } | |
| \ } | |
| NeoBundleLazy 'othree/yajs.vim', { | |
| \ 'autoload': { | |
| \ 'filetypes': ['javascript'] | |
| \ } | |
| \ } | |
| NeoBundle 'majutsushi/tagbar' | |
| NeoBundle 'scrooloose/syntastic' | |
| NeoBundle 'junegunn/vim-emoji' | |
| NeoBundle 'godlygeek/tabular' | |
| NeoBundle 'plasticboy/vim-markdown' | |
| NeoBundle 'pangloss/vim-javascript' | |
| NeoBundle 'kchmck/vim-coffee-script' | |
| NeoBundleLazy 'othree/html5.vim', { | |
| \ 'autoload': { | |
| \ 'filetypes': ['html'] | |
| \ } | |
| \ } | |
| NeoBundle 'tpope/vim-rails' | |
| NeoBundle 'slim-template/vim-slim' | |
| NeoBundle 'tpope/vim-endwise' | |
| NeoBundleLazy 'fatih/vim-go', { | |
| \ 'autoload': { | |
| \ 'filetypes': ['go'] | |
| \ } | |
| \ } | |
| " | |
| call neobundle#end() | |
| filetype plugin indent on | |
| NeoBundleCheck | |
| " }}} | |
| " Required {{{ | |
| syntax enable | |
| set number | |
| set numberwidth=5 | |
| set backspace=indent,eol,start | |
| set laststatus=2 | |
| set modeline | |
| set modelines=5 | |
| " }}} | |
| set tabstop=2 | |
| set shiftwidth=2 | |
| set shiftround | |
| set expandtab | |
| set listchars=tab:▸\ ,trail:·,nbsp:_ | |
| set list | |
| set splitright | |
| set splitbelow | |
| " for backup, undo and swap {{{ | |
| set nobackup | |
| set nowritebackup | |
| set noundofile | |
| set swapfile | |
| set directory=~/.vim/swapfiles// | |
| " }}} | |
| " search {{{ | |
| set incsearch | |
| set hlsearch | |
| set ignorecase | |
| " }}} | |
| " completion {{{ | |
| set wildmenu | |
| set wildmode=longest:full,full | |
| set wildignore+=tags,*.pyc | |
| " }}} | |
| " scroll {{{ | |
| set scrolloff=10 | |
| set sidescrolloff=15 | |
| set sidescroll=1 | |
| " }}} | |
| " cursor shape {{{ | |
| if exists('$ITERM_PROFILE') | |
| if exists('$TMUX') | |
| let &t_SI = "\<Esc>[3 q" | |
| let &t_EI = "\<Esc>[0 q" | |
| else | |
| let &t_SI = "\<Esc>]50;CursorShape=1\x7" | |
| let &t_EI = "\<Esc>]50;CursorShape=0\x7" | |
| endif | |
| end | |
| " }}} | |
| set secure | |
| set display=uhex | |
| set ttyfast | |
| set lazyredraw | |
| set noequalalways " 自動調整オフ <c-w> = | |
| set winheight=8 | |
| set autoindent | |
| set autoread | |
| set autowrite | |
| set linebreak | |
| set breakindent showbreak=\ + | |
| set commentstring=#\ %s | |
| set formatoptions+=j | |
| set display=lastline | |
| set textwidth=80 | |
| set colorcolumn=+1 | |
| set fileformats=unix,dos,mac | |
| set complete-=i | |
| set nrformats-=octal | |
| set ttimeout | |
| set ttimeoutlen=100 | |
| set clipboard=unnamed | |
| " Fold {{{ | |
| set foldcolumn=2 | |
| set foldlevelstart=0 | |
| set foldmethod=marker | |
| " open/close | |
| nnoremap <Space> za | |
| vnoremap <Space> za | |
| " }}} | |
| " let {{{ | |
| let g:is_bash = 1 | |
| let g:sh_noisk=1 | |
| let g:netrw_liststyle=3 | |
| let g:mapleader="," | |
| " }}} | |
| " keyremap {{{ | |
| inoremap jj <esc> | |
| nnoremap j gj | |
| nnoremap k gk | |
| nnoremap <silent> <Esc><Esc> :<C-u>nohlsearch<CR> | |
| nnoremap <silent> <Leader>t :TestFile<CR> | |
| nnoremap <leader><leader> <c-^> | |
| nnoremap <Leader>n :<c-u>CtrlP ~/note<cr> | |
| nnoremap <Leader>r :<c-u>CtrlPMRUFiles<cr> | |
| nnoremap <Leader>t :<c-u>Toc<cr> | |
| " }}} | |
| " augroup {{{ | |
| augroup misc | |
| autocmd! | |
| autocmd FileType make,go setlocal noexpandtab | |
| autocmd FileType c,cpp,cs,java setlocal commentstring=//\ %s | |
| autocmd FileType git,gitcommit setlocal foldmethod=syntax foldlevel=1 | |
| autocmd FileType markdown setlocal textwidth=80 | |
| autocmd BufRead,BufNewFile *.es6 setfiletype javascript | |
| autocmd BufEnter *.rb syn match error contained "\<binding.pry\>" | |
| autocmd BufEnter *.rb syn match error contained "\<debugger\>" | |
| autocmd WinLeave,InsertEnter * set nocursorline | |
| autocmd WinEnter,InsertLeave * set cursorline | |
| augroup END | |
| " }}} | |
| " Color Scheme {{{ | |
| set t_Co=256 | |
| set background=dark | |
| highlight clear | |
| colorscheme base16-ocean | |
| hi CursorLine ctermfg=NONE ctermbg=237 cterm=NONE | |
| hi CursorLineNr ctermfg=NONE ctermbg=237 cterm=NONE | |
| hi LineNr ctermfg=NONE ctermbg=236 cterm=NONE | |
| hi FoldColumn ctermfg=246 ctermbg=236 cterm=NONE | |
| hi Folded ctermfg=248 ctermbg=238 cterm=NONE | |
| hi ColorColumn ctermbg=237 | |
| hi VertSplit ctermbg=238 ctermfg=238 | |
| hi GitGutterAdd ctermbg=236 | |
| hi GitGutterChange ctermbg=236 | |
| hi GitGutterDelete ctermbg=236 | |
| hi GitGutterChangeDelete ctermbg=236 | |
| hi Search ctermbg=33 ctermfg=226 | |
| "highlight Normal ctermbg=none | |
| " }}} | |
| " airline {{{ | |
| let g:airline_theme='luna' | |
| " }}} | |
| " Git Gutter {{{ | |
| let g:gitgutter_eager = 0 | |
| " }}} | |
| " syntastic {{{ | |
| let g:syntastic_error_symbol = "✗" | |
| let g:syntastic_warning_symbol = "⚠️" | |
| "let g:syntastic_ruby_checkers = ['rubocop'] | |
| let g:syntastic_loc_list_height=5 | |
| let g:syntastic_auto_loc_list=1 | |
| let g:syntastic_ignore_files=['.sass', '.scss'] | |
| let g:syntastic_eruby_ruby_quiet_messages = | |
| \ {"regex": "possibly useless use of a variable in void context"} | |
| let g:syntastic_html_tidy_ignore_errors=[" proprietary attribute \"ng-"] | |
| " }}} | |
| " tagbar {{{ | |
| let g:tagbar_ctags_bin='/usr/local/bin/ctags' | |
| nmap <F8> :TagbarToggle<CR> | |
| " }}} | |
| " markdown {{{ | |
| let g:vim_markdown_folding_disabled = 1 | |
| "let g:vim_markdown_toc_autofit = 1 | |
| set conceallevel=2 | |
| let g:vim_markdown_frontmatter = 1 | |
| let g:vim_markdown_toml_frontmatter = 1 | |
| " }}} | |
| " grep {{{ | |
| if executable('ag') | |
| set grepprg=ag\ --nogroup\ --nocolor | |
| let g:ctrlp_user_command = 'ag -Q -l --nocolor --hidden -g "" %s' | |
| let g:ctrlp_use_caching = 0 | |
| endif | |
| " }}} | |
| " matchit {{{ | |
| if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# '' | |
| runtime! macros/matchit.vim | |
| endif | |
| " }}} | |
| if filereadable($HOME . "/.vimrc.local") | |
| source ~/.vimrc.local | |
| endif |
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
| user-agent = "Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0" | |
| timeout = 60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment