Typescript plugin
This commit is contained in:
parent
fee53462f9
commit
2ba1ff0a0d
3 changed files with 15 additions and 4 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -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
|
||||
|
|
15
.vimrc
15
.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 <leader>b = :FzfBuffers<cr>
|
|||
nnoremap <leader>h = :FzfHelptags<cr>
|
||||
nnoremap <leader>/ = :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 <leader>q !!$SHELL <cr>
|
||||
vnoremap <leader>q !$SHELL <cr>
|
||||
|
||||
" Do Shebang line
|
||||
" 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
|
||||
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
|
||||
"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 !urldecode<cr>
|
||||
|
|
1
bundle/typescript-vim
Submodule
1
bundle/typescript-vim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 616186fd8a04afa32bae8dc0b70ab7f9cdb427fd
|
Loading…
Add table
Add a link
Reference in a new issue