-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
executable file
·95 lines (70 loc) · 1.79 KB
/
.vimrc
File metadata and controls
executable file
·95 lines (70 loc) · 1.79 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
" NeoBundle Scripts-----------------------------
if has('vim_starting')
set nocompatible " Be iMproved
"Required
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
"Required
call neobundle#begin(expand('~/.vim/bundle'))
" Let NeoBundle manage NeoBundle
"Required
NeoBundleFetch 'Shougo/neobundle.vim'
" Add or remove your Bundles here:
NeoBundle 'kien/ctrlp.vim'
NeoBundle 'desert256.vim'
NeoBundle 'ervandew/supertab'
"NeoBundle 'tpope/vim-fugitive'
NeoBundle 'scrooloose/syntastic'
" You can specify revision/branch/tag.
"NeoBundle 'Shougo/vimshell', { 'rev' : '3787e5' }
"Required
call neobundle#end()
"Required
filetype plugin indent on
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
"End NeoBundle Scripts-------------------------
colorscheme desert256
"colorscheme default
syntax on "set syntax highlighting
"set tabs to 4 spaces, do not expand
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
"visible whitespace
"set listchars=tab:>-,trail:~,extends:>,precedes:<
"set nolist
"fold settings
set nofoldenable
nmap <SPACE> za
set foldlevel=99
"auto-source vimrc on save
if has("autocmd")
autocmd bufwritepost .vimrc source $MYVIMRC
endif
"normal mode shortcuts
let mapleader=";"
nmap <leader>r :e $MYVIMRC<cr>
nmap <leader>n :bn<cr>
nmap <leader>p <c-p>
nmap <leader>b :CtrlPBuffer<cr>
nmap <leader>e :Explore<cr>
nmap <leader>v :vs<cr>
nmap <leader>s :sp<cr>
nmap <leader>d :bd<cr>
nmap <Left> <<
nmap <Right> >>
nmap <Up> <Nop>
nmap <Down> <Nop>
nmap <CR> o<esc>
imap <C-j> <esc>o
imap <C-k> <esc>O
set cursorline
scriptencoding utf-8
set encoding=utf-8
let g:ctrlp_max_files=0
set wildignore+=*.swp,*/.git,*/node_modules
set hidden
set laststatus=2