Create an ACPAuthorMode function
This commit is contained in:
parent
230cfcd713
commit
a5e5bf7918
1 changed files with 7 additions and 1 deletions
8
vimrc
8
vimrc
|
@ -35,7 +35,7 @@ inoremap <left> <nop>
|
||||||
inoremap <right> <nop>
|
inoremap <right> <nop>
|
||||||
inoremap <up> <nop>
|
inoremap <up> <nop>
|
||||||
|
|
||||||
nnoremap <F11> :Limelight!!<CR>:set colorcolumn=0<CR>
|
nnoremap <F11> :call ACPAuthorMode()<CR>
|
||||||
nnoremap <F12> :w<CR>
|
nnoremap <F12> :w<CR>
|
||||||
nnoremap <F7> :setlocal spell! spelllang=en_gb<CR>
|
nnoremap <F7> :setlocal spell! spelllang=en_gb<CR>
|
||||||
nnoremap <down> <nop>
|
nnoremap <down> <nop>
|
||||||
|
@ -221,6 +221,12 @@ if has('wildmenu')
|
||||||
set wildmenu
|
set wildmenu
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
function! ACPAuthorMode()
|
||||||
|
execute "set colorcolumn=" . (&colorcolumn == "" ? "73,81" : "")
|
||||||
|
execute "set textwidth=" . (&textwidth == "0" ? "80" : "0")
|
||||||
|
Limelight!!
|
||||||
|
endfunction
|
||||||
|
|
||||||
" Customise colour schemes. Keep this near the end.
|
" Customise colour schemes. Keep this near the end.
|
||||||
if &background ==# 'light'
|
if &background ==# 'light'
|
||||||
highlight SpecialKey ctermfg=lightgray ctermbg=NONE
|
highlight SpecialKey ctermfg=lightgray ctermbg=NONE
|
||||||
|
|
Loading…
Reference in a new issue