summaryrefslogtreecommitdiff
path: root/.vim/vimrc_files/functions.vim
blob: 9f2a1fdb5236e01d11d42c3ad2fe0ed9c6f1ff25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
" dotfiles -- .vim/vimrc_files/functions.vim
" author: johannst

" Split Window and scroll down
function! SplitScroll()
    :wincmd v
    :wincmd w
    execute "normal! \<C-d>"
    :set scrollbind
    :wincmd w
    :set scrollbind
endfunc

" toggle relative line number mode
function! ToggleRelativeNumber()           
    if(&relativenumber == 1)
        set norelativenumber
    else
        set relativenumber
    endif
endfunc