-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
101 lines (78 loc) · 1.65 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
set nocompatible
filetype indent plugin on
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1
" XXX check this one
map P :TlistToggle<CR>
syntax on
set encoding=utf8
set expandtab
set textwidth=79
set tabstop=2
set softtabstop=2
set shiftwidth=2
set autoindent
set smartindent
set backspace=indent,eol,start
set shiftround
set smartcase
set showmode
set showcmd
set autoindent
set nocindent
set paste
set number
set relativenumber
set ruler
set hlsearch
set showmatch
set incsearch
set nowrap
set mouse=a
set mousehide
set novisualbell
set history=1000
set cursorline
set cursorcolumn
set cc=80
" Command completion style
set wildmode=list:longest,list:full
set complete=slf
set listchars=trail:◃,nbsp:•
set list
autocmd FileType python set omnifunc=pythoncomplete#Complete
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
" Blank character
set lcs=tab:\→\ ,trail:~,nbsp:¤,extends:>,precedes:<
set list
function! ToggleFold()
if foldlevel('.') == 0
normal! l
else
if foldclosed('.') < 0
. foldclose
else
. foldopen
endif
endif
echo
endf
" Folding
hi FoldColumn guibg=grey78 gui=Bold guifg=DarkBlue
"set foldmethod=syntax
set foldcolumn=0
set foldclose=
set foldmethod=indent
set foldnestmax=10
set foldlevel=10
set fillchars=vert:\|,fold:\
set foldminlines=5
" Code folding toggle
noremap <space> :call ToggleFold()<CR>
" Vundle (package manager, call :BundleInstall in vim)
source ~/.vim/bundle.vim
highlight Normal ctermfg=grey ctermbg=233
" Integrate with system clipboard
set clipboard=unnamed