forked from justinmc/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.vim
83 lines (65 loc) · 1.83 KB
/
init.vim
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
syntax enable
set background=dark
colorscheme solarized
set number
set ignorecase
set smartcase
set scrolloff=12 " space between cursor and bottom of screen before scroll
" Preserve undo/redo history
set undofile
" 2 space indentation
set tabstop=4
set softtabstop=0
set expandtab
set shiftwidth=2
set smarttab
" character limit column
highlight ColorColumn ctermbg=0
set colorcolumn=80
" Easy split switching
nmap <silent> <c-k> :wincmd k<CR>
nmap <silent> <c-j> :wincmd j<CR>
nmap <silent> <c-h> :wincmd h<CR>
nmap <silent> <c-l> :wincmd l<CR>
" Copy to system clipboard by hitting leader first
vnoremap <leader>y "+y
nnoremap <leader>Y "+yg_
nnoremap <leader>y "+y
nnoremap <leader>yy "+yy
" Paste from system clipboard by hitting leader first
nnoremap <leader>p "+p
nnoremap <leader>P "+P
vnoremap <leader>p "+p
vnoremap <leader>P "+P
" Remap escape
imap jj <Esc>
" eslint
" let g:neomake_javascript_enabled_makers = ['eslint']
" autocmd! BufWritePost,BufEnter * Neomake
" disable folding
set nofoldenable
" ctrlp
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f']
" vim-plug
call plug#begin('~/.vim/plugged')
" call greppage on the current line
nnoremap <leader>kk :call grepg#RunGrepGCommand(getline('.'))<CR>
" use vim-jsx on .js files too
let g:jsx_ext_required = 0
Plug 'https://github.com/ctrlpvim/ctrlp.vim.git'
" Plug 'https://github.com/neomake/neomake.git'
Plug 'https://github.com/airblade/vim-gitgutter.git'
Plug 'https://github.com/leafgarland/typescript-vim.git'
Plug 'pangloss/vim-javascript'
Plug 'https://github.com/hail2u/vim-css3-syntax.git'
Plug 'mxw/vim-jsx'
Plug 'evidanary/grepg.vim'
Plug 'https://github.com/yaymukund/vim-haxe.git'
call plug#end()
"Need vim-plug
"2 space indentation
"set tabstop=4
"set softtabstop=0
"set expandtab
"set shiftwidth=2
"set smarttab