forked from abbasaa/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc.txt
76 lines (64 loc) · 2.04 KB
/
vimrc.txt
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
" map jk to escape
inoremap jk <esc>
let mapleader="'"
syntax on " highlight syntax
filetype plugin on
set relativenumber " show relative line numbers
set number " show line numbers
set noswapfile " disable swapfile
set hlsearch " highlight all search results
set ignorecase " ignore case in search
set incsearch " show search results as you type
" Spelling Config
set spell spelllang=en_us " fix this later
" fix spelling with <leader>f
nnoremap <leader>f 1z=
" toggle spelling visuals cuz they're annoying
nnoremap <leader>s :set spell!
" Tab Config
set tabstop=4 " width of TAB is set to 4. still it is a \t. vim will interpret it to have width of 4
set shiftwidth=4 " indents will have a width of 4
set softtabstop=4 " sets number of columns for a TAB
set expandtab " expand TABs to be spaces
" Cursor Config
set cursorline " highlights current line
set cursorcolumn " highlights current column
" Vim-Plug
call plug#begin()
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'scrooloose/nerdtree'
Plug 'arzg/vim-colors-xcode'
Plug 'mhinz/vim-signify'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-commentary'
Plug 'w0rp/ale'
Plug 'fatih/vim-go'
Plug 'mattn/emmet-vim'
Plug 'yggdroot/indentline'
Plug 'pangloss/vim-javascript'
Plug 'terryma/vim-multiple-cursors'
Plug 'raimondi/delimitmate'
Plug 'bronson/vim-trailing-whitespace'
Plug 'octol/vim-cpp-enhanced-highlight'
Plug 'nvie/vim-flake8'
Plug 'junegunn/fzf'
" Plug 'scrooloose/syntastic' slows downs loading immensely
call plug#end()
" Signify Config
set updatetime=100 " default update time 4000ms not good for async update
let g:signify_sign_add = '+'
let g:signify_sign_change = '~'
let g:signify_sign_delete = '-'
" Set airline theme
let g:airline_theme='minimalist'
" Syntastic Config
" set statusline+=%#warningmsg#
" set statusline+=%{SyntasticStatusLineFlag()}
" set statusline+=%*
" let g:syntastic_always_populate_loc_list = 1
" let g:syntastic_auto_loc_list = 1
" let g:syntastic_check_on_open = 1
" let g:syntastic_check_on_wq = 0
" NerdTree Config