yithar7153_2

vimrc

Aug 23rd, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 KB | None | 0 0
  1. set nocompatible " be iMproved, required
  2. filetype off " required
  3.  
  4. set bg=dark
  5. set omnifunc=syntaxcomplete#Complete
  6.  
  7. set number
  8. set relativenumber
  9.  
  10. set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
  11. set autoindent
  12. set smartindent
  13.  
  14. set guifont=Monospace\ 14
  15.  
  16. " set the runtime path to include Vundle and initialize
  17. set rtp+=~/.vim/bundle/Vundle.vim
  18. call vundle#begin()
  19. " alternatively, pass a path where Vundle should install plugins
  20. "call vundle#begin('~/some/path/here')
  21.  
  22. " let Vundle manage Vundle, required
  23. Plugin 'VundleVim/Vundle.vim'
  24.  
  25. Plugin 'vim-airline/vim-airline'
  26. Plugin 'vim-airline/vim-airline-themes'
  27.  
  28. Plugin 'ervandew/supertab'
  29. Plugin 'mileszs/ack.vim'
  30.  
  31. Plugin 'ctrlpvim/ctrlp.vim'
  32.  
  33. Plugin 'scrooloose/syntastic'
  34. Plugin 'scrooloose/nerdtree'
  35.  
  36. Plugin 'lervag/vimtex'
  37.  
  38. "Fugitive
  39. "YouCompleteMe
  40.  
  41. Plugin 'tomtom/tcomment_vim'
  42. Plugin 'vim-scripts/ReplaceWithRegister'
  43.  
  44. Plugin 'wikitopian/hardmode'
  45.  
  46. Plugin 'flazz/vim-colorschemes'
  47.  
  48. Plugin 'tpope/vim-surround'
  49. Plugin 'leafgarland/typescript-vim'
  50.  
  51. " All of your Plugins must be added before the following line
  52. call vundle#end() " required
  53. filetype plugin indent on " required
  54. syntax on
  55. " To ignore plugin indent changes, instead use:
  56. "filetype plugin on
  57. "
  58. " Brief help
  59. " :PluginList - lists configured plugins
  60. " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
  61. " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  62. " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
  63. "
  64. " see :h vundle for more details or wiki for FAQ
  65. " Put your non-Plugin stuff after this line
  66.  
  67. " Enable the list of buffers
  68. let g:airline#extensions#tabline#enabled = 1
  69.  
  70. " Show just the filename
  71. let g:airline#extensions#tabline#fnamemod = ':t'
  72.  
  73. let g:airline#extensions#tabline#left_sep = ' '
  74. let g:airline#extensions#tabline#left_alt_sep = '|'
  75.  
  76. let g:airline_theme='luna'
  77.  
  78. "let mapleader = "-"
  79. let mapleader = "\<Space>"
  80.  
  81. " This allows buffers to be hidden if you've modified a buffer.
  82. " This is almost a must if you wish to use buffers in this way.
  83. set hidden
  84.  
  85. " To open a new empty buffer
  86. " This replaces :tabnew which I used to bind to this mapping
  87. nmap <leader>T :enew<cr>
  88.  
  89. " Move to the next buffer
  90. nmap <leader>; :bnext<CR>
  91.  
  92. " Move to the previous buffer
  93. nmap <leader>l :bprevious<CR>
  94.  
  95. " Close the current buffer and move to the previous one
  96. " This replicates the idea of closing a tab
  97. nmap <leader>bq :bp <BAR> bd #<CR>
  98.  
  99. " Show all open buffers and their status
  100. nmap <leader>bl :ls<CR>
  101.  
  102. let g:SuperTabMappingForward = '<C-tab>'
  103. let g:SuperTabMappingBackward = '<s-tab>'
  104.  
  105.  
  106. "let g:opamshare = substitute(system('opam config var share'),'\n$','','''')
  107. "execute "set rtp+=" . g:opamshare . "/merlin/vim"
  108.  
  109. nnoremap cd /\%<C-R>=virtcol(".")<CR>v\S<CR>
  110. nnoremap cu ?\%<C-R>=virtcol(".")<CR>v\S<CR>
  111.  
  112. "noremap ; l
  113. "noremap l k
  114. "noremap k j
  115. "noremap j h
  116.  
  117. noremap l h
  118. noremap ; l
  119. noremap h ;
  120.  
  121. "if (strftime('%H') >= 17 && strftime('%M') >= 10) || (strftime('%H') > 18) || (strftime('%H') < 7)
  122. if (strftime('%H') == 16 && strftime('%M') >= 50) || (strftime('%H') >= 17) || (strftime('%H') < 7)
  123. color evening
  124. else
  125. colorscheme SlateDark
  126. endif
  127.  
  128. "autocmd VimEnter,BufNewFile,BufReadPost * silent! call HardMode()
  129.  
  130. noremap <Up> <Nop>
  131. noremap <Down> <Nop>
  132. noremap <Left> <Nop>
  133. noremap <Right> <Nop>
  134.  
  135. let g:syntastic_javascript_checkers=['eslint']
  136. let g:typescript_indent_disable = 1
  137.  
  138. nnoremap <C-g> :NERDTree<CR>
  139. "autocmd BufNewFile,BufRead *.ts setlocal filetype=typescript
Advertisement
Add Comment
Please, Sign In to add comment