Initial commit

This commit is contained in:
Ward Truyen
2024-12-12 21:23:27 +01:00
commit 30481d8b3d
16 changed files with 358 additions and 0 deletions

63
old/ward/init.vim Normal file
View File

@@ -0,0 +1,63 @@
"$~~~~~~~~~~~~~~
"$ Ward's Vimrc
"$-============-
"## use clipboard '+' and '*' (:help clipboard)
set clipboard+=unnamedplus
"$ set line number on
set number
"$ set relative numbers on
set relativenumber
"$ show ruler-/cursor-position in bottomright
set ruler
"$ set a column at position 110
set colorcolumn=110
"$ ask to save before leaving a modified buffer
set confirm
"$ highlight search
set hlsearch
"$ incremental search
set incsearch
"$ highlight current cursorline
set cursorline
"$ Added keybinds $$$
"$ LEADER KEY
let mapleader=' '
"$ show vim waiting for next input when leader is used
set showcmd
"$ Leader mappings
noremap <leader>w :w<cr>
noremap <leader>q :q<cr>
noremap <leader>bn :bnext<cr>
noremap <leader>n :bnext<cr>
noremap <leader>bp :bprevious<cr>
noremap <leader>bb :bprevious<cr>
noremap <leader>bl :buffers<cr>
noremap <leader>bc :bd<cr>
noremap <leader><Tab> <C-w>w
noremap <leader>e :Explore<cr>
noremap <leader>vm :marks<cr>
noremap <leader>vr :registers<cr>
noremap <leader>h :nohlsearch<cr>
"$ map exit terminal mode to Escape
tnoremap <Esc> <C-\><C-n>
"$ normal mappings
"$up/down half a page centered
nnoremap <C-d> <C-d>zz
nnoremap <C-u> <C-u>zz
"$centered next/prev find
nnoremap n nzzzv
nnoremap N Nzzzv