forked from dskst/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
66 lines (57 loc) · 1.35 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
" visual
syntax on
set nu
set ruler
set cursorline
set showmatch
set list
set listchars=tab:>-,extends:<
set showcmd
set statusline+=[%{has('multi_byte')&&\&fileencoding!=''?&fileencoding:&encoding}] " char code"
" tab/indent
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=2
set autoindent
set smartindent
set smarttab
set backspace=indent,eol,start
" backup file
set nobackup
set noswapfile
" copy past
set clipboard+=unnamed
" search
set incsearch
set ignorecase
set smartcase
set hlsearch
" Vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"" Plugins
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-surround' " surround
Plugin 'cohama/lexima.vim' " quote and more, auto complete
Plugin 'jiangmiao/auto-pairs' " Insert or delete brackets and more
Plugin 'airblade/vim-gitgutter' " git diff
Plugin 'scrooloose/nerdtree' " tree view
Plugin 'w0rp/ale' " lint
Plugin 'tpope/vim-repeat' " dot repeat
Plugin 'junegunn/fzf' " fzf
Plugin 'junegunn/fzf.vim' " fzf
Plugin 'tpope/vim-commentary' " comment out
Plugin 'vim-airline/vim-airline' " status bar
Plugin 'pangloss/vim-javascript'
Plugin 'sheerun/vim-polyglot' " language packs
Plugin 'godlygeek/tabular' " markdown
Plugin 'plasticboy/vim-markdown' " markdown
" /Vundle
call vundle#end()
filetype plugin indent on
" map
source ~/.vimrc.keymap
map <C-n> :NERDTreeToggle<CR>