thinca / vim-quickrun

Run commands quickly.
zlib License
768 stars 101 forks source link

Outputter buffer additional adjustments possible? #177

Closed koblihh closed 5 years ago

koblihh commented 6 years ago

I would like to set the quickrun outputter buffer with norelativenumber and nonumber.

I have tried adding the following commands with no success, unfortunately.

augroup quickRunOutputBuffer
  autocmd!
  autocmd FileType quickrun setlocal norelativenumber nonumber 
  autocmd FileType qf setlocal norelativenumber nonumber 
augroup END

autocmd BufReadPost,BufNewFile quickrun setlocal nonumber nowrap

Any suggestions / help will be greatly appreciated!

koblihh commented 5 years ago

This is my current solution of the issue above.

augroup QuickRunTerminalOutputBuffer
  au!
  autocmd CursorMoved *
        \ if &buftype ==# 'terminal' |
        \  setl norelativenumber nonumber |
        \ endif
augroup END

I would greatly appreciate it to have your feedback / suggestions on improving the code.

windowsrefund commented 5 years ago

This didn't work for me but I found the following persists after running in the window once. Perhaps something about neovim?

:set nornu nonu nocuc nocul fdc=0