Advertisement
Guest User

Untitled

a guest
Jun 11th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.25 KB | None | 0 0
  1. set nocompatible
  2. filetype off
  3. set shell=/bin/bash
  4.  
  5. filetype plugin indent on
  6.  
  7. set number
  8.  
  9. set tabstop=4
  10. set shiftwidth=4
  11. set expandtab
  12.  
  13. set colorcolumn=80,81,82,83,84,85
  14.  
  15. call plug#begin('~/.vim/plugged')
  16.  
  17. Plug 'elixir-lang/vim-elixir'
  18. Plug 'yuttie/comfortable-motion.vim'
  19. Plug 'Valloric/YouCompleteMe'
  20. Plug 'tikhomirov/vim-glsl'
  21. Plug 'vim-airline/vim-airline'
  22. Plug 'vim-airline/vim-airline-themes'
  23. Plug 'junegunn/goyo.vim'
  24. Plug 'scrooloose/nerdtree'
  25. Plug 'lervag/vimtex'
  26. Plug 'easymotion/vim-easymotion'
  27. Plug 'vim-python/python-syntax'
  28.  
  29. call plug#end()
  30.  
  31. " Clear highlighting
  32. nnoremap <esc> :noh<return><esc>
  33.  
  34. " Clipboard on yank
  35. set clipboard+=unnamedplus
  36.  
  37. " Python-Syntax
  38. let g:python_highlight_all = 1
  39.  
  40. " Easy motion
  41. map <Leader>L <Plug>(easymotion-bd-jk)
  42. map  <Leader>w <Plug>(easymotion-bd-w)
  43.  
  44. " Latex
  45. let g:vimtex_compiler_latexmk = {'callback' : 0}
  46. let g:vimtex_latexmk_options = '-pdf -shell-escape -verbose -file-line-error -synctex=1 -interaction=nonstopmode'
  47. let g:vimtex_view_general_viewer = 'zathura'
  48.  
  49. " Airline
  50. let g:airline_theme = 'term'
  51. let g:airline_powerline_fonts = 1
  52. let g:airline_left_sep = ''
  53. let g:airline_right_sep =''
  54.  
  55. set linespace=0
  56.  
  57. let g:ycm_global_ycm_extra_conf = '~/.vim/plugged/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py'
  58. let g:ycm_confirm_extra_conf = 0
  59. set completeopt-=preview
  60.  
  61. " panes
  62. nnoremap <C-J> <C-W><C-J>
  63. nnoremap <C-K> <C-W><C-K>
  64. nnoremap <C-L> <C-W><C-L>
  65. nnoremap <C-H> <C-W><C-H>
  66.  
  67. " nerdtree
  68. map <C-T> :NERDTreeToggle<CR>
  69.  
  70. " xonsh
  71. au BufRead,BufNewFile *.xonshrc set filetype=python
  72. au BufRead,BufNewFile *.xsh set filetype=python
  73.  
  74. " recording
  75. noremap Q @q
  76.  
  77. " whitespace
  78. noremap <C-W> :%s/\s\+$//e <CR>
  79.  
  80. " colors?
  81. set t_Co=256
  82. :colorscheme peachpuff
  83.  
  84. highlight ExtraWhitespace ctermbg=red guibg=red
  85. match ExtraWhitespace /\s\+$/
  86.  
  87. " visual DSD
  88. au BufNewFile,BufRead *.dsd set filetype=ocaml
  89.  
  90. " CS 131 (imp)
  91. au BufNewFile,BufRead *.imp set filetype=lisp
  92.  
  93. " Comfortable Motion
  94. let g:comfortable_motion_no_default_key_mappings = 1
  95.  
  96. nnoremap <silent> <C-j> :call comfortable_motion#flick(100)<CR>
  97. nnoremap <silent> <C-k> :call comfortable_motion#flick(-100)<CR>
  98.  
  99. let g:comfortable_motion_scroll_down_key = "j"
  100. let g:comfortable_motion_scroll_up_key = "k"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement