mirror of https://github.com/mitchell/dotfiles.git
Update .vimrc
This commit is contained in:
parent
5b44b89371
commit
1280326cf4
15
.vimrc
15
.vimrc
|
@ -37,6 +37,7 @@ Plug 'HerringtonDarkholme/yats.vim'
|
||||||
Plug 'MaxMEllon/vim-jsx-pretty'
|
Plug 'MaxMEllon/vim-jsx-pretty'
|
||||||
Plug 'fsharp/vim-fsharp', { 'do': './make' }
|
Plug 'fsharp/vim-fsharp', { 'do': './make' }
|
||||||
Plug 'hashivim/vim-terraform'
|
Plug 'hashivim/vim-terraform'
|
||||||
|
Plug 'b4b4r07/vim-hcl'
|
||||||
Plug 'PProvost/vim-ps1'
|
Plug 'PProvost/vim-ps1'
|
||||||
Plug 'vmchale/dhall-vim'
|
Plug 'vmchale/dhall-vim'
|
||||||
|
|
||||||
|
@ -71,8 +72,8 @@ nnoremap <leader>d :ALEDetail<cr>
|
||||||
nnoremap <leader>h :ALEHover<cr>
|
nnoremap <leader>h :ALEHover<cr>
|
||||||
nnoremap <leader>a :Ack<cr>
|
nnoremap <leader>a :Ack<cr>
|
||||||
nnoremap <leader>we :VimwikiAll2HTML<cr>
|
nnoremap <leader>we :VimwikiAll2HTML<cr>
|
||||||
nnoremap <leader>z :Goyo<cr>
|
nnoremap <leader>z :Goyo 101x100%<cr>
|
||||||
nnoremap <leader>Z :Goyo 110x100%<cr>
|
nnoremap <leader>Z :Goyo<cr>
|
||||||
|
|
||||||
" Allows you to use // in order to search for the visually selected text
|
" Allows you to use // in order to search for the visually selected text
|
||||||
vnoremap // y/\V<C-R>=escape(@",'/\')<CR><CR>
|
vnoremap // y/\V<C-R>=escape(@",'/\')<CR><CR>
|
||||||
|
@ -83,6 +84,8 @@ let &t_ut=''
|
||||||
let g:gruvbox_italic=1
|
let g:gruvbox_italic=1
|
||||||
colorscheme gruvbox
|
colorscheme gruvbox
|
||||||
|
|
||||||
|
highlight Normal ctermbg=None
|
||||||
|
|
||||||
let g:ackprg = 'ag --nogroup --nocolor --column'
|
let g:ackprg = 'ag --nogroup --nocolor --column'
|
||||||
|
|
||||||
let g:lightline = {
|
let g:lightline = {
|
||||||
|
@ -103,6 +106,7 @@ let g:ale_linters = {
|
||||||
\ 'cs': ['OmniSharp'],
|
\ 'cs': ['OmniSharp'],
|
||||||
\ 'terraform': ['terraform', 'tflint'],
|
\ 'terraform': ['terraform', 'tflint'],
|
||||||
\ 'ruby': ['rubocop', 'solargraph'],
|
\ 'ruby': ['rubocop', 'solargraph'],
|
||||||
|
\ 'css': ['stylelint'],
|
||||||
\}
|
\}
|
||||||
|
|
||||||
|
|
||||||
|
@ -111,7 +115,7 @@ let g:ale_fixers = {
|
||||||
\ 'graphql': ['prettier'],
|
\ 'graphql': ['prettier'],
|
||||||
\ 'javascript': ['eslint'],
|
\ 'javascript': ['eslint'],
|
||||||
\ 'typescript': ['eslint'],
|
\ 'typescript': ['eslint'],
|
||||||
\ 'css': ['prettier'],
|
\ 'css': ['prettier', 'stylelint'],
|
||||||
\ 'yaml': ['prettier'],
|
\ 'yaml': ['prettier'],
|
||||||
\ 'json': ['prettier'],
|
\ 'json': ['prettier'],
|
||||||
\ 'dart': ['dartfmt'],
|
\ 'dart': ['dartfmt'],
|
||||||
|
@ -140,11 +144,6 @@ augroup js_ft
|
||||||
autocmd BufNewFile,BufRead *.tsx set ft=typescript.tsx
|
autocmd BufNewFile,BufRead *.tsx set ft=typescript.tsx
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
augroup wiki_ft
|
|
||||||
au!
|
|
||||||
autocmd BufNewFile,BufRead *.wiki set textwidth=79
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
if exists('$TMUX')
|
if exists('$TMUX')
|
||||||
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
|
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
|
||||||
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
|
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
|
||||||
|
|
Loading…
Reference in New Issue