From 55938916aa62e4f5088f28673f77ea1b6672a638 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 18 Jan 2023 21:50:32 +0000 Subject: Add TERM command --- init.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'init.vim') diff --git a/init.vim b/init.vim index 29e7163..e29162f 100644 --- a/init.vim +++ b/init.vim @@ -59,6 +59,7 @@ noremap Y y$ augroup InitVim au! autocmd BufRead *.java,*.c,*.cpp,*.cxx TSBufEnable highlight + autocmd TermOpen * startinsert augroup END noremap รบ FormatCode @@ -86,6 +87,9 @@ endif map nt NvimTreeToggle noremap nE :e =expand('%:h')/ +" Opens a terminal in the directory of the current file. +command! TERM exec "term sh -c 'cd " . expand('%:p:h') . " && exec $SHELL'" + lua << EOF -- CiderLSP vim.opt.completeopt = { "menu", "menuone", "noselect" } -- cgit