-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
52 lines (46 loc) · 1.42 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
syntax on
let mapleader = " "
inoremap jk <esc>
nnoremap <leader>l <c-w>l
nnoremap <leader>h <c-w>h
nnoremap <leader>j <c-w>j
nnoremap <leader>k <c-w>k
nnoremap <leader>sv :source $MYVIMRC<cr>
nnoremap <leader>ev :edit $MYVIMRC<cr>
set laststatus=2
set relativenumber number
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set autoindent
set statusline=%f
set statusline+=\ %y
set statusline+=%=
set statusline+=C:%c\
set statusline+=L:%l/%L\
set statusline+=%p%%
" Vimscript file settings ------------- {{{
augroup filetype_vim
autocmd!
autocmd FileType vim setlocal foldmethod=marker
augroup END
" }}}
"set statusline+="=%{wordcount().words}\ words"
autocmd FileType tex setlocal statusline+="=%{wordcount().words}\ words"
autocmd FileType text setlocal statusline+="=%{wordcount().words}\ words"
autocmd FileType markdown setlocal statusline+="=%{wordcount().words}\ words"
nnoremap <leader>n :NerdTreeToggle<cr>
nnoremap <leader>doc :YcmCompleter GetDoc<cr>
nnoremap <leader>f :NERDTreeToggle<cr>
nnoremap <leader>def :YcmCompleter GoToDefinition<cr>
nnoremap <C-t> :!(alacritty --working-directory $(pwd) & disown) <CR><CR>
noremap <C-c> :!pdflatex main.tex<CR><CR>
noremap <C-p> :!zathura main.pdf & disown <cr><cr>
colorscheme torte
call plug#begin('~/.vim/plugged')
Plug 'ycm-core/YouCompleteMe'
Plug 'Raimondi/delimitMate'
Plug 'airblade/vim-gitgutter'
Plug 'preservim/NerdTree'
call plug#end()