Last active
August 23, 2023 22:25
-
-
Save matheussilvasantos/cb41a74e30652d290d18c0757c5d5fb2 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 | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'Xuyuanp/nerdtree-git-plugin' | |
Plugin 'jistr/vim-nerdtree-tabs' | |
Plugin 'mattn/emmet-vim' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'chemzqm/vim-jsx-improve' | |
Plugin 'captbaritone/better-indent-support-for-php-with-html' | |
Plugin 'slim-template/vim-slim.git' | |
Plugin 'kchmck/vim-coffee-script' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'tpope/vim-abolish' | |
Plugin 'thoughtbot/vim-rspec' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'hashivim/vim-terraform' | |
call vundle#end() | |
filetype plugin indent on | |
syntax on | |
set number | |
set relativenumber | |
set autoindent | |
set expandtab | |
set shiftround | |
set shiftwidth=2 | |
set softtabstop=2 | |
set tabstop=2 | |
map <Leader>n <plug>NERDTreeTabsToggle<CR> | |
map :set ft=rubyCTRL- | |
" nnoremap <leader>n :NERDTreeFocus<CR> | |
" Open the existing NERDTree on each new tab. | |
" autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif | |
" Mirror the NERDTree before showing it. This makes it the same on all tabs. | |
" nnoremap <C-n> :NERDTreeMirror<CR>:NERDTreeFocus<CR> | |
" Exit Vim if NERDTree is the only window remaining in the only tab. | |
" autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif | |
" Close the tab if NERDTree is the only window remaining in it. | |
" autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif | |
"folding settings | |
set foldmethod=indent "fold based on indent | |
set foldnestmax=10 "deepest fold is 10 levels | |
set nofoldenable "dont fold by default | |
set foldlevel=1 "this is just what i use | |
"Then you can toggle folding with za. You can fold everything with zM and | |
"unfold everything with zR. zm and zr can be used to get those folds just | |
"right. Always remember the almighty help file at “help :folding” if you get | |
"stuck. | |
nnoremap <C-c> "+ | |
vnoremap <C-c> "+y | |
nmap g<C-]> :execute 'tab tag '.expand('<cword>')<CR> | |
nmap <silent> m<C-f> :!PACON2_ENVIRONMENT=test bundle exec m %<CR> | |
" 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> | |
set path+=** | |
set complete-=i | |
set wildmenu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment