SHARE
TWEET

Untitled

a guest Apr 25th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. call plug#begin()
  2. Plug 'leafgarland/typescript-vim'
  3. Plug 'Quramy/vim-js-pretty-template'
  4. Plug 'Quramy/tsuquyomi'
  5. Plug 'Valloric/YouCompleteMe'
  6. Plug 'vim-syntastic/syntastic'
  7.  
  8. Plug 'vim-airline/vim-airline'
  9. Plug 'scrooloose/nerdtree'
  10.  
  11. Plug 'tpope/vim-surround'
  12. Plug 'majutsushi/tagbar'
  13. Plug 'vim-airline/vim-airline-themes'
  14. Plug 'ervandew/supertab'
  15.  
  16. Plug 'cocopon/iceberg.vim'
  17. Plug 'hail2u/vim-css3-syntax'
  18. "Plug ' '
  19. call plug#end()
  20.  
  21. let g:typescript_compiler_binary = 'tsc'
  22. let g:typescript_compiler_options = ''
  23. autocmd QuickFixCmdPost [^l]* nested cwindow
  24. autocmd QuickFixCmdPost    l* nested lwindow
  25.  
  26.  
  27. set statusline+=%#warningmsg#
  28. set statusline+=%{SyntasticStatuslineFlag()}
  29. set statusline+=%*
  30. let g:syntastic_check_on_open = 0
  31. let g:syntastic_check_on_wq = 0
  32. let g:tsuquyomi_disable_quickfix = 1
  33. let g:syntastic_typescript_checkers = ['tsuquyomi']
  34.  
  35.  
  36. """"MINE
  37. set bs=2
  38. set number
  39. set relativenumber
  40. set mouse=a
  41. set cursorline
  42. "hi CursorColumn cterm=NONE ctermbg=darkgray ctermfg=white guibg=darkred guifg=white
  43. hi CursorLine   cterm=NONE ctermbg=darkgray ctermfg=white guibg=darkred guifg=white
  44.  
  45. nnoremap <F3> :NERDTreeToggle ~/projeto_estudoLEDS/primeiro-proj-loiane/<CR>
  46. colorscheme industry
  47. set autochdir
  48. map <Tab> <C-W>W:cd %:p:h<CR>:<CR>
  49. nmap jq :q!<cr>
  50. """"""""""""""""""""""""""""""""""""""""""""""""""""""
  51. " testing complete from #vim-scripts
  52. " autocompleting pairs characteres '([{'
  53. set expandtab
  54. set shiftwidth=3
  55. set smarttab
  56. set autoindent
  57. set smartindent
  58.  
  59. inoremap ( ()<Esc>i
  60. inoremap [ []<Esc>i
  61. inoremap { {<CR>}<Esc>O
  62. autocmd Syntax html,vim inoremap < <lt>><Esc>i| inoremap > <c-r>=ClosePair('>')<CR>
  63. inoremap ) <c-r>=ClosePair(')')<CR>
  64. inoremap ] <c-r>=ClosePair(']')<CR>
  65. inoremap } <c-r>=CloseBracket()<CR>
  66. inoremap " <c-r>=QuoteDelim('"')<CR>
  67. inoremap ' <c-r>=QuoteDelim("'")<CR>
  68.  
  69. function ClosePair(char)
  70.  if getline('.')[col('.') - 1] == a:char
  71.  return "\<Right>"
  72.  else
  73.  return a:char
  74.  endif
  75. endf
  76.  
  77. function CloseBracket()
  78.  if match(getline(line('.') + 1), '\s*}') < 0
  79.  return "\<CR>}"
  80.  else
  81.  return "\<Esc>j0f}a"
  82.  endif
  83. endf
  84.  
  85. function QuoteDelim(char)
  86.  let line = getline('.')
  87.  let col = col('.')
  88.  if line[col - 2] == "\\"
  89.  "Inserting a quoted quotation mark into the string
  90.  return a:char
  91.  elseif line[col - 1] == a:char
  92.  "Escaping out of the string
  93.  return "\<Right>"
  94.  else
  95.  "Starting a string
  96.  return a:char.a:char."\<Esc>i"
  97.  endif
  98. endf
  99.  
  100. "" end of
  101. "last modif: 25/04/2019"
  102. """"""""""""""""""""""""""""""""""""""""""""""""""""""
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top