Skip to content

Instantly share code, notes, and snippets.

@ZabdiAG
Last active November 13, 2019 18:06
Show Gist options
  • Save ZabdiAG/61e24eb3adb01041c296c13cbbd00723 to your computer and use it in GitHub Desktop.
Save ZabdiAG/61e24eb3adb01041c296c13cbbd00723 to your computer and use it in GitHub Desktop.
Mac vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.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 on GitHub repo
Plugin 'tpope/vim-fugitive'
" https://github.com/scrooloose/nerdtree
" A tree explorer
Plugin 'scrooloose/nerdtree'
" https://github.com/tpope/vim-surround
" surround.vim: quoting/parenthesizing made simple
Plugin 'tpope/vim-surround'
" https://github.com/airblade/vim-gitgutter
" A Vim plugin which shows a git diff in the gutter (sign column) and stages/undoes hunks.
Plugin 'airblade/vim-gitgutter'
set updatetime=250
" https://github.com/vim-airline/vim-airline
" lean & mean status/tabline for vim that's light as air
Plugin 'vim-airline/vim-airline'
" https://github.com/ctrlpvim/ctrlp.vim
" Full path fuzzy file, buffer, mru, tag, ... finder for Vim.
Plugin 'ctrlpvim/ctrlp.vim'
" https://github.com/w0rp/ale
" ALE (Asynchronous Lint Engine)
Plugin 'w0rp/ale'
" https://github.com/easymotion/vim-easymotion
" Vim motions on speed!
Plugin 'easymotion/vim-easymotion'
" https://github.com/altercation/vim-colors-solarized
" Precision colorscheme for the vim text editor
Plugin 'altercation/vim-colors-solarized'
" https://github.com/pangloss/vim-javascript
" Vastly improved Javascript indentation and syntax support in Vim.
Plugin 'pangloss/vim-javascript'
" https://github.com/fatih/vim-go
" Go development plugin for Vim
Plugin 'fatih/vim-go'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" change map keyboard button
let mapleader = " "
" golang
" tabs to spaces
set tabstop=4 " The width of a TAB is set to 4.
" Still it is a \t. It is just that
" Vim will interpret it to be having
" a width of 4.
set shiftwidth=4 " Indents will have a width of 4.
set softtabstop=4 " Sets the number of columns for a TAB.
set expandtab " Expand TABs to spaces.
" javascript
" set tabstop=2 " The width of a TAB is set to 4.
" " Still it is a \t. It is just that
" " Vim will interpret it to be having
" " a width of 4.
" set shiftwidth=2 " Indents will have a width of 4.
" set softtabstop=2 " Sets the number of columns for a TAB.
" set expandtab " Expand TABs to spaces.
" vim-colors-solarized configuration
let g:solarized_termcolors=256
if has('gui_running')
set background=light
else
set background=dark
endif
syntax enable
colorscheme solarized
set number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment