Fix TODO and set textwidth

This commit is contained in:
Anthony Rose 2023-05-09 15:17:07 +01:00
parent 6ae4e5d36c
commit 0ed05ecfd8

5
vimrc
View file

@ -29,8 +29,9 @@ inoremap <C-BS> <C-W>
inoremap <C-a> <C-O>^ inoremap <C-a> <C-O>^
inoremap <C-e> <C-O>$ inoremap <C-e> <C-O>$
inoremap <F12> <C-\><C-O>:w<CR> inoremap <F12> <C-\><C-O>:w<CR>
inoremap <F2> #*TODO:*#<Space> inoremap <F2> TODO:<Space>
inoremap <F9> <C-R>=strftime('%Y-%m-%dT%H:%M')<CR> inoremap <F9> <C-R>=strftime('%Y-%m-%dT%H:%M')<CR>
inoremap <S-F2> #*TODO:*#<Space>
inoremap <down> <nop> inoremap <down> <nop>
inoremap <left> <nop> inoremap <left> <nop>
inoremap <right> <nop> inoremap <right> <nop>
@ -149,10 +150,12 @@ if has('eval')
function! ACPToggleMargins() function! ACPToggleMargins()
execute "set colorcolumn=" . (&colorcolumn == "0" ? "73,81" : "0") execute "set colorcolumn=" . (&colorcolumn == "0" ? "73,81" : "0")
execute "set textwidth=" . (&textwidth == "0" ? "80" : "0")
endfunction endfunction
function! ACPToggleWideMargins() function! ACPToggleWideMargins()
execute "set colorcolumn=" . (&colorcolumn == "0" ? "121" : "0") execute "set colorcolumn=" . (&colorcolumn == "0" ? "121" : "0")
execute "set textwidth=" . (&textwidth == "0" ? "120" : "0")
endfunction endfunction
function! ACPToggleSpellEnUs() function! ACPToggleSpellEnUs()