summaryrefslogtreecommitdiff
path: root/.vim/vimrc_files/functions.vim
blob: a2c0f9aa0774670fb39547c1b680a5b280799eb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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