diff options
author | Josh Rahm <rahm@google.com> | 2023-01-18 21:50:32 +0000 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2023-01-18 21:50:32 +0000 |
commit | 55938916aa62e4f5088f28673f77ea1b6672a638 (patch) | |
tree | 40ad0ddd7ae71223063bd5519a1aa6f0ead5b976 | |
parent | 9455878c49e42bac0403ef1e5bc20a48260ce1f4 (diff) | |
download | config.vim-55938916aa62e4f5088f28673f77ea1b6672a638.tar.gz config.vim-55938916aa62e4f5088f28673f77ea1b6672a638.tar.bz2 config.vim-55938916aa62e4f5088f28673f77ea1b6672a638.zip |
Add TERM command
-rw-r--r-- | init.vim | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -59,6 +59,7 @@ noremap Y y$ augroup InitVim au! autocmd BufRead *.java,*.c,*.cpp,*.cxx TSBufEnable highlight + autocmd TermOpen * startinsert augroup END noremap รบ <cmd>FormatCode<cr> @@ -86,6 +87,9 @@ endif map <leader>nt <cmd>NvimTreeToggle<cr> noremap <leader>nE :<C-u>e <C-r>=expand('%:h')<cr>/ +" 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" } |