Add HTML and JS FT-Plugins to Vim
This commit is contained in:
parent
2cdc544bfe
commit
8d1b12ab29
2 changed files with 14 additions and 0 deletions
7
vim/ftplugin/html.vim
Normal file
7
vim/ftplugin/html.vim
Normal 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
7
vim/ftplugin/js.vim
Normal 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> ;"
|
Loading…
Reference in a new issue