From 868fc8fd16ee08f3c941ffb74e7a089b185120c0 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 24 Aug 2023 20:16:23 +0300 Subject: nvim: Add nvim configuration --- .config/nvim/init.vim | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .config/nvim/init.vim (limited to '.config') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..9c02ea3 --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,30 @@ +nnoremap € $ +vnoremap € $ +nnoremap ) 0 +vnoremap ) 0 +nnoremap < << +nnoremap > >> +nnoremap K :vert Man +vnoremap K :vert Man +nnoremap h +nnoremap j +nnoremap k +nnoremap l +nnoremap V +nnoremap V +nnoremap :make + +fu! SortWords() + if visualmode() == "V" + '<,'>!sort - + else + '<,'>s/\%V.*\%V\w*/\=join(sort(split(submatch(0))), ' ') + endif +endfu + +vnoremap s :call SortWords() + +set noet +set tw=80 colorcolumn=81 +set secure exrc +set splitright splitbelow -- cgit v1.2.3