summaryrefslogtreecommitdiff
path: root/cfg/.vimrc
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-04-17 00:35:32 +0200
committerczjstmax <jstmaxlol@disroot.org>2026-04-17 00:35:32 +0200
commit5ec126e4dd3f691ff3066d328d73010b7eca3788 (patch)
treefd89ffd4500e4acbad44a3d91baba7813f16c4dd /cfg/.vimrc
parent9a4266e9d4fbc08eebd2e2f3e2c8e2d31c997cee (diff)
update .vimrc
Diffstat (limited to 'cfg/.vimrc')
-rw-r--r--cfg/.vimrc36
1 files changed, 22 insertions, 14 deletions
diff --git a/cfg/.vimrc b/cfg/.vimrc
index 02396c5..b30e319 100644
--- a/cfg/.vimrc
+++ b/cfg/.vimrc
@@ -12,42 +12,49 @@
" -------------------------------------------
" -------- 'a ---------
-let g:editorconfig = 0
+" file settings
filetype plugin on
-" tabs are either 4 or nada
filetype indent off
+set encoding=utf-8
+set fileencoding=utf-8
+set fileformat=unix
+" config stuff
+let g:editorconfig = 0
+set exrc secure
+" tab sets
set tabstop=4
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)
+" more commodities set
+set virtualedit=block
set backspace=indent,eol,start
+" i dont really do C-S anymore
+" but it's here as a fallback
+" in case my muscle memory gets
+" un-vimmed from idk an incident xd
nnoremap <C-S> :w<CR>
inoremap <C-S> <Esc>:w<CR>a
+" because fuck C-\ C-n
+" i use :term too much lol
tnoremap <A-Esc> <C-\><C-n>
+syntax on
+
" -------- 'b ---------
" i set this while crying because vim on windows sucks so much
" kinda useless though nvim suxx so this is still useful
" relative line numbers for life
set nu rnu cursorline
-" i forgor
-set encoding=utf-8
-set fileencoding=utf-8
-set fileformat=unix
-" disable mouse because who fucking needs that shit
+" disable mouse because who fucking needs that shit HAH
set mouse=
" for firenvim
-set guifont=Comic\ Mono:h12
+set guifont=Iosevka:h12
:command! Nobg hi Normal guibg=NONE ctermbg=NONE
+" leader
let mapleader = ","
-
" -------- 'c ---------
command! Src source ~/.vimrc
command! Vimrc edit ~/.vimrc
@@ -362,3 +369,4 @@ vim.keymap.set("n", "<C-w>n", function()
toggle = not toggle
end, { silent = true })
EOF
+