Add HTML and JS FT-Plugins to Vim

This commit is contained in:
Talia 2020-07-07 11:01:22 +02:00
parent 2cdc544bfe
commit 8d1b12ab29
2 changed files with 14 additions and 0 deletions

7
vim/ftplugin/html.vim Normal file
View file

@ -0,0 +1,7 @@
nnoremap <buffer> ; m'A;`'
if b:undo_ftplugin
let b:undo_ftplugin .= "unmap <buffer> ;"
else
let b:undo_ftplugin = ""
end
let b:undo_ftplugin .= "| unmap <buffer> ;"

7
vim/ftplugin/js.vim Normal file
View file

@ -0,0 +1,7 @@
nnoremap <buffer> ; m'A;`'
if b:undo_ftplugin
let b:undo_ftplugin += "unmap <buffer> ;"
else
let b:undo_ftplugin = ""
end
let b:undo_ftplugin += "| unmap <buffer> ;"