File: gruvbox.vim

package info (click to toggle)
vim-gruvbox 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 196 kB
  • sloc: sh: 223; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 908 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
" -----------------------------------------------------------------------------
" File: gruvbox.vim
" Description: Retro groove color scheme for Vim
" Author: morhetz <morhetz@gmail.com>
" Source: https://github.com/gruvbox-community/gruvbox
" -----------------------------------------------------------------------------

function! gruvbox#invert_signs_toggle()
  if g:gruvbox_invert_signs == 0
    let g:gruvbox_invert_signs=1
  else
    let g:gruvbox_invert_signs=0
  endif

  colorscheme gruvbox
endfunction

" Search Highlighting {{{

function! gruvbox#hls_show()
  set hlsearch
  call GruvboxHlsShowCursor()
endfunction

function! gruvbox#hls_hide()
  set nohlsearch
  call GruvboxHlsHideCursor()
endfunction

function! gruvbox#hls_toggle()
  if &hlsearch
    call gruvbox#hls_hide()
  else
    call gruvbox#hls_show()
  endif
endfunction

" }}}

" vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker: