-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
94 lines (76 loc) · 1.67 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
"general
set nocompatible
filetype plugin indent on
set encoding=utf-8
set backspace=indent,eol,start
set autoindent
set copyindent
"set shiftround
"set showmatch
set smartcase
set smarttab
set hlsearch
set incsearch
"set history=1000
"set undolevels=1000
"set wildignore=*.swp,*.bak
"set visualbell
"set noerrorbells
"set nobackup
"set noswapfile
"set mouse=a
"set pastetoggle=<F2>
" indentation settings
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
" line numers
set number relativenumber
" netrw
let g:netrw_banner = 0
" mappings
let mapleader = "\<Space>"
inoremap jk <ESC>
"map <up> <nop>
"map <down> <nop>
"map <left> <nop>
"map <right> <nop>
nmap ; :Buffers<CR>
nmap <Leader>t :Files<CR>
nmap <Leader>r :Tags<CR>
" vundle
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
"Plugin 'scrooloose/syntastic'
"Plugin 'jelera/vim-javascript-syntax'
"Plugin 'pangloss/vim-javascript'
"Plugin 'tpope/vim-surround'
"Plugin 'ervandew/supertab'
"Plugin 'nathanaelkane/vim-indent-guides'
"Plugin 'Raimondi/delimitMate'
"Plugin 'marijnh/tern_for_vim'
Plugin 'bling/vim-airline'
Plugin 'dracula/vim'
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
call vundle#end()
filetype plugin indent on
" interface
set t_Co=256
color dracula
syntax on
" 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
" eslint with syntastic
let g:syntastic_javascript_checkers = ['eslint']
" airline
set laststatus=2
let g:airline#extensions#tabline#enabled = 1