1
0
Fork 0

neovim: HTML tweaks

This commit is contained in:
Jeremy Kaplan 2020-04-18 21:29:44 -07:00
commit 6249474c49

View file

@ -264,6 +264,7 @@ command NoCrosshair :set virtualedit= nocursorcolumn
let g:AutoPairsShortcutToggle = '' let g:AutoPairsShortcutToggle = ''
autocmd FileType css setlocal ts=2 sts=2 sw=2 expandtab autocmd FileType css setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType html setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType javascript.jsx setlocal ts=2 sts=2 sw=2 expandtab autocmd FileType javascript.jsx setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType javascript setlocal ts=2 sts=2 sw=2 expandtab autocmd FileType javascript setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType json setlocal ts=2 sts=2 sw=2 expandtab autocmd FileType json setlocal ts=2 sts=2 sw=2 expandtab
@ -287,3 +288,6 @@ autocmd FileType ledger nmap <silent> <leader>' :call ledger#transaction_state_t
nmap ;cc :let @+=expand("%")<CR> nmap ;cc :let @+=expand("%")<CR>
nmap ;cp :let @+=expand("%:p")<CR> nmap ;cp :let @+=expand("%:p")<CR>
" For some reason, (neo)vim sees <C-/> as <C-_>, so bind that instead.
autocmd FileType html inoremap <C-_> </<C-X><C-O>