Skip to content

Instantly share code, notes, and snippets.

@iheartkode
Created December 15, 2016 03:09
Show Gist options
  • Save iheartkode/4ed8a9821ddd8dd9711e30ba593efb6a to your computer and use it in GitHub Desktop.
Save iheartkode/4ed8a9821ddd8dd9711e30ba593efb6a to your computer and use it in GitHub Desktop.
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'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Emmet Plugin
Plugin 'mattn/emmet-vim'
" Comment
Plugin 'tomtom/tcomment_vim'
" Nerd Tree
Plugin 'scrooloose/nerdtree'
" Lightline
Plugin 'itchyny/lightline.vim'
" Surround
Plugin 'tpope/vim-surround'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"web dev indentation and stuff
au BufNewFile,BufRead *.js, *.html, *.css
\ set tabstop=2
\ set softtabstop=2
\ set shiftwidth=2
set guifont=Source\ Code\ Pro\ Light:h16
syntax enable
set t_Co=256
set tabstop=2
set expandtab
set smartindent
set autoindent
set shiftwidth=2
set softtabstop=2
set encoding=utf8
set number
map <C-n> :NERDTreeToggle<CR>
augroup reload_vimrc
autocmd!
autocmd BufWritePost $MYVIMRC source $MYVIMRC
augroup END
" Nerd Tree
let NERDTreeChDirMode=2
" Emmet
autocmd FileType html,css,scss,sass EmmetInstall
" ======= Mapping =========
imap <expr> <tab> emmet#expandAbbrIntelligent("\<tab>")
"let g:user_emmet_leader_key='<C-e>'
"let g:user_emmet_install_global = 0
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
nnoremap <space><space> :w<CR>
" Stop matching brackets
let loaded_matchparen = 1
" Autoload
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment