Last active
July 23, 2018 00:08
-
-
Save stonelasley/9605397 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
"/* ======================== Settings ========================= */ | |
set nocompatible | |
set relativenumber | |
set number | |
set smartindent | |
set ts=4 sw=2 et | |
set t_Co=256 | |
filetype plugin indent on | |
"/* ======================== Mappings ========================= */ | |
:imap jk <Esc> | |
let mapleader="\<Space>" | |
nnoremap <Space> <Nop> | |
"/* ================= Vim Plug Auto Install =================== */ | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
"/* ======================== Plugins ========================== */ | |
call plug#begin('~/.vim/plugged') | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'flazz/vim-colorschemes' | |
Plug 'easymotion/vim-easymotion' | |
Plug 'yggdroot/indentline' | |
Plug 'vim-syntastic/syntastic' | |
Plug 'leafgarland/typescript-vim' | |
Plug 'hzchirs/vim-material' | |
Plug 'scrooloose/nerdtree' | |
Plug 'SirVer/ultisnips' | |
Plug 'honza/vim-snippets' | |
call plug#end() | |
"/* ==================== Plugin Settings ====================== */ | |
"/* ------------------------- CtrlP --------------------------- */ | |
let g:ctrlp_map = '<c-p>' | |
let g:ctrlp_cmd = 'CtrlP' | |
"/* ---------------------- EasyMotion ------------------------- */ | |
" <Leader>f{char} to move to {char} | |
map <Leader>f <Plug>(easymotion-bd-f) | |
nmap <Leader>f <Plug>(easymotion-overwin-f) | |
" s{char}{char} to move to {char}{char} | |
nmap s <Plug>(easymotion-overwin-f2) | |
" Move to line | |
map <Leader>L <Plug>(easymotion-bd-jk) | |
nmap <Leader>L <Plug>(easymotion-overwin-line) | |
" Move to word | |
map <Leader>w <Plug>(easymotion-bd-w) | |
nmap <Leader>w <Plug>(easymotion-overwin-w) | |
"/* -------------------- Indent Guides ----------------------- */ | |
let g:indentLine_color_term = 239 | |
"/* ---------------------- Nerd Tree ------------------------- */ | |
map <C-n> :NERDTreeToggle<CR> | |
"/* ---------------------- UltiSnips -------------------------- */ | |
let g:UltiSnipsExpandTrigger="<tab>" | |
let g:UltiSnipsJumpForwardTrigger="<C-j>" | |
let g:UltiSnipsJumpBackwardTrigger="<C-k>" | |
"/* -------------------- Color Scheme ------------------------ */ | |
set t_Co=256 | |
set background=dark | |
colorscheme molokai |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment