-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
90 lines (67 loc) · 2.32 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
set nocompatible " be iMproved, required
filetype off " required
set backspace=indent,eol,start
set hlsearch
set t_Co=256
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
Plug 'bling/vim-airline'
" Plug 'pangloss/vim-javascript'
Plug 'Shougo/unite.vim'
" Plug 'Valloric/YouCompleteMe'
" Plug 'kien/ctrlp.vim'
Plug 'scrooloose/nerdtree'
Plug 'scrooloose/syntastic'
Plug 'wincent/command-t'
" Plug 'junegunn/seoul256.vim'
Plug 'nanotech/jellybeans.vim'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
" Initialize plugin system
call plug#end()
color jellybeans
" All of your Plugins must be added before the following line
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
set expandtab
set sw=2
set sts=2
set smarttab
set autoindent
set showmatch
set nolist " Display unprintable characters f12 - switches
set nowrap
set number
set laststatus=2
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")}
set encoding=utf-8
set fileencoding=utf-8
" Colorscheme >>>---------------------------------------------
syntax on
" set background=dark "I'm not if it should be set at all
" colorscheme jellybeans
" NERDTree ---------------------------------------------------
map <C-n> :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
" scrooloose/syntastic ---------------------------------------
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:syntastic_php_phpcs_args='--tab-width=0'
set tabstop=4
" CtrlP ------------------------------------------------------
" let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlPLastMode'
let g:ctrlp_extensions = ['buffertag', 'tag', 'line', 'dir']
if &term =~ '256color'
" disable Background Color Erase (BCE) so that color schemes
" render properly when inside 256-color tmux and GNU screen.
" see also http://snk.tuxfamily.org/log/vim-256color-bce.html
set t_ut=
endif