vim: rework Vue abbrevs, change colorscheme
This commit is contained in:
9
vimrc
9
vimrc
@@ -49,6 +49,7 @@ call plug#begin('~/.vim/plugged')
|
||||
Plug 'elixir-editors/vim-elixir'
|
||||
Plug 'elzr/vim-json'
|
||||
Plug 'rust-lang/rust.vim'
|
||||
Plug 'delphinus/vim-firestore'
|
||||
call plug#end()
|
||||
|
||||
let mapleader = ' '
|
||||
@@ -100,8 +101,9 @@ inoremap jk <esc>
|
||||
" Use 'p' to mean 'inside parantheses' in commands.
|
||||
onoremap p i(
|
||||
|
||||
color desert
|
||||
" color desert
|
||||
" colorscheme dracula
|
||||
colorscheme solarized8
|
||||
|
||||
set ignorecase smartcase
|
||||
set incsearch
|
||||
@@ -192,15 +194,14 @@ augroup filetype vue
|
||||
autocmd!
|
||||
autocmd BufRead,BufNewFile *.vue inoremap cll console.log()<left>
|
||||
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 style <style scoped><cr></style
|
||||
iabbrev stylescope <style scoped><cr></style
|
||||
augroup END
|
||||
|
||||
augroup filetype javascript
|
||||
autocmd!
|
||||
autocmd BufRead,BufNewFile *.js inoremap cll console.log()<left>
|
||||
call TabSize(2)
|
||||
" inoremap <localleader>\li logger.info("
|
||||
" inoremap <localleader>\cli <esc>3cwlogger.info("i
|
||||
iabbrev <buffer> iff if()<left>
|
||||
|
||||
Reference in New Issue
Block a user