update
This commit is contained in:
parent
68859e4b5c
commit
69344487b2
@ -11,7 +11,7 @@ cd ~
|
|||||||
mkdir mysql
|
mkdir mysql
|
||||||
cd mysql
|
cd mysql
|
||||||
|
|
||||||
docker run -p 3306:3306 -p 8090:80 --name mymysql -v ~/mysql/conf:/etc/mysql/conf.d -v ~/mysql/logs:/logs -v ~/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.6
|
docker run -p 3306:3306 --name mymysql -v ~/mysql/conf:/etc/mysql/conf.d -v ~/mysql/logs:/logs -v ~/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql
|
||||||
|
|
||||||
docker exec -i -t id /bin/bash
|
docker exec -i -t id /bin/bash
|
||||||
```
|
```
|
||||||
|
|||||||
26
vim/js.vim.md
Normal file
26
vim/js.vim.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# vim for js
|
||||||
|
|
||||||
|
## install
|
||||||
|
|
||||||
|
referring https://www.ratioweb.pl/blog/web-development/intelligent-code-completion-javascript-tern-project
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# .tern-project
|
||||||
|
|
||||||
|
{
|
||||||
|
"libs": [
|
||||||
|
"browser",
|
||||||
|
"underscore",
|
||||||
|
"vue"
|
||||||
|
],
|
||||||
|
"plugins": {
|
||||||
|
"vue": {},
|
||||||
|
"complete_strings": {},
|
||||||
|
"es_modules": {},
|
||||||
|
"node": {}
|
||||||
|
},
|
||||||
|
"loadEagerly": [
|
||||||
|
"src/libs/*.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
32
vim/vimrc
32
vim/vimrc
@ -40,6 +40,7 @@ let g:ale_linters = {
|
|||||||
\ 'c++': ['clang'],
|
\ 'c++': ['clang'],
|
||||||
\ 'c': ['clang'],
|
\ 'c': ['clang'],
|
||||||
\ 'python': ['flake8'],
|
\ 'python': ['flake8'],
|
||||||
|
\ 'vue':['eslint'],
|
||||||
\ }
|
\ }
|
||||||
"普通模式下,ep前往上一个错误或警告,en前往下一个错误或警告
|
"普通模式下,ep前往上一个错误或警告,en前往下一个错误或警告
|
||||||
nmap ep <Plug>(ale_previous_wrap)
|
nmap ep <Plug>(ale_previous_wrap)
|
||||||
@ -103,13 +104,17 @@ Bundle 'davidhalter/jedi-vim'
|
|||||||
Bundle 'ervandew/supertab'
|
Bundle 'ervandew/supertab'
|
||||||
let g:SuperTabDefaultCompletionType = "<c-n>"
|
let g:SuperTabDefaultCompletionType = "<c-n>"
|
||||||
|
|
||||||
|
" 前端
|
||||||
" xml html auto close
|
" xml html auto close
|
||||||
Plugin 'alvan/vim-closetag'
|
Plugin 'alvan/vim-closetag'
|
||||||
let g:jedi#documentation_command = ""
|
let g:jedi#documentation_command = ""
|
||||||
let g:closetag_filenames = '*.html,*.xhtml,*.phtml,*.launch,*.vue'
|
let g:closetag_filenames = '*.html,*.xhtml,*.phtml,*.launch,*.vue'
|
||||||
|
Plugin 'marijnh/tern_for_vim'
|
||||||
|
|
||||||
Plugin 'jiangmiao/auto-pairs'
|
Plugin 'jiangmiao/auto-pairs'
|
||||||
|
Plugin 'othree/javascript-libraries-syntax.vim'
|
||||||
|
let g:used_javascript_libs = 'vue'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Plugin 'Chiel92/vim-autoformat'
|
Plugin 'Chiel92/vim-autoformat'
|
||||||
@ -191,20 +196,7 @@ Plugin 'Xuyuanp/nerdtree-git-plugin'
|
|||||||
|
|
||||||
|
|
||||||
Plugin 'fatih/vim-go'
|
Plugin 'fatih/vim-go'
|
||||||
|
let g:go_def_mode="godef"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Plugin 'posva/vim-vue'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"Plugin 'https://github.com/taketwo/vim-ros.git'
|
"Plugin 'https://github.com/taketwo/vim-ros.git'
|
||||||
@ -384,5 +376,13 @@ endif
|
|||||||
colorscheme slate
|
colorscheme slate
|
||||||
highlight Comment ctermfg=blue
|
highlight Comment ctermfg=blue
|
||||||
|
|
||||||
|
au BufNewFile,BufRead *.html,*.js,*.vue set tabstop=2
|
||||||
|
au BufNewFile,BufRead *.html,*.js,*.vue set softtabstop=2
|
||||||
|
au BufNewFile,BufRead *.html,*.js,*.vue set shiftwidth=2
|
||||||
|
au BufNewFile,BufRead *.html,*.js,*.vue set expandtab
|
||||||
|
au BufNewFile,BufRead *.html,*.js,*.vue set autoindent
|
||||||
|
au BufNewFile,BufRead *.html,*.js,*.vue set fileformat=unix
|
||||||
|
autocmd FileType vue syntax sync fromstart
|
||||||
|
|
||||||
|
|
||||||
au BufNewFile,BufRead *.launch,*.urdf set filetype=xml
|
au BufNewFile,BufRead *.launch,*.urdf set filetype=xml
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user