-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
62 lines (47 loc) · 1.04 KB
/
.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
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
"Plugins
call pathogen#infect()
syntax enable
filetype plugin indent on
"Rules
:set number relativenumber
"ctags
set tags=tags
".swp files' locations
set backupdir=/tmp//
set directory=/tmp//
set undodir=/tmp//
"Colors
colorscheme desert
let g:indentLine_color_term = 239
"Tabs
set expandtab
set tabstop =2
set softtabstop =2
set shiftwidth =2
"Switch splits
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>
set splitbelow
set splitright
"New lines without insert
nnoremap <Leader>o o<Esc>
nnoremap <Leader>O O<Esc>
set runtimepath^=~/.vim/bundle/ag
"Find files and text within files
map <leader>p <C-P>
map <leader>f :Ag!<Space>""<Left>
map <leader>P :tabnew<Enter><leader>p
map <leader>F :tabnew<Enter><leader>f
"Switch tabs
map <leader><left> gT
map <leader><right> gt
"New tabs
map <leader>t :tabnew<Enter>
map <leader>T :-1tabnew<Enter>
"Save
map <leader>s :wa<Enter>
"Quit screen
map <leader>q :q<Enter>
let g:ctrlp_match_window = 'results:100' " overcome limit imposed by max height