vim: rework Vue abbrevs, change colorscheme

This commit is contained in:
2020-08-27 20:11:45 +01:00
parent ddfe72305b
commit 0fd7983744

9
vimrc
View File

@@ -49,6 +49,7 @@ call plug#begin('~/.vim/plugged')
Plug 'elixir-editors/vim-elixir' Plug 'elixir-editors/vim-elixir'
Plug 'elzr/vim-json' Plug 'elzr/vim-json'
Plug 'rust-lang/rust.vim' Plug 'rust-lang/rust.vim'
Plug 'delphinus/vim-firestore'
call plug#end() call plug#end()
let mapleader = ' ' let mapleader = ' '
@@ -100,8 +101,9 @@ inoremap jk <esc>
" Use 'p' to mean 'inside parantheses' in commands. " Use 'p' to mean 'inside parantheses' in commands.
onoremap p i( onoremap p i(
color desert " color desert
" colorscheme dracula " colorscheme dracula
colorscheme solarized8
set ignorecase smartcase set ignorecase smartcase
set incsearch set incsearch
@@ -192,15 +194,14 @@ augroup filetype vue
autocmd! autocmd!
autocmd BufRead,BufNewFile *.vue inoremap cll console.log()<left> autocmd BufRead,BufNewFile *.vue inoremap cll console.log()<left>
call TabSize(2) call TabSize(2)
iabbrev template <template><cr><tab><div><cr></div><cr></template iabbrev template <template><cr> <div><cr></div><cr></template
iabbrev script <script><cr>export default {<cr>name: ""<cr>};<cr></script iabbrev script <script><cr>export default {<cr>name: ""<cr>};<cr></script
iabbrev style <style scoped><cr></style iabbrev stylescope <style scoped><cr></style
augroup END augroup END
augroup filetype javascript augroup filetype javascript
autocmd! autocmd!
autocmd BufRead,BufNewFile *.js inoremap cll console.log()<left> autocmd BufRead,BufNewFile *.js inoremap cll console.log()<left>
call TabSize(2)
" inoremap <localleader>\li logger.info(" " inoremap <localleader>\li logger.info("
" inoremap <localleader>\cli <esc>3cwlogger.info("i " inoremap <localleader>\cli <esc>3cwlogger.info("i
iabbrev <buffer> iff if()<left> iabbrev <buffer> iff if()<left>