-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
145 lines (96 loc) · 2.64 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
execute pathogen#infect()
call pathogen#helptags()
set hidden
set incsearch
set hls
set autoindent
set lazyredraw
"set cursorline
set tabstop=4
set shiftwidth=4
set softtabstop=4
set number relativenumber
set expandtab
syntax on
set t_Co=256
"colorscheme potato
"colorscheme seoul256
colorscheme space_vim_theme
hi Search cterm=NONE ctermfg=Black ctermbg=DarkBlue
hi Visual cterm=NONE ctermfg=white ctermbg=DarkBlue
hi ALEWarning cterm=undercurl guisp=DarkYellow
hi ALEError cterm=undercurl guisp=DarkRed
hi CursorLine cterm=NONE ctermbg=black
let &t_ut=''
"supposedly will fix my background color issues
if &term =~ '256color'
" Disable Background Color Erase (BCE) so that color schemes
" work properly when Vim is used inside tmux and GNU screen.
set t_ut=
endif
"Lang specific stuff
au BufEnter *.md :setlocal spell spelllang=en_us
au BufEnter *.tex :setlocal spell spelllang=en_us
"Powerline stuff
let g:airline_powerline_fonts = 1
let g:airline_theme='angr'
inoremap jk <esc>
nnoremap <space> <nop>
"Terminal commands
:tnoremap <Esc> <C-\><C-n>
""Leader commands
let mapleader= " "
"navigation commands
noremap <leader>l $
noremap <leader>h ^h
nnoremap <leader><up> ddkP
nnoremap <leader><down> ddp
nnoremap <leader>c cc
nnoremap <leader>d dd
"removes trailing whitespace
nnoremap <leader>w :%s/\s\+$//e<CR>
"shows whitespace
nnoremap <leader>W :set list! list?<CR>
"Pastemode stuff
nnoremap <leader>p :set paste<CR>
nnoremap <leader>P :set nopaste<CR>
"pane options
nnoremap <leader>q :hide<CR>
nnoremap <leader>s :vertical unhide 2<CR>
nnoremap <leader>/ :noh<CR>
nnoremap <leader>; :
"toggle line numbers
nnoremap <leader>n :set invnumber invrelativenumber <CR>
"Plugin commands
map <leader>o :NERDTreeToggle<CR>
let NERDTreeMinimalUI = 1
let NERDTreeDirArrows = 1
"git gutter stuff
nnoremap <leader>g :GitGutterFold<cr>
"Cycling through tabs for nerd tree
nnoremap <M-j> <C-W><C-J>
nnoremap <M-k> <C-W><C-K>
nnoremap <M-l> <C-W><C-L>
nnoremap <M-h> <C-W><C-H>
"Changing split sizes
nnoremap <C-J> <C-W>-
nnoremap <C-K> <C-W>+
nnoremap <C-L> <C-W><
nnoremap <C-H> <C-W>>
set splitbelow
set splitright
"tab commands
nnoremap <leader><left> :tabp<cr>
nnoremap <leader><right> :tabn<cr>
"vimtex stuff
nmap <space>y <plug>(vimtex-compile-toggle)
" Put these lines at the very end of your vimrc file.
"ale stuff
let g:ale_sign_warning ='🗲'
let g:ale_linters = {'python': ['pyflakes']}
" Load all plugins now.
" Plugins need to be added to runtimepath before helptags can be generated.
packloadall
" Load all of the helptags now, after plugins have been loaded.
" All messages and errors will be ignored.
silent! helptags ALL