-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
71 lines (65 loc) · 1.61 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
" Pathogen plugin
" https://github.com/tpope/vim-pathogen
execute pathogen#infect()
" General
" Use custom .vimrc from launch directory if existing.
:set exrc
" Add all subdirs from launch directory to path.
set path=$PWD/**
" Do not create swap file.
set noswapfile
" Enables syntax highlighting.
syntax on
" Use plugins specific to the file type.
filetype plugin on
" Enable omnicomplete.
set omnifunc=ccomplete#Complete
" Enables filetype specific indent.
filetype indent on
" Indent with spaces.
set expandtab
set shiftwidth=2
set softtabstop=2
" Enable line numbers.
set number
" Highlight current line.
set cursorline
" Highlight matching [{()}].
set showmatch
set hlsearch
" Use Powerline font for special chars.
set anti enc=utf-8
set guifont=Inconsolata\ for\ Powerline\ Medium\ 12
" Explore list style
let g:netrw_liststyle=3
" Solarized plugin
" http://ethanschoonover.com/solarized/vim-colors-solarized
" Set color scheme.
set background=dark
colorscheme solarized
if has('gui_running')
else
set t_Co=256
set term=screen-256color
let g:solarized_termcolors=256
endif
" Airline plugin
" https://github.com/bling/vim-airline
" Always show status bar.
set laststatus=2
" Show tab bar.
let g:airline#extensions#tabline#enabled = 1
" Use powerline font.
let g:airline_powerline_fonts = 0
" Vimtex plugin
" https://github.com/lervag/vimtex
" Prevent to detect a .tex file as plain text.
let g:tex_flavor = 'latex'
" Supertab plugin
" https://github.com/ervandew/supertab
" Set completion keys.
let g:SuperTabDefaultCompletionType = "context"
" FZF
set rtp+=~/.fzf
nnoremap <silent> <C-k> :Files<CR>
nnoremap <silent> <C-j> :Rg<CR>