Npm 3 Steps

what is npm :
npm is the package manager for JavaScript. Find, share, and reuse packages of code from hundreds of thousands of developers — and assemble them in powerful new ways.

Read More

Vimrc Set File

Install Vbundle

1
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

.vimrc set file

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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
runtime! debian.vim
" =================================================================
" color schema
" =================================================================
color delek
set background=dark
" =================================================================
" set space and tab
" =================================================================
set expandtab " set tab to space
set tabstop=2 " number of visual spaces per TAB
set softtabstop=2 " number of spaces in tab when editing
set shiftwidth=2
" =================================================================
" folder setting
" =================================================================
set foldenable
set foldmethod=indent
set foldlevelstart=10 " open most folds by default
set foldnestmax=10 " 10 nested fold max
" =================================================================
" status bar and setting
" =================================================================
set wildmenu
set laststatus=2
set showcmd " Show (partial) command in status line.
" =================================================================
" search and matching
" =================================================================
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching
set incsearch " Incremental search
set hlsearch
" =================================================================
" indent
" =================================================================
set autoindent
set smartindent
" =================================================================
" other
" =================================================================
set number
set clipboard=unnamed
set autoread
set autowrite
set nocompatible
set nobackup
" =================================================================
" vim tab shotcut
" =================================================================
map <S-tab> :tabnext<CR>
map <C-t> :tabnew<CR>
map <C-x> :tabclose<CR>
" =================================================================
" move vertically by visual line
" =================================================================
nnoremap j gj
nnoremap k gk
" =================================================================
" move to beginning/end of line
" =================================================================
nnoremap B ^
nnoremap ^ <nop>
" =================================================================
" jk is escape
" =================================================================
inoremap jk <esc>
" =================================================================
" leader | edit and save vimrc shotcut
" =================================================================
let mapleader=',' " leader is comma
nnoremap <leader>ev :vsp $MYVIMRC<CR> " edit .vimrc use shotcut
nnoremap <leader>sv :source $MYVIMRC<CR> " save .vimrc use shotcut
" =================================================================
" Vundle
" =================================================================
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'itchyny/lightline.vim'
Plugin 'ervandew/supertab'
Plugin 'Yggdroot/indentLine'
Plugin 'scrooloose/nerdtree'
Plugin 'bronson/vim-trailing-whitespace'
call vundle#end()
" =================================================================
" Powerline
" =================================================================
"let g:Powerline_stl_path_style = 'filename'
let g:lightline = {
\ 'colorscheme': 'wombat',
\ }
" =================================================================
" Yggdroot/indentLine
" =================================================================
let g:indentLine_char = '┊'
let g:indentLine_leadingSpaceChar = '·'
let g:indentLine_leadingSpaceEnabled = 1
" =================================================================
" Nerdtree and Nerdtree Git Plugin
" =================================================================
let g:NERDTreeIndicatorMapCustom = {
\ "Modified" : "✹",
\ "Staged" : "✚",
\ "Untracked" : "✭",
\ "Renamed" : "➜",
\ "Unmerged" : "═",
\ "Deleted" : "✖",
\ "Dirty" : "✗",
\ "Clean" : "✔︎",
\ "Unknown" : "?"
\ }
" =================================================================
" vim-json
" =================================================================
let g:vim_json_warnings=1
let g:vim_json_syntax_conceal = 0
" =================================================================
" ctrlp
" =================================================================
set wildignore+=*/tmp/*,*/.git/*,*/.hg/*,*/.svn/*,*/target/*,*/node_modules/*
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn|build)$',
\ 'file': '\v\.(exe|so|dll|jpg|png|jpeg|class|pom|jar|pyc)$',
\ }
let g:ctrlp_match_window = 'bottom,order:btt,min:1,max:50,results:50'
let g:ctrlp_mruf_max = 250
let g:ctrlp_switch_buffer = 'Et'

let g:typescript_indent_disable = 1
let g:typescript_compiler_binary = 'tsc'
let g:typescript_compiler_options = ''
autocmd BufNewFile,BufRead *.ts setlocal filetype=typescript
syntax on

enable linux system copyboard with vim

  • install gvim and you will get +clipboard
1
2
vim --version                 // will show installed vim patches like `clipboard`
sudo apt install vim-gnome
  • then add clipboard set to .vimrc
1
set clipboard=unnamedplus    // had seted
  • shotcut keys
  1. Crtl+w w : cycle though all windows
  2. Crtl+w h : takes you left a window
  3. Crtl+w j : takes you down a window
  4. Crtl+w k : takes you up a window
  5. Crtl+w l : takes you right a window

  6. gt : change tabs

  7. vim-gitgutter plugin
    7.1 [c : change to before git modified place
    7.2 ]c : change to next git modified place

vim+nerdTree+gitgutter

tmux+vim+springBoot

Tmux macos

https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

vim macos

brew install vim
use /usr/local/bin/vim

I Love My Life

I had came to singapore for three monthes from 2016.01.27.
I start to work at ikina had been 2 monthes. I love my job so much and I love my life at singapore with my girl-friend and my sister.
I found I had leanrn so so many in this two monthed even more and more than I had learned between 2 years when I at japan.
more ……

My First Blog

This is my very first blog .

  • Start @ 2016.05.10 00:01
    I start my prosonal blog website from now on, and I will write my life style, life joy, learn and works and so on in my own blog.
    Thank you so much for Reaading my blog.I will work hard to complete my bolg well.