Skip to content

Commit 4371e38

Browse files
committed
you can access terminal inside editor.
you can use shortcut key ctrl+t to open a terminal.
1 parent b9fd082 commit 4371e38

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lua/user/keymaps.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ nmap("<M-e>","<Esc>:NvimTreeFindFile<CR>")
1616
nmap("<M-r>","<Esc>:RunCode<CR>")
1717
nmap("<C-q>","<Esc>:q!<CR>")
1818
nmap("<M-q>","<Esc>:qall!<CR>")
19+
nmap("<C-t>","<Esc>:split +terminal<CR>")
1920
imap("<C-q>","<Esc>:wq<CR>i")
2021
imap("<C-s>","<Esc>:w<CR>i")
2122
imap("<C-d>","<Esc>:t.<CR>i")

lua/user/options.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ vim.opt.mouse = "a"
44
vim.opt.cursorline = true
55
vim.opt.fileencoding = "utf-8"
66
vim.opt.foldmethod = "indent"
7+
vim.opt.splitbelow = true
78

89
-- needed for 24-bit colors.
910
vim.opt.termguicolors = true

0 commit comments

Comments
 (0)