Browse Source

~/.vimrc: Switch to no syntax highlighting by default

This is toggle-able with `<leader>S`, which is `<backslash>S` on my
machine.
Lu Stadler 7 years ago
parent
commit
a1fecca75a
1 changed files with 6 additions and 2 deletions
  1. 6 2
      .vimrc

+ 6 - 2
.vimrc

10
endif
10
endif
11
11
12
" Have syntax highlighting and non-vi features
12
" Have syntax highlighting and non-vi features
13
syntax on
14
filetype plugin indent on
13
filetype plugin indent on
15
14
16
set t_Co=256
15
set t_Co=256
17
colorscheme hybrid
16
17
highlight LineNr ctermfg=Gray guifg=Gray
18
highlight SpecialKey ctermfg=LightGray guifg=LightGray
19
highlight NonText ctermfg=LightGray guifg=LightGray
18
20
19
" Indent without helping me.
21
" Indent without helping me.
20
set autoindent
22
set autoindent
148
150
149
set statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v]
151
set statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v]
150
152
153
nnoremap <leader>S :if exists("g:syntax_on") <Bar> syntax off <Bar> else <Bar> syntax enable <Bar> endif <CR>
154
151
""" Filetype specific stuff comes now...
155
""" Filetype specific stuff comes now...
152
156
153
" Have Vala highlighted, too
157
" Have Vala highlighted, too