Created
December 9, 2015 01:07
-
-
Save vheon/0214290a359f42e2cd04 to your computer and use it in GitHub Desktop.
Simple function for always display sign column in vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sign define DummySign | |
function! s:place_dummy_sign(bufid) | |
if !getbufvar( a:bufid, 'dummy_sign' ) | |
execute "sign place 1234 line=1 name=DummySign buffer=".a:bufid | |
call setbufvar( a:bufid, 'dummy_sign', 1 ) | |
endif | |
endfunction | |
Autocmd BufEnter * call s:place_dummy_sign( bufnr( '%' ) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment