-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
26 lines (21 loc) · 844 Bytes
/
.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
execute pathogen#infect()
syntax on
filetype plugin indent on
" Nerdtree, Part 1
autocmd vimenter * NERDTree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
nmap <F6> :NERDTreeToggle<CR>
" Add bottom ribbon/status line, Part 2
set laststatus=2
set statusline=
set statusline+=\ %f "filename
set statusline+=\ %y "filetype
set statusline+=\ %p%% "percentage through file
set statusline+=\ %l:%c "Line Number:Column Number
"Add mouse functionality, Part 3
"This function is crucial because if you have a file that is 1000 lines long,
"you do not want to have to hold the down cursor just to get to the bottom of
"the file. Furthermore, you can be more precise with where you are trying to
"point, which will lead to faster and more efficient coding.
set mouse=a