diff options
Diffstat (limited to 'mac/.config/vim')
| -rw-r--r-- | mac/.config/vim/init.vim | 2 | ||||
| -rw-r--r-- | mac/.config/vim/vimrc | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/mac/.config/vim/init.vim b/mac/.config/vim/init.vim index fbb9097..9193b48 100644 --- a/mac/.config/vim/init.vim +++ b/mac/.config/vim/init.vim @@ -33,7 +33,7 @@ autocmd BufWritePre *neomutt* %s/^--$/-- /e " dash-dash-space signature delimite autocmd BufWritePre * cal cursor(currPos[1], currPos[2]) " When shortcut files are updated, renew bash and ranger configs with new material: -autocmd BufWritePost bm-files,bm-dirs !shortcuts +autocmd BufWritePost bm-files,bm-dirs !bmshortcuts " Run xrdb whenever Xdefaults or Xresources are updated. autocmd BufRead,BufNewFile Xresources,Xdefaults,xresources,xdefaults set filetype=xdefaults diff --git a/mac/.config/vim/vimrc b/mac/.config/vim/vimrc index 0535aec..a782a14 100644 --- a/mac/.config/vim/vimrc +++ b/mac/.config/vim/vimrc @@ -335,8 +335,8 @@ set nocursorcolumn set shiftwidth=4 set tabstop=4 -" If the current file type is HTML, set indentation to 2 spaces. -autocmd Filetype html setlocal tabstop=2 shiftwidth=2 expandtab +" If the current file type is HTML, CSS, JS, JSX, TS, TSX set indentation to 2 spaces. +autocmd Filetype html,css,js,jsx,ts,tsx setlocal tabstop=2 shiftwidth=2 expandtab " Do not save backup files. set nobackup @@ -367,9 +367,6 @@ set title set timeoutlen=300 " Time (in milliseconds) to wait for a mapping set ttimeoutlen=10 " Time (in milliseconds) to wait for terminal key codes -" Esc -set noesckeys - " Set the commands to save in history default number is 20. set history=1000 |
