-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
77 lines (69 loc) · 1.44 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
" Indent
set autoindent
set smartindent
" Search
set smartcase
set ignorecase
set hlsearch
set incsearch
" Line auto wrap
set wrap
" Show current cursor position
set ruler
" Show line number
set nu
" Always show status bar
set laststatus=2
" Always show tab bar
set showtabline=2
" Show Tab autocomplete candidates
set wmnu
" Set indent width 4 spaces
set shiftwidth=4
set tabstop=4
" Remove 4 spaces at once
set smarttab
" Set IME compatible
set noimd
" Show matched parenthesis
set showmatch
" Highlight current line
set cursorline
" Enable mouse
set mouse=a
" Disable backup, swap
set noswapfile
set nobackup
set nocompatible
filetype off
" Plugins
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'scrooloose/nerdtree'
Plugin 'itchyny/lightline.vim'
Plugin 'tpope/vim-surround'
Plugin 'mhinz/vim-signify'
Plugin 'pangloss/vim-simplefold'
Plugin 'mhinz/vim-startify'
Plugin 'majutsushi/tagbar'
Plugin 'dracula/vim',{'name':'dracula'}
" Enable Vimwiki only if ~/.wiki.conf file is exists
if system("[[ -f ~/.wiki.conf ]] && printf true") == "true"
Plugin 'vimwiki/vimwiki'
endif
call vundle#end()
filetype plugin indent on
" Custom Keymap
let maplocalleader = "\\"
command Q q
" Color Scheme
colorscheme dracula
if has("syntax")
syntax on
endif
" Activate include files
for include_file in uniq(sort(globpath(&rtp, 'vim-include/*.vim', 0, 1)))
execute "source " . include_file
endfor