Skip to content

Instantly share code, notes, and snippets.

@cj

cj/.vimrc Secret

Created February 11, 2019 21:14
Show Gist options
  • Save cj/95337089bbc241407e7ae94e725e3ff0 to your computer and use it in GitHub Desktop.
Save cj/95337089bbc241407e7ae94e725e3ff0 to your computer and use it in GitHub Desktop.
" Install plugin system.
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
function! DoRemote(arg)
UpdateRemotePlugins
endfunction
call plug#begin('~/.vim/plugins')
set encoding=UTF-8
" ----------------------------------------------------------------------------
" Plugins:
" ----------------------------------------------------------------------------
" Theme.
Plug 'joshdick/onedark.vim'
" A collection of language packs for Vim.
Plug 'sheerun/vim-polyglot'
\| Plug 'HerringtonDarkholme/yats.vim'
\| Plug 'othree/yajs.vim'
\| Plug 'styled-components/vim-styled-components', { 'branch' : 'develop' }
\| Plug 'plasticboy/vim-markdown'
call plug#end()
" ----------------------------------------------------------------------------
" Plugin Settings: joshdick/onedark.vim
" ----------------------------------------------------------------------------
set background=dark
let g:onedark_termcolors=16
colorscheme onedark
" ----------------------------------------------------------------------------
" Plugin Settings: sheerun/vim-polyglot
" ----------------------------------------------------------------------------
let g:polyglot_disabled = ['typescript', 'markdown']
let g:vim_markdown_folding_disabled = 1
let g:yats_host_keyword = 1
const exampleCSS = css`
display: flex;
background-color: ${color('primary')};
align-items: center;
padding: ${spacing('tiny')} 0;
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment