diff options
| author | czjstmax <jstmaxlol@disroot.org> | 2026-04-16 23:46:17 +0200 |
|---|---|---|
| committer | czjstmax <jstmaxlol@disroot.org> | 2026-04-16 23:46:17 +0200 |
| commit | 9a4266e9d4fbc08eebd2e2f3e2c8e2d31c997cee (patch) | |
| tree | a6afe655cd0befb2648bed9ed2b6eadd940b1851 /cfg | |
| parent | 1083b4683a94dbe9d4986a666a9b0510c522e9d4 (diff) | |
update .vimrc
Diffstat (limited to 'cfg')
| -rw-r--r-- | cfg/.vimrc | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -21,6 +21,9 @@ set shiftwidth=4 set expandtab set exrc secure set virtualedit=block +" layout-ish stuff +set splitright splitbelow +nnoremap <C-w>n :vnew<CR> " c-o-l-o-r-s-! syntax on " useful (i dont even use this anymore) @@ -347,3 +350,15 @@ lua << EOF }) EOF +lua << EOF +local toggle = true + +vim.keymap.set("n", "<C-w>n", function() + if toggle then + vim.cmd("vnew") -- right + else + vim.cmd("new") -- bottom + end + toggle = not toggle +end, { silent = true }) +EOF |