Last active
November 14, 2019 14:14
-
-
Save yan13to/e10aae3a7ef8e05aabd78d6763bc91a3 to your computer and use it in GitHub Desktop.
Vimrc for my development
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
set encoding=utf-8 | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" Plugins | |
Plugin 'tpope/vim-dispatch' | |
Plugin 'tpope/vim-rails' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'tpope/vim-surround' | |
Plugin 'tpope/vim-commentary' " gc to comment out | |
Plugin 'tpope/vim-endwise' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'figitaki/vim-dune' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'leafgarland/typescript-vim' | |
Plugin 'Quramy/vim-js-pretty-template' | |
Plugin 'Shougo/vimproc.vim' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'ngmy/vim-rubocop' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'mattn/emmet-vim' | |
call vundle#end() | |
" The Silver Searcher | |
if executable('ag') | |
" Use ag over grep | |
set grepprg=ag\ --nogroup\ --nocolor | |
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore | |
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' | |
" ag is fast enough that CtrlP doesn't need to cache | |
let g:ctrlp_use_caching = 0 | |
endif | |
nnoremap \ :Ag<SPACE> | |
let g:ctrlp_working_path_mode = 0 | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline_powerline_fonts = 1 | |
let g:airline#extensions#syntastic#enabled = 1 | |
" typescript-vim | |
let g:typescript_compiler_binary = 'tsc' | |
let g:typescript_compiler_options = '' | |
autocmd QuickFixCmdPost [^l]* nested cwindow | |
autocmd QuickFixCmdPost l* nested lwindow | |
" vim-js-pretty-template | |
autocmd FileType javascript JsPreTmpl | |
autocmd FileType javascript.jsx JsPreTmpl | |
autocmd FileType typescript JsPreTmpl | |
" scrooloose/syntastic | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_ruby_checkers = ['rubocop'] | |
set laststatus=2 | |
filetype plugin indent on | |
syntax on | |
colorscheme monokai | |
set number | |
set relativenumber | |
set showmatch | |
set autoindent | |
set hlsearch | |
set ignorecase | |
set autowrite | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set expandtab | |
set noshiftround | |
set nobackup | |
set noswapfile | |
set noundofile | |
set ruler | |
noremap <C-d> :sh<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment