-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
102 lines (80 loc) · 2.25 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
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
102
" Inital settings
set nocompatible | filetype indent plugin on | syn on
augroup reload_vimrc " {
autocmd!
autocmd BufWritePost $MYVIMRC source $MYVIMRC
augroup END " }
" set runtime path to include Vudnle and Initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Vundle Plugin
Plugin 'VundleVim/Vundle.vim'
" Plugins
Plugin 'tpope/vim-fugitive'
Plugin 'vim-airline/vim-airline'
" Plugin 'davidhalter/jedi-vim'
Plugin 'flazz/vim-colorschemes'
Plugin 'powerline/fonts'
" Plugin 'Shougo/neocomplete'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'altercation/vim-colors-solarized'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/nerdcommenter'
" Plugin 'ervandew/supertab'
Plugin 'mattn/emmet-vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'tpope/vim-eunuch'
Plugin 'tpope/vim-surround'
Plugin 'w0rp/ale'
Plugin 'tpope/vim-commentary'
Plugin 'wellle/targets.vim'
Plugin 'dylanaraps/wal.vim'
" Snipmate Plugins
Plugin 'MarcWeber/vim-addon-mw-utils'
" Plugin 'tomtom/tlib_vim'
" Plugin 'garbas/vim-snipmate'
" Plugin 'honza/vim-snippets'
" Plugin 'MarcWeber/vim-addon-manager'
Plugin 'jiangmiao/auto-pairs'
" Autocomplete
call vundle#end()
colorscheme wal
filetype plugin indent on
let mapleader = ","
set wildmenu
set noswapfile
" colorscheme solarized
set hlsearch
set incsearch
let g:airline_powerline_fonts = 1
set backspace=2
set laststatus=2
set t_Co=256
let g:airline_theme = "ouo"
" Nerdtree options
map <C-n> :NERDTreeToggle<CR>
" Set Numbers
set relativenumber
set number
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=Black gui=NONE guifg=NONE guifg=DarkGrey guibg=NONE
highlight CursorLineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=Black gui=NONE guifg=NONE guifg=DarkGrey guibg=NONE
highlight CursorLineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=Black gui=NONE guifg=NONE guifg=DarkGrey guibg=NONE
" Tab Switching
nmap <leader>n :tabNext<CR>
nmap <leader>m :tabprevious<CR>
" Splits
set splitbelow splitright
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
map <leader>h :split<CR>
map <leader>v :vsplit<CR>
map <leader>s :w<CR>
map <leader>S :wq<CR>
" Tab Width
set tabstop=4 softtabstop=0 expandtab shiftwidth=2 smarttab
noremap H ^
noremap L g_
vnoremap // y/<C-R>"<CR>