summaryrefslogtreecommitdiff
path: root/.vim/vimrc_files/functions.vim
diff options
context:
space:
mode:
authorJohannes <stoelp@rhrk.uni-kl.de>2016-04-23 19:24:08 +0200
committerJohannes <stoelp@rhrk.uni-kl.de>2016-04-23 19:24:08 +0200
commitee94dc4bdba3fd5b0458bfd61f5638444a379618 (patch)
treee9509fa184fce8671518ad2b95c7c8f02977b1fc /.vim/vimrc_files/functions.vim
parent86d0e679128f06cde2be79fb006b9adc6f7f32ca (diff)
downloaddotfiles-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.vim18
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