dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 31a0d28db06b2dfade3729fbaef15d2103b50603
parent 52bec3503db41d7e3999186377434e6cfe4f56c1
Author: Duncaen <mail@duncano.de>
Date:   Thu, 28 Sep 2017 01:01:30 +0000

vim: add syntax toggle

Diffstat:
vimrc | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vimrc b/vimrc @@ -111,9 +111,11 @@ call s:map_change_option('n', 'number', 'setlocal number!') call s:map_change_option('h', 'hlsearch', 'setlocal hlsearch!') call s:map_change_option('l', 'list', 'setlocal list!') call s:map_change_option('p', 'paste') -call s:map_change_option('w', 'wrap', 'setlocal wrap!') +call s:map_change_option('s', 'syntax', + \ 'if exists("g:syntax_on")<bar>syntax off<bar>else<bar>syntax enable<bar>endif<bar>redraw') call s:map_change_option('t', 'textwidth', \ 'let &l:textwidth = input("textwidth (". &l:textwidth ."): ")<bar>redraw') +call s:map_change_option('w', 'wrap', 'setlocal wrap!') " ============================================================================