Skip to content

Instantly share code, notes, and snippets.

@miguelsolano miguelsolano/.vimrc
Created Mar 7, 2016

Embed
What would you like to do?
Vim set up
" VIM IS AWESOME
" =================
" Plugin Resource: vimawesome.com
"
" Setup instructions
" ++++++++++++++++++
" cd ~ && vim .vimrc (if you have a .vimrc )
" cd ~ && touch .vimrc && vim .vimrc (if you do not have a .vimrc)
" paste the contents of this file start at the @START line (copy the contents switch back to the vim window and run
" ```:set paste``` afterwards paste the contents in and run ```:source %``` then run ```:PluginInstall```)
"
"
set nocompatible " be iMprovedg
filetype off " required!
" required!
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
Plugin 'VundleVim/Vundle.vim'
"these plugins are useless, but fun
Plugin 'koron/nyancat-vim'
Plugin 'uguu-org/vim-matrix-screensaver'
" Here are plugins that actually mean something
Plugin 'kien/ctrlp.vim'
Plugin 'tomtom/tcomment_vim'
Plugin 'kristijanhusak/vim-hybrid-material'
Plugin 'airblade/vim-gitgutter'
" These plugins are in beta (my beta (as in I try them out everyonce in awhile))
Plugin 'scrooloose/nerdtree'
Plugin 'rking/ag.vim'
Plugin 'Chun-Yang/vim-action-ag'
Plugin 'terryma/vim-multiple-cursors'
" Plugin 'ervandew/supertab'
" Plugin 'tpope/vim-endwise'
" Plugin 'danro/rename.vim'
call vundle#end()
filetype plugin indent on " required
set rnu
set backspace=indent,eol,start
" By default use 2 spaces
set tabstop=4 softtabstop=0 shiftwidth=2 smarttab expandtab
" Define space/tab rules for certain file type
autocmd Filetype php setlocal shiftwidth=4
colorscheme hybrid_material
syntax on
" autocmd Filetype gitcommit setlocal spell textwidth=72
" autocmd Filetype txt setlocal spell
let mapleader = " "
let g:ctrlp_map = '<c-p>'
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)|node_modules$'
\ }
" These maps are for normal mode
map <Leader>nn :Nyancat<CR>
map <Leader>mm :Matrix<CR>
map <Leader>kb :NERDTreeToggle<CR>
map <Leader>8 :noh<CR>
map <Leader>nt :NERDTreeToggle<CR>
" map <Leader>x :x<cr>
" map <Leader>w :w<cr>
" map <Leader>q :q<cr>
" map <Leader>qa :qa<cr>
" map <Leader>p :set paste<cr>
" map <Leader>pn :set nopaste<cr>
" map <Leader>r :w ! ruby<cr>
" map <Leader>s :w ! rspec<cr>
" map <Leader>df :call delete(expand('%'))<cr>
" These maps are for visual mode
vmap <C-c> y:call system("pbcopy", getreg("\""))<cr>
" Macvim settings
set guioptions-=r
set guioptions-=l
set guioptions-=L
set guioptions-=R
set guifont=Fira\ Code:h14
set list
set listchars=tab:▸·
highlight NonText guifg=#707880
highlight SpecialKey guifg=#707880
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.