-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc-minimal
executable file
·102 lines (78 loc) · 2.33 KB
/
vimrc-minimal
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
99
100
101
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
Plugin 'The-NERD-tree'
Plugin 'VundleVim/Vundle.vim'
Plugin 'altercation/vim-colors-solarized'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'jiangmiao/auto-pairs'
Plugin 'justinmk/vim-sneak'
Plugin 'majutsushi/tagbar'
Plugin 'othree/html5.vim'
Plugin 'scrooloose/nerdcommenter'
Plugin 'tommcdo/vim-lion'
Plugin 'tpope/vim-repeat'
Plugin 'tpope/vim-surround'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'vim-scripts/matchit.zip'
Plugin 'xolox/vim-easytags'
Plugin 'xolox/vim-misc'
"All of your Plugins must be added before the following line
call vundle#end() "required
filetype plugin indent on "required
"___________________________________________________AFTER VUNDLE___________________________________________________
"Spacebar folding
nnoremap <space> za
vnoremap <space> zf
"Set default register to system clipboard
set clipboard=unnamed
"<C-P> to :CtrlP
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
"Tagbar key map
nmap <F7> :TagbarToggle<CR>
"<F5> to :buffers
nnoremap <F5> :buffers<CR>:buffer<Space>
"Map Ctrl+N to Nerd Tree
map <C-n> :NERDTreeToggle<CR>
"Keep Airline from disappearing when NERDTree is gone
set laststatus=2
"make backspace work like most other apps
set backspace=2
"For fast navigation
set relativenumber
set number
"Enable syntax highlighting
syntax enable
"Highlight search results
set hlsearch
"Jump to search results as you type
set incsearch
"4-space tabs
set softtabstop=4
set shiftwidth=4
set expandtab
"auto indent
set autoindent
"Highlight line cursor is on
set cursorline
"We can use different key mappings for easy navigation between splits to save a keystroke. So instead of ctrl-w then j, it’s just ctrl-j
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
"Open new split panes to right and bottom, which feels more natural than Vim’s default
set splitbelow
set splitright
"To get rid of annoying .swp files in every directory
set backupdir=./.backup,.,/tmp
set directory=./.backup,.,/tmp
colorscheme solarized
set background=dark
let g:airline_theme='solarized'
set t_Co=256
"Persistent undos
if !&diff
set undodir=~/.vim/undodir
set undofile
endif