-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
123 lines (98 loc) · 2.3 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
" VIM configuration
" Uses Vundle for plug-ins.
" Some options for {G,M}VIM are set, too.
" Based on file by Kevin Dungs <[email protected]>
"
" Author: Julian Wishahi <[email protected]>
" Date: 2015-04-21
" Load plug-ins via Vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#rc()
" List of plug-ins
"Plugin 'Valloric/YouCompleteMe'
Plugin 'airblade/vim-gitgutter'
Plugin 'bling/vim-airline'
Plugin 'fatih/vim-go'
Plugin 'gmarik/vundle'
Plugin 'guns/xterm-color-table.vim'
Plugin 'kien/ctrlp.vim'
Plugin 'mattn/emmet-vim'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/syntastic'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'tpope/vim-dispatch'
Plugin 'tpope/vim-fireplace'
Plugin 'tpope/vim-fugitive'
filetype plugin indent on
" Encoding
set enc=utf-8
" Visual helpers
set number
set ruler
" share copy/paste etc. buffer with OS
set clipboard=unnamed
" Wildmenu
set wildmenu
set wildmode=list:longest,full
set wildignore=*.o,*~,*.pyc
" Misc
set autoread
set backspace=2
set hlsearch
set ignorecase
set incsearch
set lazyredraw
set magic
set showmatch
set smartcase
" Colours
syntax enable
colorscheme tomorrow-night
"colorscheme tomorrow
"set background=light
"colorscheme solarized
" Options for {G,M}VIM
if has("gui_running")
set guioptions-=T
set guioptions-=r
set guioptions-=m
set guifont=Source\ Code\ Pro\ for\ Powerline:h14
autocmd VimResized * wincmd =
endif
" White-space handling
set autoindent
set expandtab
set shiftwidth=2
set smartindent
set smarttab
set tabstop=4
set wrap
" Mouse
set mouse=a
set nohidden
" Spell-checker
set spell spelllang=en_gb
set nospell
" Plug-in specific settings
"" Airline
set laststatus=2
let g:airline_powerline_fonts = 1
"let g:airline#extensions#tabline#enabled = 1
"let g:airline#extensions#tabline#buffer_nr_show = 1
"" Clang-format
map <C-K> :pyf ~/.vim/clang-format/clang-format.py<CR>
imap <C-K> <ESC>:pyf ~/.vim/clang-format/clang-format.py<CR>i
"" Ctrl-p
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
"" NERDTree
let NERDTreeIgnore=['\~$', '^\.git', '\.swp$', '\.DS_Store$']
let NERDTreeShowHidden=1
map <C-t> :NERDTreeToggle<CR>
"" Syntastic
"let g:syntastic_enable_signs=1
"let g:syntastic_javascript_checkers = ['jslint']
"let g:syntastic_json_checkers = ['jsonlint']
"let g:syntastic_python_checkers = ['pep8']