-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
100 lines (73 loc) · 2.85 KB
/
vimrc
File metadata and controls
100 lines (73 loc) · 2.85 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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Pathogen (Plugin Manager) Settings"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
execute pathogen#infect()
filetype off
filetype plugin indent on
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Settings for installed plugins"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Vim-Airline (Powerline)
let g:airline_powerline_fonts = 1 "initialize fonts
:set laststatus=2 "set to initialize from first window
" Enable the list of buffers
"let g:airline#extensions#tabline#enabled = 1
": Show just the filename
let g:airline#extensions#tabline#fnamemod = ':t'
"Vim-Fugitive" //git wrapper
"NERDTree //directory visualization
"Vim-AutoClose" //Autoclosing brackets, parens, etc.
"Solarized" //Color scheme--installed through Pathogen
:set background=dark
:let g:solarized_termcolors=256
:let g:solarized_contrast="high"
"YouCompleteMe" // Language Autocompletion
"CtrlP // Fuzzy Matcher
"BufferGator //Buffer Manager
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"General"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
:set nocompatible "no original vi
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Apearance/Functionality"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
:syntax on "syntax highlighting
:colorscheme solarized
":set autoindent
:set sw=4 "autoindent spaces
:set ts=4 "make tab stop inserting 8 spaces!!"
:set hlsearch "highlight search results
:set textwidth=80 "line width
:set number "line numbers
:set backspace=indent,eol,start "make backspace act like normal
"try to fix delay w/ exiting from insert mode--b/c system waits for escape key
"combos timeoutlen=delay amount; ttimeoutlen=key_code_delays
set timeoutlen=1000 ttimeoutlen=10
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Key bindings"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Show directory listing-probably obsolete with other plugins!
nmap dr :Explore<CR>
" Window navigation mapped to cursor navigation
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
"Shortcuts to NERDTree directory structure
map <leader>n :NERDTreeToggle<CR>
map <leader>N :NERDTreeFind<CR>
"Highlight all instances of word in current buffer
nnoremap <Leader>h *<C-O>
"Turn off current highlighting
nmap <leader>hh :noh<CR>
"Toggle between last open buffers
nnoremap <Leader><Leader> <C-^>
"Open vimrc
nmap <Leader>vv :e $HOME/.vim/vimrc<CR>
"Tab shortcuts-tabs are not buffers!!--use sparingly
nmap t1 :tabfirst<CR>
nmap tn :tabnext<CR>
nmap tp :tabprev<CR>
nmap tl :tablast<CR>
nmap tw :tabnew<CR>
nmap tc :tabclose<CR>