Created
August 29, 2019 16:05
-
-
Save AnthonySuper/b553703cc3c26279ca2a7905a993c57b 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
execute pathogen#infect() | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'slim-template/vim-slim.git' | |
Plugin 'thoughtbot/vim-rspec' | |
Plugin 'mhinz/vim-signify' | |
Plugin 'kchmck/vim-coffee-script' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'leafgarland/typescript-vim' | |
Plugin 'maxmellon/vim-jsx-pretty' | |
Plugin 'w0rp/ale' | |
Plugin 'depuracao/vim-rdoc' | |
Plugin 'nestorsalceda/vim-strip-trailing-whitespaces' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'Xuyuanp/nerdtree-git-plugin' | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'tpope/vim-surround' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'tpope/vim-repeat' | |
call vundle#end() | |
syntax on | |
filetype plugin indent on | |
set mouse=a | |
set expandtab | |
set shiftwidth=2 | |
set tabstop=2 | |
" RSpec.vim mappings | |
map <Leader>t :call RunCurrentSpecFile()<CR> | |
map <Leader>s :call RunNearestSpec()<CR> | |
map <Leader>l :call RunLastSpec()<CR> | |
map <Leader>a :call RunAllSpecs()<CR> | |
nnoremap <Leader>f :NERDTreeToggle<Enter> | |
nnoremap <Leader>F :NERDTreeFocus<Enter> | |
" no more pressing w | |
nnoremap <C-J> <C-W><C-J> | |
nnoremap <C-K> <C-W><C-K> | |
nnoremap <C-L> <C-W><C-L> | |
nnoremap <C-H> <C-W><C-H> | |
" More natural buffer splitting | |
set splitright | |
set splitbelow | |
if !exists("g:ycm_semantic_triggers") | |
let g:ycm_semantic_triggers = {} | |
endif | |
let g:ycm_semantic_triggers['typescript'] = ['.'] | |
let g:ycm_filetype_whitelist = {'typescript': 1, 'typescript.tsx': 1} | |
autocmd FileType typescript nmap <buffer> <Leader>t : <C-u>echo tsuquyomi#hint()<CR> | |
autocmd BufNewFile,BufRead *.tsx,*.jsx set filetype=typescript | |
let g:ftplugin_sql_omni_key = '<Plug>DisableSqlOmni' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment