Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible
- filetype off
- set shell=/bin/bash
- filetype plugin indent on
- set number
- set tabstop=4
- set shiftwidth=4
- set expandtab
- set colorcolumn=80,81,82,83,84,85
- call plug#begin('~/.vim/plugged')
- Plug 'elixir-lang/vim-elixir'
- Plug 'yuttie/comfortable-motion.vim'
- Plug 'Valloric/YouCompleteMe'
- Plug 'tikhomirov/vim-glsl'
- Plug 'vim-airline/vim-airline'
- Plug 'vim-airline/vim-airline-themes'
- Plug 'junegunn/goyo.vim'
- Plug 'scrooloose/nerdtree'
- Plug 'lervag/vimtex'
- Plug 'easymotion/vim-easymotion'
- Plug 'vim-python/python-syntax'
- call plug#end()
- " Clear highlighting
- nnoremap <esc> :noh<return><esc>
- " Clipboard on yank
- set clipboard+=unnamedplus
- " Python-Syntax
- let g:python_highlight_all = 1
- " Easy motion
- map <Leader>L <Plug>(easymotion-bd-jk)
- map <Leader>w <Plug>(easymotion-bd-w)
- " Latex
- let g:vimtex_compiler_latexmk = {'callback' : 0}
- let g:vimtex_latexmk_options = '-pdf -shell-escape -verbose -file-line-error -synctex=1 -interaction=nonstopmode'
- let g:vimtex_view_general_viewer = 'zathura'
- " Airline
- let g:airline_theme = 'term'
- let g:airline_powerline_fonts = 1
- let g:airline_left_sep = ''
- let g:airline_right_sep =''
- set linespace=0
- let g:ycm_global_ycm_extra_conf = '~/.vim/plugged/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py'
- let g:ycm_confirm_extra_conf = 0
- set completeopt-=preview
- " panes
- nnoremap <C-J> <C-W><C-J>
- nnoremap <C-K> <C-W><C-K>
- nnoremap <C-L> <C-W><C-L>
- nnoremap <C-H> <C-W><C-H>
- " nerdtree
- map <C-T> :NERDTreeToggle<CR>
- " xonsh
- au BufRead,BufNewFile *.xonshrc set filetype=python
- au BufRead,BufNewFile *.xsh set filetype=python
- " recording
- noremap Q @q
- " whitespace
- noremap <C-W> :%s/\s\+$//e <CR>
- " colors?
- set t_Co=256
- :colorscheme peachpuff
- highlight ExtraWhitespace ctermbg=red guibg=red
- match ExtraWhitespace /\s\+$/
- " visual DSD
- au BufNewFile,BufRead *.dsd set filetype=ocaml
- " CS 131 (imp)
- au BufNewFile,BufRead *.imp set filetype=lisp
- " Comfortable Motion
- let g:comfortable_motion_no_default_key_mappings = 1
- nnoremap <silent> <C-j> :call comfortable_motion#flick(100)<CR>
- nnoremap <silent> <C-k> :call comfortable_motion#flick(-100)<CR>
- let g:comfortable_motion_scroll_down_key = "j"
- let g:comfortable_motion_scroll_up_key = "k"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement