diff --git a/dotfiles/vim/vimrc b/dotfiles/vim/vimrc index 42da420..57849fe 100644 --- a/dotfiles/vim/vimrc +++ b/dotfiles/vim/vimrc @@ -104,9 +104,6 @@ let NERDTreeIgnore=['^__pycache__$', '\.pyc', '\~$'] " ignore files in NERDTree " in normal mode ,ne will open NERDTree nmap ne :NERDTree -" F8 will run Black -nnoremap :Black - " let g:indentLine_char = '▏' let g:indentLine_fileType = ['html', 'htmldjango'] @@ -227,6 +224,8 @@ augroup configgroup autocmd FileType ruby setlocal shiftwidth=2 autocmd FileType ruby setlocal softtabstop=2 autocmd FileType ruby setlocal commentstring=#\ %s + " F9 will run RustFmt + autocmd FileType rust nnoremap :RustFmt autocmd FileType python setlocal commentstring=#\ %s autocmd FileType python setlocal foldmethod=indent autocmd FileType python setlocal colorcolumn=80 @@ -234,6 +233,8 @@ augroup configgroup autocmd FileType python let g:ycm_python_sys_path = [] autocmd FileType python let g:ycm_extra_conf_vim_data = ['g:ycm_python_interpreter_path', 'g:ycm_python_sys_path'] autocmd FileType python let g:ycm_global_ycm_extra_conf = '~/.global_extra_conf.py' + " F9 will run Black + autocmd FileType python nnoremap :Black autocmd FileType yaml setlocal foldmethod=indent autocmd BufEnter *.cls setlocal filetype=java autocmd BufEnter *zsh-theme setlocal filetype=zsh