-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.vimrc
More file actions
98 lines (87 loc) · 2.16 KB
/
Copy path.vimrc
File metadata and controls
98 lines (87 loc) · 2.16 KB
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
"// Author: Muki Wu
"// Website: http://www.mukispace.com
"// Date: 2013-10-03
"vundle setting
set nocompatible
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
"required
Bundle 'gmarik/vundle'
" My Bundles here:
" original repos on github
Bundle 'scrooloose/nerdtree.git'
Bundle 'tomtom/tcomment_vim'
Bundle 'ap/vim-css-color'
Bundle 'fholgado/minibufexpl.vim'
Bundle 'Shougo/neocomplcache.vim'
Bundle 'msanders/snipmate.vim'
Bundle 'mukiwu/vim-twig'
Bundle 'bling/vim-airline'
" vim-scripts repos
"Bundle 'Color-Scheme-Explorer'
" non github repos
" Bundle 'git://git.wincent.com/command-t.git'
" git repos on your local machine (ie. when working on your own plugin)
" Bundle 'file:///Users/gmarik/path/to/plugin'
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed
colorscheme Tomorrow-Night-Eighties
set background=dark
set t_Co=256
syntax on
set nobackup
set tabstop=2
set shiftwidth=4
set autoindent
set smartindent
set backspace=2
set nu!
set showmatch
set mouse=a
set ignorecase smartcase
set incsearch
set hlsearch
set cursorline
set hidden
set list
set listchars=tab:\|\ ,
syntax enable
filetype indent on
filetype plugin on
filetype plugin indent on
setlocal foldlevel=1
set foldlevelstart=99
set laststatus=2
set cmdheight=2
"plugin setting
let g:cssColorVimDoNotMessMyUpdatetime = 1
let g:neocomplcache_enable_at_startup = 1
"match
:inoremap ( ()<ESC>i
:inoremap ) <c-r>=ClosePair(')')<CR>
:inoremap { {}<Esc>i<CR><CR><Esc>ki<tab>
:inoremap } <c-r>=ClosePair('}')<CR>
:inoremap < <><Esc>i
:inoremap > <c-r>=ClosePair('>')<CR>
:inoremap " ""<Esc>i
:inoremap ' ''<Esc>i
function ClosePair(char)
if getline('.')[col('.') - 1] == a:char
return "\<Right>"
else
return a:char
endif
endf
:nmap <F2> :NERDTreeToggle<CR>
imap <c-h> <ESC>I
imap <c-l> <ESC>A
map <C-c> y
map <C-X> d
map <C-v> p
map <C-A> <Esc>ggVG
nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>