From 2ba1ff0a0deff5ad880faf7877e17dede98c98de Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sat, 4 Jan 2020 13:21:58 +0000 Subject: [PATCH] Typescript plugin --- .gitmodules | 3 +++ .vimrc | 15 +++++++++++---- bundle/typescript-vim | 1 + 3 files changed, 15 insertions(+), 4 deletions(-) create mode 160000 bundle/typescript-vim diff --git a/.gitmodules b/.gitmodules index d1b728d..fc1c5b8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -90,3 +90,6 @@ [submodule "bundle/fzf.vim"] path = bundle/fzf.vim url = https://github.com/junegunn/fzf.vim.git +[submodule "bundle/typescript-vim"] + path = bundle/typescript-vim + url = https://github.com/leafgarland/typescript-vim.git diff --git a/.vimrc b/.vimrc index b93bb43..0c38d0c 100644 --- a/.vimrc +++ b/.vimrc @@ -101,6 +101,8 @@ let &t_EI = "\e[1 q" " Highlighting {{{1 +" background {{{2 +highlight Normal guibg=NONE ctermbg=NONE " Spell {{{2 highlight clear SpellBad highlight SpellBad cterm=underline ctermfg=red @@ -147,6 +149,13 @@ nnoremap b = :FzfBuffers nnoremap h = :FzfHelptags nnoremap / = :FzfRg +" typescript +let g:typescript_indent_disable = 1 + + + + + " Quick tex options {{{2 @@ -438,6 +447,7 @@ cnoremap w11 w !sudo tee % "Run current line as command nnoremap q !!$SHELL +vnoremap q !$SHELL " Do Shebang line " inoremap :sil exe ".!which " s/^/#!/ filetype detectYpDi @@ -461,13 +471,10 @@ inoremap jj " Fix previous spelling mistake inoremap u[s1z=`]au + " Set double space in insert mode to go to next mark and enter insert mode "inoremap :call NextMark() -" Abreviations {{{1 - -iabbrev @@ jonathan@fellowshipproductions.co.uk -iabbrev @@@ jonathan@lunarweb.co.uk vnoremap u :B !urlencode vnoremap U :B !urldecode diff --git a/bundle/typescript-vim b/bundle/typescript-vim new file mode 160000 index 0000000..616186f --- /dev/null +++ b/bundle/typescript-vim @@ -0,0 +1 @@ +Subproject commit 616186fd8a04afa32bae8dc0b70ab7f9cdb427fd