Last active
August 5, 2019 20:17
-
-
Save LindseyB/4aa83a2f8ef1ca6717aa22d0dc83943b 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 " be iMproved | |
" 1 tab to 2 space for ruby | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
" number line show | |
set nu | |
set rtp+=/usr/local/opt/fzf | |
set colorcolumn=120 | |
" for italics | |
let &t_ZH="\e[3m" | |
let &t_ZR="\e[23m" | |
set noswapfile | |
"in order to switch between buffers with unsaved change | |
set hidden | |
" hightlight column and line | |
set cursorline | |
"set cursorcolumn | |
filetype plugin indent on | |
syntax on | |
nnoremap <Space> za | |
" support css word with - | |
autocmd FileType css,scss,slim,html,eruby,coffee,javascript setlocal iskeyword+=- | |
autocmd Filetype python setlocal tabstop=4 shiftwidth=4 softtabstop=4 | |
" vim 7.4 backspace fix | |
set backspace=indent,eol,start | |
set t_Co=256 | |
" colorscheme, read here: http://vim.wikia.com/wiki/Change_the_color_scheme | |
color dracula | |
autocmd BufWritePre * :%s/\s\+$//e | |
" make comments italic | |
highlight Comment cterm=italic | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'tpope/vim-sensible' | |
Plugin 'tpope/vim-repeat' | |
Plugin 'tpope/vim-surround' | |
Plugin 'tpope/vim-dispatch' | |
if has("gui_running") | |
colorscheme desert | |
set bs=2 | |
set ruler | |
set gfn=Monaco:h16 | |
set shell=/bin/bash | |
endif | |
let mapleader= "," | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'Lokaltog/vim-easymotion' | |
Plugin 'mattn/emmet-vim' | |
let g:user_emmet_install_global = 0 | |
let g:user_emmet_mode='iv' | |
autocmd FileType html,css,eruby EmmetInstall | |
Plugin 'tpope/vim-rails.git' | |
" vim rails syntax complete, try ctrl+x ctrl+u | |
set completefunc=syntaxcomplete#Complete | |
Plugin 'vim-scripts/The-NERD-Commenter' | |
let g:indent_guides_guide_size = 1 | |
Plugin 'nathanaelkane/vim-indent-guides' | |
map <silent><F7> <leader>ig | |
let g:indent_guides_guide_size = 1 | |
Plugin 'godlygeek/tabular' | |
Plugin 'plasticboy/vim-markdown' | |
" file tree like something called IDE | |
Plugin 'scrooloose/nerdtree' | |
map <silent><F8> :NERDTree<CR> | |
map <leader>r :NERDTreeFind<cr> | |
map <leader>e :NERDTreeToggle<cr> | |
map <leader>y "+y<cr> | |
map <leader>p "+p<cr> | |
" coffeescript | |
Plugin 'kchmck/vim-coffee-script' | |
autocmd BufNewFile,BufRead *.coffee set filetype=coffee | |
" basic dependence | |
Plugin 'L9' | |
Plugin 'MatchTag' | |
" slim template support | |
Plugin 'slim-template/vim-slim.git' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'ervandew/supertab' | |
Plugin 'motemen/git-vim' | |
Plugin 'scrooloose/nerdcommenter' | |
" fzf | |
Plugin 'junegunn/fzf.vim' | |
" hack filetype for slim | |
autocmd BufNewFile,BufRead *.slim set filetype=slim | |
autocmd BufNewFile,BufRead *.es6 set filetype=javascript | |
" quickly search file(s), use ctrl+p, F5 refresh | |
Plugin 'kien/ctrlp.vim' | |
let g:ctrlp_map = '<c-p>' | |
let g:ctrlp_cmd = 'CtrlP' | |
set wildignore+=*/tmp/*,*.so,*.swp,*.zip | |
"let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' | |
let g:ctrlp_custom_ignore = '\v[\/]\.(DS_Store|git|hg|svn)|(optimized|compiled|node_modules|bower_compenents)$' | |
map <c-o> :CtrlPBuffer<CR> | |
" sass highlight | |
Plugin 'JulesWang/css.vim' | |
Plugin 'cakebaker/scss-syntax.vim' | |
Plugin 'isRuslan/vim-es6' | |
Plugin 'jparise/vim-graphql' | |
Plugin 'dracula/vim' | |
Plugin 'danro/rename.vim' | |
" Typescript/React | |
Plugin 'leafgarland/typescript-vim' | |
Plugin 'peitalin/vim-jsx-typescript' | |
autocmd BufNewFile,BufRead *.tsx,*.jsx set filetype=typescript.tsx | |
" Go | |
Plugin 'fatih/vim-go' | |
call vundle#end() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment