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
" for testing different rgb mappings for colors | |
"let rgb_file = "~/.vim/rgb.txt" | |
" don't worry about trying to stick to vi/ex conventions | |
set nocompatible | |
" disable modelines, as I don't use them | |
set modelines=0 | |
set nomodeline | |
set term=ansi |
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
# in the controller (or wherever you perform the search), enable highlights | |
@search = Sunspot.search(Model) do | |
keyword 'foo', :highlights => true | |
end | |
# or | |
@search = Sunspot.search(Model) do | |
keyword 'foo', :highlights => :name | |
end |