-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
144 lines (115 loc) · 4.18 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
""""""""""""""""""""""""""""""""""""""""""""""""
" Vim settings by Andrei Shchatko
" E-mail: andrei.shchatko@gmail.com
""""""""""""""""""""""""""""""""""""""""""""""""
execute pathogen#infect()
" Encoding
set encoding=utf-8
set fileencodings=utf-8,cp-1251
set guifont=Menlo:h14
syntax on
set t_Co=256
" set background=light
" colorscheme solarized
set background=dark
colorscheme base16-chalk
highlight clear SignColumn
highlight VertSplit ctermbg=236
highlight ColorColumn ctermbg=237
highlight LineNr ctermbg=236 ctermfg=240
highlight CursorLineNr ctermbg=236 ctermfg=240
highlight CursorLine ctermbg=236
highlight StatusLineNC ctermbg=238 ctermfg=0
highlight StatusLine ctermbg=240 ctermfg=12
highlight IncSearch ctermbg=0 ctermfg=3
highlight Search ctermbg=0 ctermfg=9
highlight Visual ctermbg=3 ctermfg=0
highlight Pmenu ctermbg=240 ctermfg=12
highlight PmenuSel ctermbg=0 ctermfg=3
highlight SpellBad ctermbg=0 ctermfg=1
set number
" Tab is 2 spaces
set tabstop=2
set shiftwidth=2
set expandtab
" Always show current position
set ruler
set colorcolumn=80
set textwidth=80
set linebreak " Перенос не разрывая слов
set autoindent " Копирует отступ от предыдущей строки
set smartindent " Включаем 'умную' автоматическую расстановку отступов
set cursorline
set gcr=n:blinkon0 " Отключаем мигание курсора в MacVim.
set guicursor= " Выключаем мигающий курсор
set list
set listchars=tab:▸\ ,trail:·,extends:❯,precedes:❮,nbsp:·
set laststatus=2
" Cool search
set showmatch
set hlsearch
set incsearch
set ignorecase
" Powerline
let g:Powerline_symbols = 'fancy'
" NERDTree
nmap <Bs> :NERDTreeToggle<CR>
let NERDTreeShowBookmarks=1
let NERDTreeChDirMode=2
let NERDTreeQuitOnOpen=1
let NERDTreeShowHidden=1
let NERDTreeKeepTreeInNewTab=0
let NERDTreeMinimalUI=1 " Disables display of the 'Bookmarks' label and 'Press ? for help' text.
let NERDTreeDirArrows=1 " Tells the NERD tree to use arrows instead of + ~ chars when displaying directories.
let NERDTreeBookmarksFile= $HOME . '/.vim/.NERDTreeBookmarks'
" Bundles
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Vundle
Bundle 'gmarik/vundle'
" CSS/LESS
Bundle 'git://github.com/hail2u/vim-css3-syntax.git'
Bundle 'git://github.com/ap/vim-css-color.git'
Bundle 'git://github.com/groenewege/vim-less.git'
Bundle 'git://github.com/miripiruni/vim-better-css-indent.git'
Bundle 'git://github.com/miripiruni/CSScomb-for-Vim.git'
" JavaScript
Bundle 'git://github.com/pangloss/vim-javascript.git'
Bundle 'git://github.com/itspriddle/vim-jquery.git'
Bundle 'git://github.com/kchmck/vim-coffee-script.git'
Bundle 'git://github.com/walm/jshint.vim.git'
Bundle 'git://github.com/briancollins/vim-jst.git'
" Html
Bundle 'git://github.com/digitaltoad/vim-jade.git'
" Ruby/Rails
Bundle 'git://github.com/vim-ruby/vim-ruby.git'
Bundle 'git://github.com/tpope/vim-rails.git'
Bundle 'git://github.com/tpope/vim-endwise.git'
Bundle 'git://github.com/slim-template/vim-slim.git'
" Scala/Play
Bundle 'git://github.com/derekwyatt/vim-scala.git'
Bundle 'derekwyatt/vim-scala'
Bundle 'git://github.com/gre/play2vim.git'
" Clojure
Bundle 'git://github.com/vim-scripts/VimClojure.git'
" powerline
Bundle 'git://github.com/Lokaltog/vim-powerline.git'
" ctrlp
Bundle 'git://github.com/kien/ctrlp.vim.git'
" mustache
Bundle 'git://github.com/juvenn/mustache.vim.git'
" git
Bundle 'git://github.com/tpope/vim-fugitive.git'
" colors
Bundle 'chriskempson/base16-vim'
" nerdtree
Bundle 'scrooloose/nerdtree'
filetype plugin indent on " required!
filetype plugin on
set omnifunc=syntaxcomplete#Complete
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-ap prove) removal of unused bundles
" see :h vundle for more details or wiki for FAQ