Last active
April 16, 2020 12:00
-
-
Save bateramos/0d71380e268131a1198043e14dd8c2db to your computer and use it in GitHub Desktop.
.vimrc
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, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=$HOME/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required | |
| Plugin 'VundleVim/Vundle.vim' | |
| Plugin 'editorconfig/editorconfig-vim' | |
| Plugin 'pangloss/vim-javascript' | |
| Plugin 'mxw/vim-jsx' | |
| Plugin 'gabesoft/vim-ags' | |
| Plugin 'mileszs/ack.vim' | |
| Plugin 'fatih/vim-go' | |
| Plugin 'rust-lang/rust.vim' | |
| " after adding something call :PluginInstall | |
| " All of your Plugins must be added before the following line | |
| call vundle#end() " required | |
| filetype plugin indent on " required | |
| set term=xterm-256color | |
| filetype plugin indent on | |
| syntax on | |
| set number | |
| set nowrap | |
| imap jj <Esc> | |
| set smartindent | |
| set backspace=indent,eol,start | |
| set list | |
| set expandtab | |
| autocmd FileType javascript setlocal sw=2 ts=2 sts=2 | |
| autocmd FileType json setlocal sw=2 ts=2 sts=2 | |
| autocmd FileType yaml setlocal sw=2 ts=2 sts=2 | |
| autocmd FileType tf setlocal sw=2 ts=2 sts=2 | |
| autocmd FileType html setlocal sw=2 ts=2 sts=2 | |
| noremap <C-j> <C-w>j | |
| noremap <C-k> <C-w>k | |
| noremap <C-l> <C-w>l | |
| noremap <C-h> <C-w>h | |
| set nobackup | |
| set noswapfile | |
| "Search configuration | |
| cnoreabbrev ack Ack! --ignore-dir={dist,build,coverage} | |
| nnoremap <Leader>a :Ack!<Space> | |
| "Ctrlp.viw https://github.com/kien/ctrlp.vim | |
| set runtimepath^=~/.vim/bundle/ctrlp.vim | |
| let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment