Skip to content

Instantly share code, notes, and snippets.

@CrockAgile
Last active March 6, 2016 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CrockAgile/342ac6735c60fe4efdf3 to your computer and use it in GitHub Desktop.
Save CrockAgile/342ac6735c60fe4efdf3 to your computer and use it in GitHub Desktop.
Vim Configuration
call plug#begin('~/.vim/plugged')
" Colorschemes
Plug 'junegunn/seoul256.vim'
Plug 'shawncplus/skittles_berry'
" Easy motions to align text blocks
" gaip= (align visual inner paragraph to '=')
Plug 'junegunn/vim-easy-align'
nmap ga <Plug>(EasyAlign)
" File fuzzy find
Plug 'ctrlpvim/ctrlp.vim'
set runtimepath^=~/.vim/plugged/ctrlp.vim
:helptags ~/.vim/plugged/ctrlp.vim/doc
" Code completion
" Plug 'Valloric/YouCompleteMe'
" Plug 'Shougo/neocomplete.vim'
Plug 'ajh17/VimCompletesMe'
" Change surrounding characters
" cs'<q>('Hello world!') => <q>Hello world!</q>
Plug 'tpope/vim-surround'
" Static syntax checking
Plug 'scrooloose/syntastic'
let g:syntastic_check_on_open = 1
let g:syntastic_javascript_checkers = ['eslint']
" Status bar
Plug 'itchyny/lightline.vim'
set laststatus=2
" Comment code
" [count]<leader>c<space>
Plug 'scrooloose/nerdcommenter'
" Code movement
" <leader><leader>motion
Plug 'easymotion/vim-easymotion'
" Javascript syntax support
Plug 'pangloss/vim-javascript'
" Git status information in gutter
Plug 'airblade/vim-gitgutter'
call plug#end()
set t_Co=256
set nocompatible
set noswapfile
set autoindent
set smartindent
set smarttab
set copyindent
set number
set tabstop=2
set sw=2
set expandtab
set shiftround
set incsearch
set ignorecase
set hlsearch
set noerrorbells
set relativenumber
set nowrap
set encoding=utf-8
set nrformats=
set hidden
set history=100
filetype on
syntax on
colorscheme seoul256
" F7 refreshes vimrc
nnoremap <F7> :so $MYVIMRC<CR>
" Window splitting
set splitbelow
set splitright
nnoremap <C-H> <C-W><C-H>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
" Auto command to clean trailing whitespace
autocmd BufReadPre * :%s/\s\+$//e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment