From ee94dc4bdba3fd5b0458bfd61f5638444a379618 Mon Sep 17 00:00:00 2001 From: Johannes Date: Sat, 23 Apr 2016 19:24:08 +0200 Subject: split vimrc in different files and added/reordered configuration --- .vim/vimrc_files/functions.vim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .vim/vimrc_files/functions.vim (limited to '.vim/vimrc_files/functions.vim') diff --git a/.vim/vimrc_files/functions.vim b/.vim/vimrc_files/functions.vim new file mode 100644 index 0000000..a2c0f9a --- /dev/null +++ b/.vim/vimrc_files/functions.vim @@ -0,0 +1,18 @@ +" Split Window and scroll down +fu! SplitScroll() + :wincmd v + :wincmd w + execute "normal! \" + :set scrollbind + :wincmd w + :set scrollbind +endfu + +" toggle relative line number mode +function! ToggleRelativeNumber() + if(&relativenumber == 1) + set norelativenumber + else + set relativenumber + endif +endfunc -- cgit v1.2.3