-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
executable file
·112 lines (82 loc) · 2.54 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
" BASIC CONFIGURATION --------------------------------------------------------
set nu
set t_Co=256
set colorcolumn=101
set relativenumber
set mouse=a
"use the globabl clipboard instead of selection clipboard
"this isn't working
set clipboard=unnamedplus
set shiftwidth=2
set tabstop=2
set softtabstop=2
set expandtab
autocmd Filetype r setlocal tabstop=2 expandtab tabstop=2 shiftwidth=2 softtabstop=2
nnoremap <C-Left> :tabprevious<CR>
nnoremap <C-Right> :tabnext<CR>
"allow recursive file finding (fuzzy finding)
set path+=**
" PLUGINS -------------------------------------------------------------------
" Install vim-plug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" VIM-POLYGLOT -----
" fix latex-box conflict for vimtex
" this has to come before the plugin section to avoid a warning
let g:polyglot_disabled = ['latex']
" Get Plugins
call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-plug'
Plug 'jpalardy/vim-slime'
Plug 'junegunn/fzf', {'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'itchyny/lightline.vim'
Plug 'frazrepo/vim-rainbow'
Plug 'preservim/nerdcommenter'
Plug 'rafi/awesome-vim-colorschemes'
Plug 'sheerun/vim-polyglot'
Plug 'vim-pandoc/vim-pandoc'
Plug 'vim-pandoc/vim-pandoc-syntax'
Plug 'vim-pandoc/vim-rmarkdown'
Plug 'lervag/vimtex'
Plug 'chrisbra/Colorizer'
Plug 'tpope/vim-surround'
Plug 'chrisbra/Colorizer'
Plug 'mattn/emmet-vim'
call plug#end()
"" PLUGIN CONFIGURATIONS -----------------------------------------------------
" vim-slime -----
let g:slime_target = "tmux"
let g:slime_python_ipython = 1
"let g:slime_paste_file = "$HOME/.slime_paste"
" COLOR SCHEME -----
syntax on
colorscheme spacecamp "onedark, jellybeans, minimalist
" Enable CursorLine
set cursorline
"highlight clear CursorLine
" Default Colors for CursorLine
"highlight CursorLine cterm=underline
hi CursorLine term=bold cterm=bold guibg=Grey40
" LIGHTLINE.VIM -----
set laststatus=2
set noshowmode
let g:lightline = {
\ 'colorscheme': 'darcula',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'FugitiveHead'
\ },
\ }
" VIM-RAINBOW -----
let g:rainbow_active=1
" VIM-PANDOC -----
let g:pandoc#modules#disabled = ['spell', 'folding']
" EMMET-VIM -----
let g:user_emmet_leader_key='<Tab>'