aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOxbian <got.dacs@slmail.me>2023-07-24 14:38:27 +0200
committerOxbian <got.dacs@slmail.me>2023-07-24 14:38:27 +0200
commit92b99a881e4e5bcea3010c9838d3efadff235583 (patch)
treea9220359d1f322844d7ed1bf6cb2b6e415be409b
parent78d0859f6f86d41ddce61e8d26fd4957af7b20c0 (diff)
parent64e1367209edfa7828cb6dabe7c6f0582568cf37 (diff)
downloadvimrc-92b99a881e4e5bcea3010c9838d3efadff235583.tar.gz
vimrc-92b99a881e4e5bcea3010c9838d3efadff235583.zip
Merging html
-rw-r--r--.vim/plugins.vim6
-rw-r--r--README.md (renamed from readme.md)33
2 files changed, 39 insertions, 0 deletions
diff --git a/.vim/plugins.vim b/.vim/plugins.vim
index 16c2a91..61395d7 100644
--- a/.vim/plugins.vim
+++ b/.vim/plugins.vim
@@ -37,6 +37,9 @@ Plug 'prabirshrestha/asyncomplete-lsp.vim' " Autocompletion & connection with vi
" Tools
Plug 'wakatime/vim-wakatime' " Wakatime
+
+" Language
+Plug 'mattn/emmet-vim', { 'for': ['html', 'css', 'js', 'vue'] }
call plug#end()
filetype plugin indent on " Allow filetype detection, plugins, indentation
@@ -142,3 +145,6 @@ let g:which_key_map.l = {
\ 'df' : 'format document',
\ }
+" Emmet
+let g:user_emmet_leader_key='é'
+
diff --git a/readme.md b/README.md
index 9f65797..88ea334 100644
--- a/readme.md
+++ b/README.md
@@ -19,8 +19,13 @@ Oh and remove neovim, it make some problems with vim.
This config has just the necessary plugins installed:
+### Themes
+
- [OneDark](https://github.com/joshdick/onedark.vim) onedark theme.
- [Vim Airline](https://github.com/vim-airline/vim-airline) Vim statusline.
+
+### Graphics utilities
+
- [Fern](https://github.com/lambdalisue/fern.vim) to have a file tree in vim.
- [Fern hijack](https://github.com/lambdaalisue/fern-hijack.vim) to open folder preview with fern.
- [Fern renderer devicons](https://github.com/lambdalisue/fern-renderer-devicons.vim) to have devicons in fern.
@@ -31,12 +36,20 @@ This config has just the necessary plugins installed:
- [Vim devicons](https://github.com/ryanoasis/vim-devicons) language icons for vim.
- [Vim nerdtree syntax highlighting](https://github.com/tiagofumo/vim-nerdtree-syntax-highlight) nerdtree syntax highlighting
- [Vim gitgutter](https://github.com/airblade/vim-gitgutter) to see diff between files with git.
+
+### LSP
+
- [Vim-lsp](https://github.com/prabirshrestha/vim-lsp) linter & formatter for language.
- [Vim-lsp settings](https://github.com/mattn/vim-lsp-settings) easily setup lsp servers for languages.
- [Asyncomplete](https://github.com/prabirshrestha/asyncomplete.vim) async autocompletion
- [Asyncomplete & lsp-vim](https://github.com/prabirshrestha/asyncomplete-lsp.vim) use vim-lsp as source for autocompletion lsp server.
- [Vim Wakatime](https://github.com/wakatime/vim-wakatime) to have wakatime time tracking in vim.
+### Languages utilities
+
+- [Vim emmet](https://github.com/mattn/emmet-vim) html snippets & utilities to write html faster.
+
+
## Command & keybinds
### General
@@ -114,6 +127,26 @@ Keybinds:
- `<leader>lh` lsp hover,
- `<leader>ldf` format document.
+### Emmet
+
+For help, use `:help emmet`.
+Keybinds:
+- `<Alt-e>,` to create tags from an expression,
+- `<Alt-e>;` to create a tag from a word,
+- `<Alt-e>u` to update a tag,
+- `<Alt-e>d` to select a tag and the content of a block,
+- `<Alt-e>D` to select the content of a block,
+- `<Alt-e>n` to jump snippet next edit point,
+- `<Alt-e>N` to jump snippet previous edit point,
+- `<Alt-e>i` to add width and height on image tag,
+- `<Alt-e>m` to join multiline in one line,
+- `<Alt-e>k` to remove the content of a block,
+- `<Alt-e>j` to split join tag,
+- `<Alt-e>/` to comment a block,
+- `<Alt-e>a` to create an anchor (a href),
+- `<Alt-e>A` make quoted text from an url,
+- `<Alt-e>c` to convert a code block into html.
+
## Linters & fixers
### Python
ArKa projects. All rights to me, and your next child right arm.