nvim/init.vim

42 lines
1.2 KiB
VimL
Raw Normal View History

2019-04-10 09:54:25 +00:00
" set ruby program to global one. Need to investigate if this will cause
" problems if I ever use ruby virtual environments or RVM or similar.
let g:ruby_host_prog = '~/.gem/ruby/2.6.0/bin/neovim-ruby-host'
source ~/.config/nvim/init.plugins.vim
2019-09-13 14:27:38 +00:00
source ~/.config/nvim/init.tabline.vim
2020-03-19 15:59:10 +00:00
source ~/.config/nvim/init.settings.vim
2019-09-13 14:27:38 +00:00
set statusline+=\ nvim\
" set foldtext=foldtext()
set fillchars=stl:\ ,stlnc:\ ,vert:┃,fold:\
"auto_window_settings {{{
function! WinEnterColorColumn() abort"{{{
if &buftype != ''
setlocal colorcolumn=0
elseif exists('b:colorcolumn_restore')
execute 'setlocal colorcolumn=' . b:colorcolumn_restore
endif
endfunction
"}}}
function! WinLeaveColorColumn() abort"{{{
let b:colorcolumn_restore = &colorcolumn
setlocal colorcolumn=0
endfunction
"}}}
augroup auto_window_settings "{{{
autocmd!
autocmd WinEnter * call WinEnterColorColumn()
autocmd WinEnter * set cursorline | set cursorcolumn
" autocmd WinLeave * setlocal colorcolumn=0
autocmd WinLeave * call WinLeaveColorColumn()
autocmd WinLeave * set nocursorline | set nocursorcolumn
augroup END
"}}} augroup auto_window_settings
" }}} auto_window_settings
" vim: set foldmethod=marker: