Skip to content

Instantly share code, notes, and snippets.

@ma-he-sh
Last active January 18, 2021 14:26
Show Gist options
  • Save ma-he-sh/0a0b98d2a1dcdfc65d670f63c58e8278 to your computer and use it in GitHub Desktop.
Save ma-he-sh/0a0b98d2a1dcdfc65d670f63c58e8278 to your computer and use it in GitHub Desktop.
Vim
call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-easy-align' " Easy Align
Plug 'ayu-theme/ayu-vim' " Ayu theme
Plug 'preservim/nerdtree' " NerdTree
Plug 'pangloss/vim-javascript' " JavaScript support
Plug 'leafgarland/typescript-vim' " TypeScript syntax
Plug 'maxmellon/vim-jsx-pretty' " JS and JSX syntax
Plug 'jparise/vim-graphql' " GraphQL syntax
Plug 'itchyny/lightline.vim' " Status
Plug 'Yggdroot/indentLine' " Indent Lines
Plug 'tpope/vim-fugitive' " Git Support
Plug 'airblade/vim-gitgutter' " Change Lines
Plug 'wadackel/vim-dogrun' " Theme
" code support
Plug 'fatih/vim-go'
Plug 'dense-analysis/ale'
Plug 'heavenshell/vim-pydocstring', { 'do': 'make install' }
Plug 'shawncplus/phpcomplete.vim'
call plug#end()
" --------------------------
" --------------------------
syntax on
set termguicolors
colorscheme dogrun
let g:lightline = {
\ 'colorscheme': 'dogrun',
\ }
" IndentLine {{
let g:indentLine_char = '.'
let g:indentLine_first_char = '.'
let g:indentLine_showFirstIndentLevel = 1
let g:indentLine_setColors = 0
" }}
" Config got lightline
let g:lightline = {
\ 'colorscheme': 'wombat',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'FugitiveHead'
\ },
\ }
" --------------------------
set number
set ts=4
set cursorline
set showmatch
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set laststatus=2
set updatetime=1000
"set foldmethod=syntax
filetype plugin indent on
let python_highlight_all=1
" autocmd vimenter * NERDTree

Install vim plug

https://github.com/junegunn/vim-plug

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

:InstallPlug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment