diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2020-07-09 01:10:36 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2020-07-09 01:10:36 +0200 |
commit | faeb7cab78f10b8359b2fa86a96e6861e2b86e3f (patch) | |
tree | 6925703f1977533e92f621a61ef929fd3f36be7e /files/vim/ftplugin/html/html.vim | |
parent | bac1cf42d0ae8c0afdaf843b6dbff494b30354d9 (diff) | |
download | configs-faeb7cab78f10b8359b2fa86a96e6861e2b86e3f.tar.gz configs-faeb7cab78f10b8359b2fa86a96e6861e2b86e3f.zip |
Trying space as leader for vim ftplugins.
Diffstat (limited to 'files/vim/ftplugin/html/html.vim')
-rw-r--r-- | files/vim/ftplugin/html/html.vim | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/files/vim/ftplugin/html/html.vim b/files/vim/ftplugin/html/html.vim index a2d0fdd..30e4484 100644 --- a/files/vim/ftplugin/html/html.vim +++ b/files/vim/ftplugin/html/html.vim @@ -3,13 +3,25 @@ " " Syntastic linter: tidy +" Tabs are expanded to 2 spaces +setlocal tabstop=2 shiftwidth=2 expandtab +" Show existing tabs (they can be deleted with :retab) +setlocal list + +" Column marker: 110 characters call matchadd('ColorColumn', '\%101v', 100) +let mapleader = " " + nnoremap <buffer> <leader>o :!$BROWSER % &<CR><CR> nnoremap <buffer> <leader>f :!firefox --new-window % &<CR><CR> nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/html/html.vim<CR> nnoremap <buffer> <leader>e :Errors<CR> +nnoremap <buffer> <leader>temp :-1r ~/.vim/ftplugin/html/snips/template.txt<CR>Gdd?<+++><CR>cf> + +let mapleader = "," + " Layout elements inoremap <buffer> <leader>hheader <header><Enter><Enter></header><Enter><++><Esc>kki inoremap <buffer> <leader>hnav <nav><Enter><Enter></nav><Enter><++><Esc>kki @@ -63,4 +75,3 @@ inoremap <buffer> <leader>himg <img src="" alt="<++>"><Enter><++><Esc>?""<Enter> nnoremap <buffer> <leader>hc I<!-- <Esc>A --><Esc>0 " Uncomment a line nnoremap <buffer> <leader>hC 05x/--><Enter>3x0 - |