-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
47 lines (41 loc) · 1.38 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
"""~/.config/nvim/init.vim"""
:imap kj <Esc>
set clipboard=unnamed
set number
set laststatus=2
set tabstop=8
set expandtab
set shiftwidth=4
set softtabstop=4
set autoindent
autocmd FileType python nnoremap <silent> <F5> :!python %<CR>
autocmd FileType python nnoremap <silent> <F6> :update<CR>
autocmd FileType tex,latex nnoremap <silent> <F5> :!pdflatex %<CR>
autocmd FileType python setlocal omnifunc=python3complete#Complete
:highlight ExtraWhitespace ctermbg=red guibg=red
:match ExtraWhitespace /\s\+$/
hi Bang ctermfg=red guifg=red ctermbg=white guibg=white
match Bang /\%>79v.*\%<81v/
:set backspace=indent,eol,start
"""Custom better statusline at the bottom"""
set statusline=
set statusline +=%*\ %<%F%* "full path
set statusline +=%*%m%* "modified flag
set statusline +=%*%=%5l%* "current line
set statusline +=%*/%L%* "total lines
set statusline +=%*%4v\ %* "virtual column number
"""Install with :PlugInstall"""
call plug#begin()
Plug 'preservim/nerdtree'
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
Plug 'psf/black', { 'branch': 'stable' }
Plug 'APZelos/blamer.nvim'
call plug#end()
nnoremap <C-t> :NERDTreeToggle<CR>
let g:black_linelength=79
let g:blamer_enabled=1
hi Blamer ctermfg=darkgrey
highlight SignColumn ctermbg=black