-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
84 lines (71 loc) · 2.7 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
" Vim Config file
"-------------VimPlug section start--------------
call plug#begin('~/.vim/plugger')
Plug 'flazz/vim-colorschemes'
Plug 'pangloss/vim-javascript'
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
Plug 'airblade/vim-gitgutter'
Plug 'yggdroot/indentline'
Plug 'scrooloose/syntastic'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'matze/vim-move'
Plug 'tpope/vim-surround'
Plug 'scrooloose/nerdcommenter'
Plug 'ryanoasis/vim-devicons'
Plug 'leafgarland/typescript-vim'
call plug#end()
"-----------Plugin-specific settings------------------------
" Colorscheme loaded through vim-plug
set background=dark
colorscheme atom
" Leading Spaces Option for indentline plugin
let g:indentLine_enabled=1
let g:indentLine_leadingSpaceEnabled=1
"
let g:airline_theme='base16'
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
" CtrlP settings
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" NERDTree
" after a re-source, fix syntax matching issues (concealing brackets)
if exists('g:loaded_webdevicons')
call webdevicons#refresh()
endif
"-------Random UI Stuff -------------
set showmatch
set wildmenu
set nocompatible "set vi compatibility to no
set ignorecase
set hlsearch "highlights search
set incsearch "highlights matching terms as you type
syntax on "set syntax highlighting on
set number " Show line numbers
set ruler " Show file stats
set visualbell " blink cursor instead of beeping on error
set encoding=utf-8 " encoding
" Tabs
set tabstop=4 "tab width set to 4
set expandtab "uses spaces instead of tabs
set shiftwidth=4 "indenting is 4 spaces
set autoindent "Turn on autoindent
" Folding
set foldenable
set foldlevelstart=10 "open most folds by default
set foldnestmax=10 " 10 nested fold max
set foldmethod=indent
"-------Key Mappings--------------------
let mapleader = "\<Space>" " set leader key to '<Space>'
"maps Space+; to the : function
nnoremap <Leader>; :
"maps Space+Enter to let you put in a line below w/out entering insert mode
"when in normal mode
nnoremap <Leader><CR> o<ESC>
"maps Space+w to save
nnoremap <Leader>w :w<CR>
nnoremap <Leader>W :w<CR>
nnoremap <Leader>n :NERDTree<CR>
nnoremap <Leader>p @:<CR>