daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set nocompatible    " be iMproved, required
  2.  
  3. " initialize vim-plug
  4. call plug#begin('~/.vim/plugged')
  5. Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
  6. Plug 'editorconfig/editorconfig-vim'
  7. Plug 'mileszs/ack.vim'
  8. Plug 'w0rp/ale'
  9. Plug 'tomasr/molokai'
  10. Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
  11. Plug 'tpope/vim-rails'
  12. Plug 'tpope/vim-bundler'
  13. Plug 'bling/vim-airline'
  14. Plug 'tpope/vim-commentary'
  15. Plug 'sheerun/vim-polyglot'
  16. Plug 'tpope/vim-surround'
  17. Plug 'burnettk/vim-angular'
  18. Plug 'mattn/emmet-vim'
  19. Plug 'slashmili/alchemist.vim'
  20. Plug 'posva/vim-vue'
  21. Plug 'isRuslan/vim-es6'
  22. Plug 'othree/yajs'
  23. Plug 'djoshea/vim-autoread'
  24. Plug 'scrooloose/nerdtree'
  25. Plug 'johngrib/vim-game-code-break'
  26. " All Plugs must be added before the following line
  27. call plug#end()            " required
  28. filetype plugin indent on    " required
  29. syntax enable
  30.  
  31. set backspace=indent,eol,start
  32.  
  33. "" Visual
  34. if $TERM_PROGRAM =~ "iTerm"
  35.   set termguicolors
  36. endif
  37.  
  38. set number
  39. set cursorcolumn
  40. set cursorline
  41. set laststatus=2
  42. colorscheme molokai
  43. let g:molokai_original = 1
  44. let g:rehash256 = 1
  45.  
  46. set guifont=Droid\ Sans\ Mono\ for\ Powerline\ Plus\ Nerd\ File\ Types\ 11
  47. "" Airline Tabs
  48. let g:airline#extensions#tabline#enabled = 1
  49. let g:airline_powerline_fonts = 1
  50. "" Indent
  51. set tabstop=2
  52. set shiftwidth=2
  53. set expandtab
  54. set autoindent
  55. set copyindent
  56. set shiftround
  57. set nowrap
  58.  
  59. "" Backups
  60. set nobackup
  61. set noswapfile
  62.  
  63. "" SilverSearcher
  64. if executable('ag')
  65.   let g:ackprg = 'ag --color --vimgrep'
  66. endif
  67.  
  68. "" Snippets
  69. let g:UltiSnipsExpandTrigger="<tab>"
  70. let g:UltiSnipsJumpForwardTrigger="<c-b>"
  71. let g:UltiSnipsJumpBackwardTrigger="<c-z>"
  72.  
  73. if has('python3')
  74.   let g:UltiSnipsUsePythonVersion = 3
  75. endif
  76.  
  77. "" Ale
  78. set statusline+=%#warningmsg#
  79. set statusline+=%{ALEGetStatusLine()}
  80. set statusline+=%*
  81.  
  82. nmap <silent> <C-k> <Plug>(ale_previous_wrap)
  83. nmap <silent> <C-j> <Plug>(ale_next_wrap)
  84.  
  85. let g:ale_statusline_format = ['⨉ %d', '⚠ %d', '⬥ ok']
  86. let g:ale_lint_on_save = 1
  87. let g:ale_lint_on_enter = 0
  88. let g:ale_open_list = 1
  89. "" Leader
  90. let mapleader=','
  91.  
  92. " no trash buttons
  93. set guioptions-=m  "remove menu bar
  94. set guioptions-=T  "remove toolbar
  95. set guioptions-=r  "remove right-hand scroll bar
  96. set guioptions-=L  "remove left-hand scroll bar
  97.  
  98. " Nerdtree
  99. map <C-n> :NERDTreeToggle<CR>
  100. let NERDTreeShowHidden=1
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