Created
January 11, 2016 12:48
-
-
Save yjean/edbf72875483f79d874f to your computer and use it in GitHub Desktop.
This file contains 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+=~/.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 'gmarik/Vundle.vim' | |
" Navigation plugins | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'kien/ctrlp.vim' | |
" Colors | |
Plugin 'altercation/vim-colors-solarized' | |
Plugin 'morhetz/gruvbox' | |
" Languages | |
Plugin 'tpope/vim-rails' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'chase/vim-ansible-yaml' | |
Plugin 'Shutnik/jshint2.vim' | |
" Addons | |
Plugin 'itchyny/vim-gitbranch' | |
Plugin 'SirVer/ultisnips' | |
Plugin 'honza/vim-snippets' | |
Plugin 'mileszs/ack.vim' | |
Plugin 'tpope/vim-surround' | |
Plugin 'tpope/vim-commentary' | |
Plugin 'tpope/vim-markdown' | |
Plugin 'christoomey/vim-tmux-navigator' | |
Plugin 'mattn/gist-vim' | |
Plugin 'mattn/webapi-vim' | |
" The following are examples of different formats supported. | |
" Keep Plugin commands between vundle#begin/end. | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
syntax on | |
syntax enable | |
set number " Show line numbers | |
set relativenumber " Display relative line numbers | |
set cursorline " Highlight cursor line | |
set encoding=utf-8 | |
set showcmd " display incomplete commands | |
set background=dark | |
set t_Co=256 | |
colorscheme solarized | |
highlight LineNr ctermfg=blue | |
highlight CursorLineNr ctermfg=white ctermbg=blue | |
highlight StatusLine ctermfg=gray | |
filetype plugin indent on " load file type plugins + indentation | |
" Whitespace | |
"set nowrap " don't wrap lines | |
set wrap | |
set tabstop=2 shiftwidth=2 " a tab is two spaces (or set this to 4) | |
set expandtab " use spaces, not tabs (optional) | |
set backspace=indent,eol,start " backspace through everything in insert mode | |
" Searching | |
set hlsearch " highlight matches | |
set incsearch " incremental searching | |
set ignorecase " searches are case insensitive... | |
set smartcase " ... unless they contain at least one capital letter | |
" Remap NERDTree to Atom default | |
map <C-T> :NERDTreeToggle<CR> | |
" Simpler navigation | |
nnoremap <C-K> <C-W><C-K> | |
nnoremap <C-L> <C-W><C-L> | |
nnoremap <C-J> <C-W><C-J> | |
nnoremap <C-H> <C-W><C-H> | |
" More natural split | |
set splitbelow | |
set splitright | |
set laststatus=2 " To display powerline even if screen is not splitted | |
" Own statusline | |
set statusline=%t "tail of the filename | |
"set statusline+=[%{strlen(&fenc)?&fenc:'none'}, "file encoding | |
"set statusline+=%{&ff}] "file format | |
set statusline+=[%{gitbranch#name()}] "git branch name | |
set statusline+=%h "help file flag | |
set statusline+=%m "modified flag | |
set statusline+=%r "read only flag | |
set statusline+=%y "filetype | |
set statusline+=%= "left/right separator | |
set statusline+=%c, "cursor column | |
set statusline+=%l/%L "cursor line/total lines | |
set statusline+=\ %P "percent through file | |
" Snippets engin configuration | |
let g:UltiSnipsExpandTrigger="<tab>" | |
" CtrlP configuration | |
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git' | |
" JShint configuration | |
let jshint2_read=1 | |
let jshint2_save=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment