Skip to content

Instantly share code, notes, and snippets.

@qWici
Created March 2, 2018 07:36
Show Gist options
  • Save qWici/4d0be5fe988f8a6104804b4a364c2955 to your computer and use it in GitHub Desktop.
Save qWici/4d0be5fe988f8a6104804b4a364c2955 to your computer and use it in GitHub Desktop.
Vim config
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'stanangeloff/php.vim'
Plug 'shawncplus/phpcomplete.vim'
Plug 'arnaud-lb/vim-php-namespace'
Plug 'pangloss/vim-javascript'
Plug 'jdkanani/vim-material-theme'
Plug 'jiangmiao/auto-pairs'
Plug 'kien/ctrlp.vim'
Plug 'easymotion/vim-easymotion'
Plug 'mattn/emmet-vim'
Plug 'itchyny/lightline.vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'airblade/vim-gitgutter'
call plug#end()
syntax enable
colorscheme material-theme
set background=dark
set number
set expandtab
set tabstop=4
set softtabstop=4
set hlsearch
set incsearch
set smartindent
let g:mapleader=','
" CtrlP
"
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" Emmet
"
let g:user_emmet_expandabbr_key = '<c-e>'
let g:user_emmet_install_global = 0
autocmd FileType html,php EmmetInstall
" Lightline
"
set laststatus=2
let g:lightline = {
\ 'colorscheme': 'wombat',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename'] ],
\ 'right': [['lineinfo'], ['percent'], ['fileformat', 'fileencoding']]
\ },
\ }
"mapping
map <C-f> :NERDTreeToggle<CR>
map <Leader> <Plug>(easymotion-prefix)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment