-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
61 lines (52 loc) · 1.43 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
set nocompatible
filetype on
filetype plugin on
filetype indent on
syntax on
set clipboard=unnamed
set relativenumber
set number
set expandtab
set tabstop=2
set shiftwidth=2
set autoindent
set smartindent
set wildmenu
set wildmode=list:longest
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
let mapleader = ","
nnoremap <leader>c :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
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>
nnoremap <leader>q :!zathura <C-r>=expand('%:r')<cr>.pdf &<cr>")
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'lervag/vimtex'
Plug 'vim-scripts/delimitMate.vim'
Plug 'frazrepo/vim-rainbow'
Plug 'preservim/nerdtree'
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif
let g:deoplete#enable_at_startup = 1
Plug 'Shougo/neosnippet.vim'
Plug 'Shougo/neosnippet-snippets'
" Initialize plugin system"
call plug#end()
"let g:vimtex_view_method='zathura'
let g:vimtex_view_method='skim'
"let g:vimtex_view_general_view='zathura'
let g:vimtex_quickfix_mode=0
let g:rainbow_active = 1
imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)