diff options
author | Matthew Lemon <y@yulqen.org> | 2024-04-21 14:01:44 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-04-21 14:01:50 +0100 |
commit | 4539334a95921a26528c2605ac71b0e132089088 (patch) | |
tree | 9a60ae9a5f93be961b775f5d276ef35a48841bea | |
parent | 3f2b46ad0549f6d603a4820b14f752e0dc32c87f (diff) |
Adds emmet to vim
-rw-r--r-- | vim/vimrc | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -93,7 +93,7 @@ set expandtab set hidden set path+=** " set relativenumber -" set number +set number set more set signcolumn=number set colorcolumn=0 @@ -140,6 +140,7 @@ nnoremap <C-n> :Fern -drawer .<CR> <C-w>l " Plugins {{{ call plug#begin() "Plug 'vim-scripts/AutoComplPop' +Plug 'mattn/emmet-vim', Plug 'lambdalisue/fern.vim', Plug 'tpope/vim-rails', Plug 'vim-ruby/vim-ruby', @@ -166,6 +167,26 @@ Plug 'honza/vim-snippets' Plug 'dense-analysis/ale' call plug#end() " }}} +" {{{ emmet +" being very explicit, which is not required +autocmd FileType css imap html <tab> <plug>(emmet-expand-abbr) +let g:user_emmet_leader_key = '<C-b>' +let g:user_emmet_expandabbr_key = '<C-b>,' +let g:user_emmet_expandword_key = '<C-b>;' +let g:user_emmet_update_tag = '<C-b>u' +let g:user_emmet_balancetaginward_key = '<C-b>d' +let g:user_emmet_balancetagoutward_key = '<C-b>D' +let g:user_emmet_next_key = '<C-b>n' +let g:user_emmet_prev_key = '<C-b>N' +let g:user_emmet_imagesize_key = '<C-b>i' +let g:user_emmet_togglecomment_key = '<C-b>/' +let g:user_emmet_splitjointag_key = '<C-b>j' +let g:user_emmet_removetag_key = '<C-b>k' +let g:user_emmet_anchorizeurl_key = '<C-b>a' +let g:user_emmet_anchorizesummary_key = '<C-b>A' +let g:user_emmet_mergelines_key = '<C-b>m' +let g:user_emmet_codepretty_key = '<C-b>c' +"}}} " vim-tailwind {{{ function! s:is_tailwind() return !empty(findfile('tailwind.config.js', '.;')) || |