comparison runtime/indent/typescript.vim @ 18456:6d11fc4aa683

Update runtime files Commit: https://github.com/vim/vim/commit/96f45c0b6fc9e9d404e6805593ed1e0e6795e470 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 26 19:53:45 2019 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Oct 2019 20:00:04 +0200
parents e18b1c654d09
children 11b656e74444
comparison
equal deleted inserted replaced
18455:3c98dfd2380c 18456:6d11fc4aa683
1 " Vim indent file 1 " Vim indent file
2 " Language: TypeScript 2 " Language: TypeScript
3 " Maintainer: See https://github.com/HerringtonDarkholme/yats.vim 3 " Maintainer: See https://github.com/HerringtonDarkholme/yats.vim
4 " Last Change: 2019 Jun 06 4 " Last Change: 2019 Oct 18
5 " Acknowledgement: Based off of vim-ruby maintained by Nikolai Weibull http://vim-ruby.rubyforge.org 5 " Acknowledgement: Based off of vim-ruby maintained by Nikolai Weibull http://vim-ruby.rubyforge.org
6 6
7 " 0. Initialization {{{1 7 " 0. Initialization {{{1
8 " ================= 8 " =================
9 9
440 440
441 let &cpo = s:cpo_save 441 let &cpo = s:cpo_save
442 unlet s:cpo_save 442 unlet s:cpo_save
443 443
444 function! Fixedgq(lnum, count) 444 function! Fixedgq(lnum, count)
445 let l:tw = &tw ? &tw : 80; 445 let l:tw = &tw ? &tw : 80
446 446
447 let l:count = a:count 447 let l:count = a:count
448 let l:first_char = indent(a:lnum) + 1 448 let l:first_char = indent(a:lnum) + 1
449 449
450 if mode() == 'i' " gq was not pressed, but tw was set 450 if mode() == 'i' " gq was not pressed, but tw was set