-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
92 lines (89 loc) · 1.94 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
"Plugins
call plug#begin()
Plug 'chriskempson/base16-vim'
Plug 'vimwiki/vimwiki'
Plug 'easymotion/vim-easymotion'
Plug 'christoomey/vim-tmux-navigator'
Plug 'scrooloose/syntastic'
Plug 'scrooloose/nerdcommenter'
Plug 'scrooloose/nerdtree'
Plug 'benmills/vimux'
Plug 'mileszs/ack.vim'
Plug 'LaTeX-Box-Team/LaTeX-Box'
Plug 'tpope/vim-fugitive'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install' }
call plug#end()
" Basics
set nocompatible
let base16colorspace=256
set background=dark
colorscheme base16-eighties
filetype plugin indent on
syntax on
set clipboard=unnamed
set hidden
set nobackup
set noswapfile
set autoread
" Editing Behavior
set history=1000
set undolevels=1000
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set showmode
set showcmd
set wildmenu
set wildmode=list:longest
set visualbell
set cursorline
set ruler
set backspace=indent,eol,start
set laststatus=2
set number
set nowrap
set foldmethod=syntax
set showmatch
nnoremap / /\v
vnoremap / /\v
set gdefault
set ignorecase
set smartcase
set hlsearch
set incsearch
set autoindent
set copyindent
set relativenumber
set ttyfast
" PluginConf
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:vimwiki_folding = 'syntax'
let g:tex_flavor = 'latex'
let g:LatexBox_viewer = 'zathura'
" Bindings
inoremap <F1> <ESC>
nnoremap <F1> <ESC>
vnoremap <F1> <ESC>
inoremap jk <esc>
let mapleader=","
let maplocalleader="\\"
nmap <silent> <leader>k :NERDTreeToggle<cr>
nmap <silent> <leader>y :NERDTreeFind<cr>
nmap <silent> <leader>t :LatexView<cr>
nmap <silent> <leader>T :Latexmk<cr>
nmap <C-p> :FZF <cr>
nnoremap <leader>a :Ack
nnoremap <leader>v <C-w>v
nnoremap <leader>b <C-w>s
nnoremap <leader><space> :noh<cr>
nnoremap <tab> %
vnoremap <tab> %
nnoremap <leader>Q :q<cr>
nnoremap <leader>q :bd<cr>