1. Stefan Göbel
  2. Vimya
  3. Pull requests

Pull requests

#1 Declined
Repository
lazyleopard
Branch
master
Repository
goeb
Branch
master

Added splitbelow, refresh and reset options with mappings

Author
  1. Talha Ahmed
Reviewers
Description

Options

g:vimyaSplitBelow - number (default &splitbelow)

if 'STail' command is used in g:vimyaTailCommand. You can set this value to always splitbelow. This will not affect the global 'splitbelow' settings.

g:vimyaForceRefresh - number (default 1)

Setting this value will cause vimya tail to refresh every time the send buffer command is used with the tail option enabled.

g:vimyaRefreshWait - number (default 2.0)

The number of seconds vimya should wait before forcing a tail refresh to allow maya time to write back to the log file

Functions

The following function can be used to reset or refresh the tail

    :py vimyaPing (opt = 0)

Pass opt value for different effect as described below:

Value | Function

0 | Forced refreshes the tail window.

1 | Recreates the tail window if it had been closed

2 | Sets up a new log file

Mappings

    nnoremap <leader>sr :py vimyaPing (0)<cr>
    nnoremap <leader>st :py vimyaPing (1)<cr>
    nnoremap <leader>sl :py vimyaPing (2)<cr>
    vnoremap <leader>sr :py vimyaPing (0)<cr>
    vnoremap <leader>st :py vimyaPing (1)<cr>
    vnoremap <leader>sl :py vimyaPing (2)<cr>
  • Learn about pull requests

Comments (0)