Update .vimrc

main
Matt Huntington 5 years ago committed by GitHub
parent dd7f0b026d
commit 948bca9598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,3 +1,4 @@
"-- install plugins: ---
call plug#begin('~/.vim/plugged')
Plug 'mattn/emmet-vim' "emmet html autocomplete
Plug 'vim-airline/vim-airline' "airline status bar
@ -6,6 +7,7 @@ Plug 'Xuyuanp/nerdtree-git-plugin' "show git status in nerdtree
Plug 'mhinz/vim-signify' "show git changes in file
call plug#end()
"-- vim configs: ---
set tabstop=4 "tab width = 4 spaces
set shiftwidth=4 "auto tab width = 4 spaces
set list "show whitespace chars
@ -14,15 +16,20 @@ set number "show line nums
set mouse=a "enable mouse
set wrap! "disable wordwrap
colorscheme molokai "theme
ab log console.log();<left><left> "log autocomplete
ab af ()=>{<cr><cr>}<up><tab> "arrow function autocomplete
"-- abbreviations: ---
"log autocomplete
ab log console.log();<left><left>
"arrow function autocomplete
ab af ()=>{<cr><cr>}<up><tab>
"-- plugin configs: ---
let g:airline#extensions#tabline#enabled = 1 "show buffers when no tabs open
let g:airline#extensions#tabline#buffer_nr_show = 1 "show buffer numbers
let NERDTreeShowLineNumbers=1 "show line numbers in nerdtree
"-- themes: ---
colorscheme molokai
"--- unused: ---
"let g:user_emmet_expandabbr_key='<Tab>' "use tab to expand in emmet
"imap <expr> <tab> emmet#expandAbbrIntelligent("\<tab>") "only have tab expand in emmet when it's supposed to

Loading…
Cancel
Save