diff options
author | Johannes <stoelp@rhrk.uni-kl.de> | 2016-04-23 19:24:08 +0200 |
---|---|---|
committer | Johannes <stoelp@rhrk.uni-kl.de> | 2016-04-23 19:24:08 +0200 |
commit | ee94dc4bdba3fd5b0458bfd61f5638444a379618 (patch) | |
tree | e9509fa184fce8671518ad2b95c7c8f02977b1fc /.vim/vimrc_files/functions.vim | |
parent | 86d0e679128f06cde2be79fb006b9adc6f7f32ca (diff) | |
download | dotfiles-ee94dc4bdba3fd5b0458bfd61f5638444a379618.tar.gz dotfiles-ee94dc4bdba3fd5b0458bfd61f5638444a379618.zip |
split vimrc in different files and added/reordered configuration
Diffstat (limited to '.vim/vimrc_files/functions.vim')
-rw-r--r-- | .vim/vimrc_files/functions.vim | 18 |
1 files changed, 18 insertions, 0 deletions
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! \<C-d>" + :set scrollbind + :wincmd w + :set scrollbind +endfu + +" toggle relative line number mode +function! ToggleRelativeNumber() + if(&relativenumber == 1) + set norelativenumber + else + set relativenumber + endif +endfunc |