let new_line = new_line . c[1]
endif
- exec "normal! o".new_line."\<cr>\<esc>?foo\<cr>cw "
+ exec "normal! o".new_line."\<esc>?foo\<cr>cw "
+ exec "startinsert"
+ " exec "cw"
endfunc
func! CommentToggle()
call setline('.',new_line)
endfunc
-func! FileCommentToggle()
- let curr_line = getline('.')
-
- let c = FileGet('c','me_now').' '
-
- let exp = '^'.substitute(c,'\d\d\.\d\d\.\d\d','........','')
- let new_line = substitute(curr_line,exp,'','')
-
- if new_line == curr_line
- s/^/\=c/
- else
- call setline('.',new_line)
- endif
-
-endfunc
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-let FilePath = expand('%:p')
-
let Debug = $VIMRC_DEBUG
let DebugMsgs = [ 'Start '.strftime('%F %T') ]
" F5 - Comment
map <F5> :call CommentNewLine()<CR>
vmap <F5> :call CommentToggle()<CR>
-" map <F5> o<C-R>=FileGet('c').' '.$USER_INITIALS.': '.strftime('%d.%m.%y').': foo '.FileGet('cEnd')<CR><Esc>?foo<CR>cw
-" NB 11.12.22 map <F5> o<C-R>=FileGet('c').' '.FileGet('me_now').': foo '.FileGet('cEnd')<CR><Esc>?foo<CR>cw
-" NB 11.12.22 vmap <F5> :call FileCommentToggle()<CR>