Typescript plugin

master
Jonathan Hodgson 5 years ago
parent fee53462f9
commit 2ba1ff0a0d
  1. 3
      .gitmodules
  2. 15
      .vimrc
  3. 1
      bundle/typescript-vim

3
.gitmodules vendored

@ -90,3 +90,6 @@
[submodule "bundle/fzf.vim"] [submodule "bundle/fzf.vim"]
path = bundle/fzf.vim path = bundle/fzf.vim
url = https://github.com/junegunn/fzf.vim.git url = https://github.com/junegunn/fzf.vim.git
[submodule "bundle/typescript-vim"]
path = bundle/typescript-vim
url = https://github.com/leafgarland/typescript-vim.git

@ -101,6 +101,8 @@ let &t_EI = "\e[1 q"
" Highlighting {{{1 " Highlighting {{{1
" background {{{2
highlight Normal guibg=NONE ctermbg=NONE
" Spell {{{2 " Spell {{{2
highlight clear SpellBad highlight clear SpellBad
highlight SpellBad cterm=underline ctermfg=red highlight SpellBad cterm=underline ctermfg=red
@ -147,6 +149,13 @@ nnoremap <leader>b = :FzfBuffers<cr>
nnoremap <leader>h = :FzfHelptags<cr> nnoremap <leader>h = :FzfHelptags<cr>
nnoremap <leader>/ = :FzfRg nnoremap <leader>/ = :FzfRg
" typescript
let g:typescript_indent_disable = 1
" Quick tex options {{{2 " Quick tex options {{{2
@ -438,6 +447,7 @@ cnoremap w11 w !sudo tee %
"Run current line as command "Run current line as command
nnoremap <leader>q !!$SHELL <cr> nnoremap <leader>q !!$SHELL <cr>
vnoremap <leader>q !$SHELL <cr>
" Do Shebang line " Do Shebang line
" inoremap <C-y> <Esc>:sil exe ".!which <cWORD>" <bar> s/^/#!/ <bar> filetype detect<cr>YpDi " inoremap <C-y> <Esc>:sil exe ".!which <cWORD>" <bar> s/^/#!/ <bar> filetype detect<cr>YpDi
@ -461,13 +471,10 @@ inoremap jj <Esc>
" Fix previous spelling mistake " Fix previous spelling mistake
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
" Set double space in insert mode to go to next mark and enter insert mode " Set double space in insert mode to go to next mark and enter insert mode
"inoremap <leader><leader> <Esc>:call NextMark()<cr> "inoremap <leader><leader> <Esc>:call NextMark()<cr>
" Abreviations {{{1
iabbrev @@ jonathan@fellowshipproductions.co.uk
iabbrev @@@ jonathan@lunarweb.co.uk
vnoremap <leader>u :B !urlencode<cr> vnoremap <leader>u :B !urlencode<cr>
vnoremap <leader>U :B !urldecode<cr> vnoremap <leader>U :B !urldecode<cr>

@ -0,0 +1 @@
Subproject commit 616186fd8a04afa32bae8dc0b70ab7f9cdb427fd
Loading…
Cancel
Save