Mercurial > vim
view runtime/compiler/ts-node.vim @ 28371:c3a7be75ef16 v8.2.4711
patch 8.2.4711: when 'insermode' is set :edit from <Cmd> mapping misbehaves
Commit: https://github.com/vim/vim/commit/3a56b6d405fc0f1ca928b77382f97d0c552bea64
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri Apr 8 11:56:14 2022 +0100
patch 8.2.4711: when 'insermode' is set :edit from <Cmd> mapping misbehaves
Problem: When 'insermode' is set :edit from <Cmd> mapping misbehaves.
Solution: Don't set "need_start_insertmode" when already in Insert mode.
(closes #10116)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 08 Apr 2022 13:00:04 +0200 |
parents | 0db0640e16e0 |
children | e1df51f68736 |
line wrap: on
line source
" Vim compiler file " Compiler: TypeScript Runner " Maintainer: Doug Kearns <dougkearns@gmail.com> " Last Change: 2020 Feb 10 if exists("current_compiler") finish endif let current_compiler = "node" if exists(":CompilerSet") != 2 " older Vim always used :setlocal command -nargs=* CompilerSet setlocal <args> endif let s:cpo_save = &cpo set cpo&vim " CompilerSet makeprg=npx\ ts-node CompilerSet makeprg=ts-node CompilerSet errorformat=%f\ %#(%l\\,%c):\ %trror\ TS%n:\ %m, \%E%f:%l, \%+Z%\\w%\\+Error:\ %.%#, \%C%p^%\\+, \%C%.%#, \%-G%.%# let &cpo = s:cpo_save unlet s:cpo_save