Created
February 4, 2019 01:49
-
-
Save lucasmoreiradev/e2c8e4815ec41f4a9b503025ebe89c15 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 'VundleVim/Vundle.vim' | |
" Plugins | |
Plugin 'mattn/emmet-vim' | |
Plugin 'posva/vim-vue' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'scrooloose/nerdcommenter' | |
Plugin 'tpope/vim-surround' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'bling/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
Plugin 'zhaocai/goldenview.vim' | |
Plugin 'mattn/gist-vim' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'rking/ag.vim' | |
Plugin 'altercation/vim-colors-solarized' | |
Plugin 'tomasr/molokai' | |
Plugin 'MarcWeber/vim-addon-mw-utils' | |
Plugin 'tomtom/tlib_vim' | |
Plugin 'garbas/vim-snipmate' | |
Plugin 'isRuslan/vim-es6' | |
Plugin 'jiangmiao/auto-pairs' | |
Plugin 'shougo/deoplete.nvim' | |
Plugin 'dkprice/vim-easygrep' | |
Plugin 'mxw/vim-jsx' | |
Plugin 'tpope/vim-repeat' | |
Plugin 'svermeulen/vim-easyclip' | |
Plugin 'ryanoasis/vim-devicons' | |
Plugin 'mattn/webapi-vim' | |
Plugin 'digitaltoad/vim-pug' | |
call vundle#end() " required | |
filetype plugin indent on " required | |
"let g:python_host_prog = '/path/to/python2.7r/local/cellar/python3/3.5.2_1' | |
let g:deoplete#enable_at_startup = 1 | |
let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1 | |
let mapleader = "," | |
map <Leader>n :NERDTreeToggle <Esc> | |
map <Leader>s :call ToggleScheme() <Esc> | |
map <Leader>e :edit <Esc> | |
map <Leader>p :CtrlP <Esc> | |
map <Leader>a :Ag <Space> | |
map <M-BS> :nohls<CR> | |
map <C-h> <C-w>h | |
map <C-j> <C-w>j | |
map <C-k> <C-w>k | |
map <C-l> <C-w>l | |
inoremap jj <ESC> | |
inoremap jk <ESC> | |
inoremap fd <ESC> | |
imap cll console.log()<Esc>==f(a) | |
" Emmet | |
let g:user_emmet_expandabbr_key='<Tab>' | |
imap <expr> <tab> emmet#expandAbbrIntelligent("\<tab>") | |
" Set GUI customizations | |
syntax on | |
set nowrap | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set guioptions-=L | |
set guioptions-=r | |
set guifont=Droid\ Sans\ Mono\ for\ Powerline | |
autocmd Filetype pug setlocal ts=2 sw=2 sts=0 noexpandtab | |
" Easyclip | |
let g:EasyClipShareYanks = 1 | |
let g:EasyClipAutoFormat = 1 | |
" Vim airline | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#branch#enabled = 1 | |
let g:airline_powerline_fonts = 1 | |
" JS syntax tweaks | |
let javascript_enable_domhtmlcss = 1 | |
" Ctrl p | |
set wildignore+=*/node_modules/* | |
set wildignore+=*/dist/* | |
set wildignore+=*/bower_components/* | |
" Launch colorscheme based on time of day | |
if strftime("%H") >= 7 && strftime("%H") < 17 | |
let g:solarized_termcolors=256 | |
syntax enable | |
set background=light | |
colorscheme solarized | |
let g:airline_theme='badwolf' | |
else | |
colorscheme molokai | |
let g:airline_theme='simple' | |
endif | |
" Toggle colorscheme | |
fu! ToggleScheme() | |
if g:colors_name == 'molokai' | |
let g:solarized_termcolors=256 | |
syntax enable | |
set background=light | |
colorscheme solarized | |
"let g:airline_theme='badwolf' | |
else | |
colorscheme molokai | |
"let g:airline_theme='simple' | |
endif | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment