Skip to content

Instantly share code, notes, and snippets.

@92hackers
Forked from skyuplam/.tmux.conf
Created November 12, 2019 12:58
Show Gist options
  • Save 92hackers/d286b33a3a9e128587566fbf5c969287 to your computer and use it in GitHub Desktop.
Save 92hackers/d286b33a3a9e128587566fbf5c969287 to your computer and use it in GitHub Desktop.

Revisions

  1. @skyuplam skyuplam revised this gist Mar 10, 2017. 1 changed file with 66 additions and 11 deletions.
    77 changes: 66 additions & 11 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -37,8 +37,9 @@ Plug 'haya14busa/incsearch-fuzzy.vim'
    " tern for vim for javascript
    Plug 'ternjs/tern_for_vim'


    " YCM
    Plug 'Valloric/YouCompleteMe'
    Plug 'Valloric/YouCompleteMe', { 'do': './install.py --tern-completer --racer-completer' }

    Plug 'ervandew/supertab'

    @@ -50,7 +51,8 @@ Plug 'Raimondi/delimitMate'

    Plug 'vim-syntastic/syntastic'

    Plug 'nathanaelkane/vim-indent-guides'
    " Plug 'Yggdroot/indentLine'
    " Plug 'nathanaelkane/vim-indent-guides'

    Plug 'editorconfig/editorconfig-vim'

    @@ -109,6 +111,7 @@ let mapleader = ","
    " NerdCommenter
    " Add spaces after comment delimiters by default
    let g:NERDSpaceDelims = 1
    let g:NERDDefaultAlign = 'left'


    " Syntax Color
    @@ -140,14 +143,19 @@ set ignorecase " Case insensitive search
    set smartcase " Case sensitive when uc present
    set wildmenu " Show list instead of just completing
    set wildmode=list:longest,full " Command <Tab> completion, list matches, then longest common part, then all.
    set wildignore=*.swp " ignore swp files in completion
    set whichwrap=b,s,h,l,<,>,[,] " Backspace and cursor keys wrap too
    set scrolljump=5 " Lines to scroll when cursor leaves screen
    set modeline " Always show modeline
    set scrolloff=3 " Minimum lines to keep above and below cursor
    set foldenable " Auto fold code
    set foldlevelstart=10 " open most folds by default to
    set foldnestmax=10 " 10 nested fold max
    set list
    set listchars=tab:›\ ,trail:•,extends:#,nbsp:. " Highlight problematic whitespace
    autocmd FileType c,cpp,java,go,php,javascript,puppet,python,rust,twig,xml,yml,perl,sql
    set shell=/bin/zsh
    set gdefault " Add the `g` flag to search/replace by default

    set tabpagemax=15 " Only show 15 tabs
    set showmode " Display the current mode
    @@ -174,7 +182,7 @@ set statusline+=%{SyntasticStatuslineFlag()}
    set statusline+=%*

    let g:syntastic_shell = "/bin/zsh"
    let g:syntastic_always_populate_loc_list = 1
    let g:syntastic_always_populate_loc_list = 0
    let g:syntastic_aggregate_errors = 1
    let g:syntastic_auto_loc_list = 1
    let g:syntastic_check_on_open = 1
    @@ -192,11 +200,15 @@ let g:EditorConfig_exec_path = '/usr/local/bin/editorconfig'

    " vim-indent-guides config
    " set background=dark
    hi IndentGuidesOdd ctermbg=black
    hi IndentGuidesEven ctermbg=darkgrey
    let g:indent_guides_start_level=2
    let g:indent_guides_guide_size=1
    " hi IndentGuidesOdd ctermbg=black
    " hi IndentGuidesEven ctermbg=darkgrey
    " let g:indent_guides_start_level=2
    " let g:indent_guides_guide_size=1

    " IndentGuide
    " let g:indentLine_enabled = 1
    " let g:indentLine_color_term = 239
    " let g:indentLine_color_gui = '#616161'

    " indent space
    filetype plugin indent on
    @@ -215,7 +227,8 @@ autocmd FileType make setlocal noexpandtab shiftwidth=8 softtabstop=0

    " Column width guide
    if exists('+colorcolumn')
    set colorcolumn=80
    set textwidth=80
    set colorcolumn=+1
    else
    au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
    endif
    @@ -244,11 +257,16 @@ let g:jsx_ext_required = 0
    " Ignore files and directories
    let g:ctrlp_working_path_mode = 'ra'
    let g:ctrlp_custom_ignore = {
    \ 'dir': '\v[\/](\.git|\.hg|\.svn|node_modules)$',
    \ 'dir': '\v[\/](\.git|\.hg|\.svn|node_modules|build|dist)$',
    \ 'file': '\v\.(exe|so|dll|pyc)$',
    \ }
    let g:ctrlp_mruf_max = 250 " track recently used files
    let g:ctrlp_max_height = 20 " provide more space to display results
    let g:ctrlp_switch_buffer = '' " don't try to switch buffers

    if executable('ag')
    let s:ctrlp_fallback = 'ag %s --nocolor -l -g ""'
    let s:ctrlp_fallback = 'ag -Q %s --hidden --nocolor -l -g ""'
    let s:ctrlp_use_caching = 0 " ag is fast enough that ctrlp doesn't need to cache
    elseif executable('ack-grep')
    let s:ctrlp_fallback = 'ack-grep %s --nocolor -f'
    elseif executable('ack')
    @@ -272,12 +290,30 @@ let g:nerdtree_tabs_open_on_gui_startup=0
    " ag search
    if executable('ag')
    let g:ackprg = 'ag --vimgrep'
    " Use ag over grep
    set grepprg=ag\ --nogroup\ --nocolor

    endif

    " NERDTree Git plugin
    let g:NERDTreeIndicatorMapCustom = {
    \ "Modified" : "",
    \ "Staged" : "",
    \ "Untracked" : "",
    \ "Renamed" : "",
    \ "Unmerged" : "",
    \ "Deleted" : "",
    \ "Dirty" : "",
    \ "Clean" : "✔︎",
    \ "Ignored" : "👻",
    \ "Unknown" : "?"
    \ }


    " YouCompleteMe
    let g:acp_enableAtStartup = 0
    let g:ycm_python_binary_path = '/usr/local/bin/python3'
    let g:ycm_collect_identifiers_from_tags_files = 1 " Enable completion from tags

    " Enable omni completion.
    autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
    @@ -286,6 +322,9 @@ autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
    autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
    set completeopt-=preview

    " Autocompolete with dictoinary words when spell check is on
    set complete+=kspell

    " Emmet-vim
    " Enable in different mode
    let g:user_emmet_mode='a' "enable all function in all mode.
    @@ -301,6 +340,16 @@ if has('nvim')
    let g:python3_host_prog = '/usr/local/bin/python3'
    endif

    if !has('nvim')
    set ttyfast
    endif

    set nocompatible
    set nobackup
    set nowritebackup
    set noswapfile


    " Use Truecolors
    set termguicolors

    @@ -351,7 +400,13 @@ map z/ <Plug>(incsearch-fuzzy-/)
    map z? <Plug>(incsearch-fuzzy-?)
    map zg/ <Plug>(incsearch-fuzzy-stay)
    " Switch between the last two files
    nnoremap <leader><leader> <c-^>
    " JSON
    nmap <leader>jt <Esc>:%!python -m json.tool<CR><Esc>:set filetype=json<CR>
    let g:vim_json_syntax_conceal = 0
    " edit vimrc and reload vimrc - mnemonic: (e)dit(v)imrc, (r)eload(v)imrc
    nnoremap <leader>ev :tabe $MYVIMRC<CR>
    nnoremap <leader>rv :source $MYVIMRC<CR>
  2. @skyuplam skyuplam revised this gist Feb 22, 2017. 1 changed file with 93 additions and 14 deletions.
    107 changes: 93 additions & 14 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,11 @@ call plug#begin('~/.vim/plugged')

    " A tree explorer plugin for vim. https://github.com/scrooloose/nerdtree
    Plug 'scrooloose/nerdtree'
    " Plug 'Xuyuanp/nerdtree-git-plugin'
    Plug 'Xuyuanp/nerdtree-git-plugin'
    Plug 'jistr/vim-nerdtree-tabs'

    " Search
    Plug 'mileszs/ack.vim'

    " Active fork of kien/ctrlp.vim—Fuzzy file, buffer, mru, tag, etc finder
    " http://ctrlpvim.github.com/ctrlp.vim
    @@ -22,14 +26,26 @@ Plug 'tpope/vim-surround'
    " https://github.com/scrooloose/nerdcommenter
    Plug 'scrooloose/nerdcommenter'

    " Monokai color scheme for Vim converted from Textmate theme
    Plug 'sickill/vim-monokai'

    Plug 'ryanoasis/vim-devicons'
    " Tagbar
    Plug 'majutsushi/tagbar'


    Plug 'haya14busa/incsearch.vim'
    Plug 'haya14busa/incsearch-fuzzy.vim'

    " tern for vim for javascript
    Plug 'ternjs/tern_for_vim'

    " YCM
    Plug 'Valloric/YouCompleteMe'

    Plug 'ervandew/supertab'

    " vim Markdown
    Plug 'godlygeek/tabular'
    Plug 'plasticboy/vim-markdown'

    Plug 'Raimondi/delimitMate'

    Plug 'vim-syntastic/syntastic'
    @@ -40,14 +56,22 @@ Plug 'editorconfig/editorconfig-vim'

    Plug 'tpope/vim-fugitive'

    " A Vim plugin which shows a git diff in the gutter (sign column) and stages/undoes hunks.
    Plug 'airblade/vim-gitgutter'

    Plug 'tpope/vim-git'

    Plug 'easymotion/vim-easymotion'

    Plug 'vim-airline/vim-airline'
    Plug 'vim-airline/vim-airline-themes'

    Plug 'pangloss/vim-javascript'
    Plug 'mxw/vim-jsx'

    " Vim bundle for styled-components based javascript files.
    Plug 'fleischie/vim-styled-components'

    Plug 'terryma/vim-multiple-cursors'

    Plug 'tpope/vim-unimpaired'
    @@ -64,6 +88,10 @@ Plug 'mhinz/vim-startify'

    Plug 'tmhedberg/matchit'

    " Monokai color scheme for Vim converted from Textmate theme
    Plug 'tomasr/molokai'
    Plug 'ryanoasis/vim-devicons'

    " Add plugins to &runtimepath
    call plug#end()

    @@ -90,7 +118,15 @@ set mouse=a " Automatically enable mouse usage
    set mousehide " Hide the mouse cursor while typing
    scriptencoding utf-8
    set encoding=utf-8
    set guifont=Sauce\ Code\ Pro\ Nerd\ Font\ Complete:h12
    " Set font
    if has("gui_running")
    if has("gui_gtk2")
    set guifont=Knack\ Regular\ Nerd\ Font\ Complete\ h12
    elseif has("gui_macvim")
    set guifont=Knack\ Regular\ Nerd\ Font\ Complete:h12
    endif
    endif

    set scrolloff=3
    set showmode
    set showcmd
    @@ -111,6 +147,7 @@ set foldenable " Auto fold code
    set list
    set listchars=tab:›\ ,trail:•,extends:#,nbsp:. " Highlight problematic whitespace
    autocmd FileType c,cpp,java,go,php,javascript,puppet,python,rust,twig,xml,yml,perl,sql
    set shell=/bin/zsh

    set tabpagemax=15 " Only show 15 tabs
    set showmode " Display the current mode
    @@ -136,12 +173,13 @@ set statusline+=%#warningmsg#
    set statusline+=%{SyntasticStatuslineFlag()}
    set statusline+=%*

    let g:syntastic_shell = "/bin/sh"
    let g:syntastic_shell = "/bin/zsh"
    let g:syntastic_always_populate_loc_list = 1
    let g:syntastic_aggregate_errors = 1
    let g:syntastic_auto_loc_list = 1
    let g:syntastic_check_on_open = 1
    let g:syntastic_check_on_wq = 1
    let g:syntactic_javascript_checkers = ['eslint']
    let g:syntastic_check_on_wq = 0
    let g:syntastic_javascript_checkers = ['eslint']
    let g:syntastic_javascript_eslint_exec = 'eslint_d'
    let g:syntastic_python_checkers = ['pylint']

    @@ -163,11 +201,17 @@ let g:indent_guides_guide_size=1
    " indent space
    filetype plugin indent on
    " show existing tab with 4 spaces width
    set tabstop=4
    set tabstop=2
    " when indenting with '>', use 4 spaces width
    set shiftwidth=4
    set shiftwidth=2
    " on pressing tab, insert 4 spaces
    set expandtab
    set smarttab
    set autoindent
    " in makefiles, don't expand tabs to spaces, since actual tab characters are
    " needed, and have indentation at 8 chars to be sure that all indents are tabs
    " (despite the mappings later):
    autocmd FileType make setlocal noexpandtab shiftwidth=8 softtabstop=0

    " Column width guide
    if exists('+colorcolumn')
    @@ -190,16 +234,18 @@ let g:airline_theme='dark'
    let g:airline_powerline_fonts=1 " enable powerline fonts
    set laststatus=2 " appear all the time

    " Use 256 colors
    set t_Co=256

    " Vim-jsx
    let g:jsx_ext_required = 0

    " CtrlP config
    " Ignore files and directories
    let g:ctrlp_working_path_mode = 'ra'
    " set wildignore+=*/tmp/*,*.so,*.swp,*.zip
    let g:ctrlp_custom_ignore = {
    \ 'dir': '\.git$\|\.hg$\|\.svn$\|node_modules$',
    \ 'file': '\.exe$\|\.so$\|\.dll$\|\.pyc$',
    \ 'dir': '\v[\/](\.git|\.hg|\.svn|node_modules)$',
    \ 'file': '\v\.(exe|so|dll|pyc)$',
    \ }
    if executable('ag')
    let s:ctrlp_fallback = 'ag %s --nocolor -l -g ""'
    @@ -211,18 +257,28 @@ else
    let s:ctrlp_fallback = 'find %s -type f'
    endif


    " NerdTree
    let NERDTreeIgnore=['\.py[cd]$', '\~$', '\.swo$', '\.swp$', '^\.git$', '^\.hg$', '^\.svn$', '\.bzr$']
    let NERDTreeIgnore=['\.py[cd]$',
    \ '\~$', '\.swo$', '\.swp$', '^\.git$',
    \ '^\.hg$', '^\.svn$', '\.bzr$', '\.DS_Store$']
    let NERDTreeChDirMode=0
    let NERDTreeQuitOnOpen=1
    let NERDTreeMouseMode=2
    let NERDTreeShowHidden=1
    let NERDTreeKeepTreeInNewTab=1
    let g:nerdtree_tabs_open_on_gui_startup=0

    " ag search
    if executable('ag')
    let g:ackprg = 'ag --vimgrep'
    endif


    " YouCompleteMe
    let g:acp_enableAtStartup = 0
    let g:ycm_python_binary_path = '/usr/local/bin/python3'

    " Enable omni completion.
    autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
    autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
    @@ -237,6 +293,16 @@ let g:user_emmet_mode='a' "enable all function in all mode.
    let g:user_emmet_install_global = 0
    autocmd FileType html,css,javascript EmmetInstall

    " Nvim specific config
    if has('nvim')
    " Program to use for evaluating Python code. Setting this makes startup faster.
    " Also useful for working with virtualenvs.
    let g:python_host_prog = '/usr/local/bin/python'
    let g:python3_host_prog = '/usr/local/bin/python3'
    endif

    " Use Truecolors
    set termguicolors

    " -----------------------------------------------
    " Key Mapping
    @@ -272,7 +338,20 @@ inoremap ˚ <Esc>:m .-2<CR>==gi
    vnoremap :m '>+1<CR>gv=gv
    vnoremap ˚ :m '<-2<CR>gv=gv
    " Tagbar
    nmap <leader>tt :TagbarToggle<CR>
    " incsearch.vim
    map / <Plug>(incsearch-forward)
    map ? <Plug>(incsearch-backward)
    map g/ <Plug>(incsearch-stay)
    " fuzzy search
    map z/ <Plug>(incsearch-fuzzy-/)
    map z? <Plug>(incsearch-fuzzy-?)
    map zg/ <Plug>(incsearch-fuzzy-stay)
    " JSON
    nmap <leader>jt <Esc>:%!python -m json.tool<CR><Esc>:set filetype=json<CR>
    let g:vim_json_syntax_conceal = 0

  3. @skyuplam skyuplam revised this gist Jan 9, 2017. 2 changed files with 17 additions and 2 deletions.
    3 changes: 3 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,9 @@ set-option -g default-shell $SHELL
    set -g default-terminal 'screen-256color'
    setw -g automatic-rename off
    setw -g mode-keys vi
    setw -g mode-mouse on
    setw -g mouse-select-pane on
    setw -g mouse-utf8 on

    unbind C-b
    set -g prefix C-a
    16 changes: 14 additions & 2 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -128,15 +128,20 @@ endif


    " vim-syntastic/syntastic config
    let g:syntastic_mode_map = { 'mode': 'active',
    \ 'active_filetypes': ['python', 'javascript', 'javascript.jsx'],
    \ 'passive_filetypes': [] }

    set statusline+=%#warningmsg#
    set statusline+=%{SyntasticStatuslineFlag()}
    set statusline+=%*

    let g:syntastic_shell = "/bin/sh"
    let g:syntastic_always_populate_loc_list = 1
    let g:syntastic_auto_loc_list = 1
    let g:syntastic_check_on_open = 1
    let g:syntastic_check_on_wq = 0
    let g:syntactic_javascript_checkers = ['eslint', 'flow']
    let g:syntastic_check_on_wq = 1
    let g:syntactic_javascript_checkers = ['eslint']
    let g:syntastic_javascript_eslint_exec = 'eslint_d'
    let g:syntastic_python_checkers = ['pylint']

    @@ -225,6 +230,13 @@ autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
    autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
    set completeopt-=preview

    " Emmet-vim
    " Enable in different mode
    let g:user_emmet_mode='a' "enable all function in all mode.
    " Enable just for html/css/javascript
    let g:user_emmet_install_global = 0
    autocmd FileType html,css,javascript EmmetInstall


    " -----------------------------------------------
    " Key Mapping
  4. @skyuplam skyuplam revised this gist Jan 4, 2017. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -252,6 +252,14 @@ nmap <silent> <c-j> :wincmd j<CR>
    nmap <silent> <c-h> :wincmd h<CR>
    nmap <silent> <c-l> :wincmd l<CR>
    " Mappings to move lines
    nnoremap :m .+1<CR>==
    nnoremap ˚ :m .-2<CR>==
    inoremap <A-j> <Esc>:m .+1<CR>==gi
    inoremap ˚ <Esc>:m .-2<CR>==gi
    vnoremap :m '>+1<CR>gv=gv
    vnoremap ˚ :m '<-2<CR>gv=gv

    " JSON
    nmap <leader>jt <Esc>:%!python -m json.tool<CR><Esc>:set filetype=json<CR>
  5. @skyuplam skyuplam revised this gist Dec 21, 2016. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -30,6 +30,8 @@ Plug 'ryanoasis/vim-devicons'
    " YCM
    Plug 'Valloric/YouCompleteMe'

    Plug 'Raimondi/delimitMate'

    Plug 'vim-syntastic/syntastic'

    Plug 'nathanaelkane/vim-indent-guides'
    @@ -56,6 +58,8 @@ Plug 'python-mode/python-mode'

    Plug 'tpope/vim-repeat'

    Plug 'mattn/emmet-vim'

    Plug 'mhinz/vim-startify'

    Plug 'tmhedberg/matchit'
    @@ -160,6 +164,13 @@ set shiftwidth=4
    " on pressing tab, insert 4 spaces
    set expandtab

    " Column width guide
    if exists('+colorcolumn')
    set colorcolumn=80
    else
    au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
    endif

    " Line Number
    set relativenumber
    set number
  6. @skyuplam skyuplam revised this gist Dec 19, 2016. 1 changed file with 47 additions and 2 deletions.
    49 changes: 47 additions & 2 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -59,7 +59,6 @@ Plug 'tpope/vim-repeat'
    Plug 'mhinz/vim-startify'

    Plug 'tmhedberg/matchit'
    Plug 'Townk/vim-autoclose'

    " Add plugins to &runtimepath
    call plug#end()
    @@ -91,7 +90,28 @@ set guifont=Sauce\ Code\ Pro\ Nerd\ Font\ Complete:h12
    set scrolloff=3
    set showmode
    set showcmd
    set backspace=indent,eol,start
    set backspace=indent,eol,start "Backspace for dummies
    set linespace=0 " No extra spaces between rows
    set showmatch " Show matching brackets/parenthesis
    set incsearch " Find as you type search
    set hlsearch " Highlight search terms
    set winminheight=0 " Windows can be 0 line high
    set ignorecase " Case insensitive search
    set smartcase " Case sensitive when uc present
    set wildmenu " Show list instead of just completing
    set wildmode=list:longest,full " Command <Tab> completion, list matches, then longest common part, then all.
    set whichwrap=b,s,h,l,<,>,[,] " Backspace and cursor keys wrap too
    set scrolljump=5 " Lines to scroll when cursor leaves screen
    set scrolloff=3 " Minimum lines to keep above and below cursor
    set foldenable " Auto fold code
    set list
    set listchars=tab:›\ ,trail:•,extends:#,nbsp:. " Highlight problematic whitespace
    autocmd FileType c,cpp,java,go,php,javascript,puppet,python,rust,twig,xml,yml,perl,sql

    set tabpagemax=15 " Only show 15 tabs
    set showmode " Display the current mode
    set cursorline " Highlight the current line



    if has('clipboard')
    @@ -175,6 +195,26 @@ else
    let s:ctrlp_fallback = 'find %s -type f'
    endif

    " NerdTree
    let NERDTreeIgnore=['\.py[cd]$', '\~$', '\.swo$', '\.swp$', '^\.git$', '^\.hg$', '^\.svn$', '\.bzr$']
    let NERDTreeChDirMode=0
    let NERDTreeQuitOnOpen=1
    let NERDTreeMouseMode=2
    let NERDTreeShowHidden=1
    let NERDTreeKeepTreeInNewTab=1
    let g:nerdtree_tabs_open_on_gui_startup=0


    " YouCompleteMe
    let g:acp_enableAtStartup = 0
    " Enable omni completion.
    autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
    autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
    autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
    autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
    set completeopt-=preview


    " -----------------------------------------------
    " Key Mapping
    " -----------------------------------------------
    @@ -200,3 +240,8 @@ nmap <silent> <c-k> :wincmd k<CR>
    nmap <silent> <c-j> :wincmd j<CR>
    nmap <silent> <c-h> :wincmd h<CR>
    nmap <silent> <c-l> :wincmd l<CR>

    " JSON
    nmap <leader>jt <Esc>:%!python -m json.tool<CR><Esc>:set filetype=json<CR>
    let g:vim_json_syntax_conceal = 0
  7. @skyuplam skyuplam revised this gist Dec 19, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -59,6 +59,7 @@ Plug 'tpope/vim-repeat'
    Plug 'mhinz/vim-startify'

    Plug 'tmhedberg/matchit'
    Plug 'Townk/vim-autoclose'

    " Add plugins to &runtimepath
    call plug#end()
  8. @skyuplam skyuplam revised this gist Dec 19, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -58,6 +58,8 @@ Plug 'tpope/vim-repeat'

    Plug 'mhinz/vim-startify'

    Plug 'tmhedberg/matchit'

    " Add plugins to &runtimepath
    call plug#end()

  9. @skyuplam skyuplam revised this gist Dec 19, 2016. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -177,8 +177,10 @@ endif
    " -----------------------------------------------
    "

    " NERDTree
    map <C-e> :NERDTreeToggle<CR>
    " Fugitive
    nnoremap <silent> <leader>gs :Gstatus<CR>
    nnoremap <silent> <leader>gd :Gdiff<CR>
    nnoremap <silent> <leader>gc :Gcommit<CR>
    @@ -189,3 +191,9 @@ nnoremap <silent> <leader>gw :Gwrite<CR>
    nnoremap <silent> <leader>ge :Gedit<CR>
    nnoremap <silent> <leader>gi :Git add -p %<CR>
    nnoremap <silent> <leader>gg :SignifyToggle<CR>
    " Use ctrl-[hjkl] to select the active split!
    nmap <silent> <c-k> :wincmd k<CR>
    nmap <silent> <c-j> :wincmd j<CR>
    nmap <silent> <c-h> :wincmd h<CR>
    nmap <silent> <c-l> :wincmd l<CR>
  10. @skyuplam skyuplam revised this gist Dec 18, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -56,6 +56,8 @@ Plug 'python-mode/python-mode'

    Plug 'tpope/vim-repeat'

    Plug 'mhinz/vim-startify'

    " Add plugins to &runtimepath
    call plug#end()

  11. @skyuplam skyuplam revised this gist Dec 18, 2016. 1 changed file with 13 additions and 8 deletions.
    21 changes: 13 additions & 8 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -22,9 +22,6 @@ Plug 'tpope/vim-surround'
    " https://github.com/scrooloose/nerdcommenter
    Plug 'scrooloose/nerdcommenter'

    " numbers.vim is a plugin for intelligently toggling line numbers
    Plug 'myusuf3/numbers.vim'

    " Monokai color scheme for Vim converted from Textmate theme
    Plug 'sickill/vim-monokai'

    @@ -157,13 +154,21 @@ let g:jsx_ext_required = 0

    " CtrlP config
    " Ignore files and directories
    set wildignore+=*/tmp/*,*.so,*.swp,*.zip
    let g:ctrlp_working_path_mode = 'ra'
    " set wildignore+=*/tmp/*,*.so,*.swp,*.zip
    let g:ctrlp_custom_ignore = {
    \ 'dir': '\v[\/]\.(git|hg|svn)$',
    \ 'file': '\v\.(exe|so|dll)$',
    \ 'link': 'some_bad_symbolic_links',
    \ 'dir': '\.git$\|\.hg$\|\.svn$\|node_modules$',
    \ 'file': '\.exe$\|\.so$\|\.dll$\|\.pyc$',
    \ }
    let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
    if executable('ag')
    let s:ctrlp_fallback = 'ag %s --nocolor -l -g ""'
    elseif executable('ack-grep')
    let s:ctrlp_fallback = 'ack-grep %s --nocolor -f'
    elseif executable('ack')
    let s:ctrlp_fallback = 'ack %s --nocolor -f'
    else
    let s:ctrlp_fallback = 'find %s -type f'
    endif

    " -----------------------------------------------
    " Key Mapping
  12. @skyuplam skyuplam revised this gist Dec 18, 2016. No changes.
  13. @skyuplam skyuplam revised this gist Dec 18, 2016. 1 changed file with 184 additions and 0 deletions.
    184 changes: 184 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,184 @@

    " -----------------------------------------------
    " Plugins loading for Vim Plug
    " -----------------------------------------------

    " Specify a directory for plugins (for Neovim: ~/.local/share/nvim/plugged)
    call plug#begin('~/.vim/plugged')

    " A tree explorer plugin for vim. https://github.com/scrooloose/nerdtree
    Plug 'scrooloose/nerdtree'
    " Plug 'Xuyuanp/nerdtree-git-plugin'

    " Active fork of kien/ctrlp.vim—Fuzzy file, buffer, mru, tag, etc finder
    " http://ctrlpvim.github.com/ctrlp.vim
    Plug 'ctrlpvim/ctrlp.vim'

    " surround.vim: quoting/parenthesizing made simple
    " http://www.vim.org/scripts/script.php?script_id=1697
    Plug 'tpope/vim-surround'

    " Comment functions so powerful—no comment necessary.
    " https://github.com/scrooloose/nerdcommenter
    Plug 'scrooloose/nerdcommenter'

    " numbers.vim is a plugin for intelligently toggling line numbers
    Plug 'myusuf3/numbers.vim'

    " Monokai color scheme for Vim converted from Textmate theme
    Plug 'sickill/vim-monokai'

    Plug 'ryanoasis/vim-devicons'

    " YCM
    Plug 'Valloric/YouCompleteMe'

    Plug 'vim-syntastic/syntastic'

    Plug 'nathanaelkane/vim-indent-guides'

    Plug 'editorconfig/editorconfig-vim'

    Plug 'tpope/vim-fugitive'

    Plug 'tpope/vim-git'

    Plug 'vim-airline/vim-airline'
    Plug 'vim-airline/vim-airline-themes'

    Plug 'pangloss/vim-javascript'
    Plug 'mxw/vim-jsx'

    Plug 'terryma/vim-multiple-cursors'

    Plug 'tpope/vim-unimpaired'

    Plug 'ntpeters/vim-better-whitespace'

    Plug 'python-mode/python-mode'

    Plug 'tpope/vim-repeat'

    " Add plugins to &runtimepath
    call plug#end()



    "
    " -----------------------------------------------
    " Config
    " -----------------------------------------------
    "

    " Set mapleader
    let mapleader = ","

    " NerdCommenter
    " Add spaces after comment delimiters by default
    let g:NERDSpaceDelims = 1


    " Syntax Color
    syntax on " Syntax highlighting
    colorscheme monokai
    set mouse=a " Automatically enable mouse usage
    set mousehide " Hide the mouse cursor while typing
    scriptencoding utf-8
    set encoding=utf-8
    set guifont=Sauce\ Code\ Pro\ Nerd\ Font\ Complete:h12
    set scrolloff=3
    set showmode
    set showcmd
    set backspace=indent,eol,start


    if has('clipboard')
    if has('unnamedplus') " When possible use + register for copy-paste
    set clipboard=unnamed,unnamedplus
    else
    set clipboard=unnamed
    endif
    endif


    " vim-syntastic/syntastic config
    set statusline+=%#warningmsg#
    set statusline+=%{SyntasticStatuslineFlag()}
    set statusline+=%*

    let g:syntastic_always_populate_loc_list = 1
    let g:syntastic_auto_loc_list = 1
    let g:syntastic_check_on_open = 1
    let g:syntastic_check_on_wq = 0
    let g:syntactic_javascript_checkers = ['eslint', 'flow']
    let g:syntastic_javascript_eslint_exec = 'eslint_d'
    let g:syntastic_python_checkers = ['pylint']

    " To ensure that this plugin works well with Tim Pope's fugitive, use the
    " following patterns array:
    let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']

    let g:EditorConfig_exec_path = '/usr/local/bin/editorconfig'


    " vim-indent-guides config
    " set background=dark
    hi IndentGuidesOdd ctermbg=black
    hi IndentGuidesEven ctermbg=darkgrey
    let g:indent_guides_start_level=2
    let g:indent_guides_guide_size=1


    " indent space
    filetype plugin indent on
    " show existing tab with 4 spaces width
    set tabstop=4
    " when indenting with '>', use 4 spaces width
    set shiftwidth=4
    " on pressing tab, insert 4 spaces
    set expandtab

    " Line Number
    set relativenumber
    set number

    " Add %{fugitive#statusline()} to your statusline to get an indicator including
    " the current branch and the currently edited file's commit. If you don't have
    " a statusline, this one matches the default when 'ruler' is set:
    " set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P

    " Set airline theme
    let g:airline_theme='dark'
    let g:airline_powerline_fonts=1 " enable powerline fonts
    set laststatus=2 " appear all the time

    " Vim-jsx
    let g:jsx_ext_required = 0

    " CtrlP config
    " Ignore files and directories
    set wildignore+=*/tmp/*,*.so,*.swp,*.zip
    let g:ctrlp_custom_ignore = {
    \ 'dir': '\v[\/]\.(git|hg|svn)$',
    \ 'file': '\v\.(exe|so|dll)$',
    \ 'link': 'some_bad_symbolic_links',
    \ }
    let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']

    " -----------------------------------------------
    " Key Mapping
    " -----------------------------------------------
    "

    map <C-e> :NERDTreeToggle<CR>
    nnoremap <silent> <leader>gs :Gstatus<CR>
    nnoremap <silent> <leader>gd :Gdiff<CR>
    nnoremap <silent> <leader>gc :Gcommit<CR>
    nnoremap <silent> <leader>gb :Gblame<CR>
    nnoremap <silent> <leader>gp :Git push<CR>
    nnoremap <silent> <leader>gr :Gread<CR>
    nnoremap <silent> <leader>gw :Gwrite<CR>
    nnoremap <silent> <leader>ge :Gedit<CR>
    nnoremap <silent> <leader>gi :Git add -p %<CR>
    nnoremap <silent> <leader>gg :SignifyToggle<CR>
  14. @skyuplam skyuplam created this gist Dec 18, 2016.
    51 changes: 51 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    set -g default-command 'reattach-to-user-namespace $SHELL --login'
    set-option -g default-shell $SHELL
    set -g default-terminal 'screen-256color'
    setw -g automatic-rename off
    setw -g mode-keys vi

    unbind C-b
    set -g prefix C-a

    # resize panes like vim
    bind-key -r < resize-pane -L 3
    bind-key -r > resize-pane -R 3
    bind-key -r + resize-pane -U 1
    bind-key -r = resize-pane -D 1

    # move between panes
    bind h select-pane -L
    bind j select-pane -D
    bind k select-pane -U
    bind l select-pane -R
    bind-key -r C-h select-window -t :-
    bind-key -r C-l select-window -t :+

    # # Statusbar settings
    #
    # # toggle statusbar
    bind-key s set status
    #
    # # use vi-style key bindings in the status line
    set -g status-keys vi

    # List of plugins
    set -g @plugin 'tmux-plugins/tpm'
    set -g @plugin 'tmux-plugins/tmux-sensible'
    set -g @plugin 'tmux-plugins/tmux-resurrect'
    set -g @plugin 'tmux-plugins/tmux-yank'
    set -g @plugin 'tmux-plugins/tmux-resurrect'
    set -g @plugin 'tmux-plugins/tmux-continuum'

    # Other examples:
    # set -g @plugin 'github_username/plugin_name'
    # set -g @plugin '[email protected]/user/plugin'
    # set -g @plugin '[email protected]/user/plugin'

    set -g @shell_mode 'vi'

    # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
    run '~/.tmux/plugins/tpm/tpm'

    # Add powerline as Tmux statusline
    source '/usr/local/lib/python3.5/site-packages/powerline/bindings/tmux/powerline.conf'