浏览代码

~/.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 年之前
父节点
当前提交
a1fecca75a
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      .vimrc

+ 6 - 2
.vimrc

@ -10,11 +10,13 @@ if isdirectory($HOME . '/.vim/bundle/vundle')
10 10
endif
11 11
12 12
" Have syntax highlighting and non-vi features
13
syntax on
14 13
filetype plugin indent on
15 14
16 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 21
" Indent without helping me.
20 22
set autoindent
@ -148,6 +150,8 @@ inoremap ,n <c-x><c-n>
148 150
149 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 155
""" Filetype specific stuff comes now...
152 156
153 157
" Have Vala highlighted, too