summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2019-01-22 11:13:06 +0100
committerAhmed Abdelhalim <[email protected]>2019-01-22 11:13:06 +0100
commit0a0721a66e918da7fbddebc1396a43e6406eafc6 (patch)
tree59df61b76fbbee33f10fd96d7a5ae21ea2bf9263
parent34f01df29c946b6bd97f81006623101f72c8f90d (diff)
Add typescript configuration and remove old commands
-rw-r--r--.vimrc12
1 files changed, 6 insertions, 6 deletions
diff --git a/.vimrc b/.vimrc
index 70ec371..53ac74d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,7 +1,6 @@
if has('python3')
silent! python3 1
endif
-
" Plug Required Block and plugins
set nocompatible
filetype off
@@ -115,11 +114,6 @@ endif
"Fast saving and quiting
nmap <leader>w :w<cr>
nmap <leader>q :q<cr>
-:command WQ wq
-:command Wq wq
-:command W w
-:command Q q
-
" Use <C-L> to clear the highlighting of :set hlsearch.
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
@@ -170,6 +164,7 @@ autocmd FileType json noremap <buffer> <c-f> :call JsonBeautify()<cr>
autocmd FileType html noremap <buffer> <c-f> :call HtmlBeautify()<cr>
autocmd FileType css noremap <buffer> <c-f> :call CSSBeautify()<cr>
autocmd FileType scss noremap <buffer> <c-f> :call CSSBeautify()<cr>
+autocmd FileType typescript nmap <buffer> <Leader>t : <C-u>echo tsuquyomi#hint()<CR>
autocmd CompleteDone * pclose " auto-close preview after completion
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -266,3 +261,8 @@ let g:indent_guides_start_level = 2
let g:indent_guides_guide_size = 1
let g:indent_guides_auto_colors = 0
highlight IndentGuidesEven ctermbg=235
+
+"Syntastic
+"=========
+let g:tsuquyomi_disable_quickfix = 1
+let g:syntastic_typescript_checkers = ['tsuquyomi']