-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc-pc
executable file
·99 lines (78 loc) · 2.58 KB
/
vimrc-pc
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
set rtp+=~/vimfiles/bundle/Vundle.vim/
call vundle#begin('$USERPROFILE/vimfiles/bundle/')
Plugin 'vim-scripts/matchit.zip'
Plugin 'VundleVim/Vundle.vim'
Plugin 'The-NERD-tree'
Plugin 'vim-airline/vim-airline'
Plugin 'altercation/vim-colors-solarized'
Plugin 'zenburn'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-repeat'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'scrooloose/nerdcommenter'
Plugin 'justinmk/vim-sneak'
Plugin 'jiangmiao/auto-pairs'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" ________________________________________________________AFTER PLUGINS_______________________________________________
" Open splits in natural direction
set splitbelow
set splitright
" Set default register to system clipboard
set clipboard=unnamed
"<C-P> to :CtrlP
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_prompt_mappings = {
\ 'AcceptSelection("v")': ['<c-c>', '<RightMouse>'],
\ }
" 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>
"<C-B> to :buffers
nnoremap <F5> :buffers<CR>:buffer<Space>
" Automatically start NERDTree
" autocmd vimenter * NERDTree
" 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 properly in ConEmu
inoremap <Char-0x07F> <BS>
nnoremap <Char-0x07F> <BS>
set backspace=2 " make backspace work like most other apps
" For fast navigation
set relativenumber
set number
syntax enable " Enable syntax highlighting
set hlsearch " Highlight search results
set incsearch " Jump to search results as you type
set softtabstop=4 " 4-space tabs
set shiftwidth=4
set expandtab
set autoindent " auto indent
set cursorline " Highlight line cursor is on
if !has("gui_running")
set term=xterm
set t_Co=256
let &t_AB="\e[48;5;%dm"
let &t_AF="\e[38;5;%dm"
colorscheme solarized
endif
" _________________________________FOR GVIM__________________________________
if has("gui_running")
if has("gui_gtk2")
set guifont=Inconsolata\ 12
elseif has("gui_macvim")
set guifont=Menlo\ Regular:h14
elseif has("gui_win32")
set guifont=Consolas:h11:cANSI
endif
colorscheme solarized
endif
:set guioptions-=L "remove left-hand scroll bar
:set guioptions-=m
:set guioptions-=T