From 5f61d1d4cdeb14a118abc695eaa9f67aac2f205f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Tue, 17 Oct 2023 09:48:28 +0200 Subject: [PATCH] Comment vim init --- init.vim | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/init.vim b/init.vim index 570f578..b483859 100644 --- a/init.vim +++ b/init.vim @@ -1,24 +1,43 @@ +" Display tab characters, trailing spaces and nbsp set list set listchars=tab:→\ ,trail:␣,nbsp:⋅ + +" Remove unnecessary stuff from bottom of window set noruler set laststatus=2 +" Nice line numbers set number set relativenumber +" Spaces over tabs every day of the week (except in makefiles) set expandtab set tabstop=2 set shiftwidth=2 set softtabstop=2 set smartindent +" Window navigation shortcuts nnoremap h nnoremap j nnoremap k nnoremap l +" ö for quick command access on Swedish keyboards nnoremap ö : +" Some navigation shortcuts for Swedish keyboards +nnoremap - ` +nmap Å [ +nmap å ] +omap Å [ +omap å ] +xmap Å [ +xmap å ] +noremap ÅÅ [[ +noremap åå ]] + +" Some searching options set ignorecase set smartcase set incsearch @@ -29,4 +48,7 @@ noremap / /\v nnoremap * *N noh -set hidden \ No newline at end of file +set hidden + +" Uppercase last word on c-^ +inoremap gUiw`]a