kovisoft / slimv

Official mirror of Slimv versions released on vim.org
454 stars 60 forks source link

How can I customize the non-source-code buffers (REPL, INSPECT, etc.)? #78

Closed mihaicristiantanase closed 5 years ago

mihaicristiantanase commented 5 years ago

I'd like to set settings like no numbers row, no special characters, etc. for those buffers. Is there a way to do that? Thanks!

kovisoft commented 5 years ago

You can define vim autocommands that trigger when a buffer with a specific name is entered (also triggering when the buffer is created). For example if you don't want line numbers in the REPL and SLDB buffer then add these to your .vimrc file (use the name of the buffer for other buffer types as well):

:autocmd BufEnter REPL :setlocal nonumber
:autocmd BufEnter SLDB :setlocal nonumber
mihaicristiantanase commented 5 years ago

Works perfectly. Thanks!