Last active
          January 29, 2021 01:55 
        
      - 
      
- 
        Save kebien6020/6aaa0c3cd8326025f50664281258cdf2 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Don't cd $HOME | |
| set-environment -g CHERE_INVOKING 1 | |
| # Change windows / resize panes using the mouse | |
| set -g mouse on | |
| # True color | |
| set -g default-terminal "tmux-256color" | |
| set -ga terminal-overrides ",*256col*:Tc" | |
| # Alt-arrow to move cursor between panes | |
| bind -n M-Left select-pane -L | |
| bind -n M-Right select-pane -R | |
| bind -n M-Up select-pane -U | |
| bind -n M-Down select-pane -D | |
| # Leader-r to reload config | |
| bind r source-file ~/.tmux.conf | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | " Kevin Peña | |
| " Version 1.6 | |
| " enter the current millenium | |
| set nocompatible | |
| " Start from vim defaults (instead of vi defaults) | |
| source $VIMRUNTIME/vimrc_example.vim | |
| " enable syntax and plugins (for netrw) | |
| syntax enable | |
| filetype plugin on | |
| set noshowmode | |
| set backspace=indent,eol,start | |
| " Remappings | |
| map <C-n> :NERDTreeToggle<CR> | |
| map <C-PageDown> :bnext<CR> | |
| map <C-PageUp> :bprevious<CR> | |
| set wildcharm=<C-Z> | |
| nnoremap <F10> :b <C-Z> | |
| " Use semicolon as colon | |
| noremap ; : | |
| " Gain semicolon back using ;; | |
| noremap ;; ; | |
| " <leader>. to repeat the last edit on the next occurence of the word | |
| nnoremap <leader>. :let @/=@"<cr>/<cr>cgn<c-r>.<esc> | |
| inoremap jk <Esc> | |
| " Splits | |
| set splitbelow | |
| set splitright | |
| " Search down into subfolders | |
| " Provides tab-completion for all file-related tasks | |
| set path+=** | |
| " Display all matching files when we tab complete | |
| set wildmenu | |
| " Place swap files in a temporary folder | |
| " so that you can use git add -A normally | |
| set directory^=$HOME/.vim/tmp// | |
| set backupdir^=$HOME/.vim/tmp// | |
| set undodir^=$HOME/.vim/tmp// | |
| " MISC | |
| set number | |
| set mouse=a | |
| set ttymouse=sgr | |
| set hidden | |
| set encoding=utf-8 | |
| " TABS: | |
| filetype plugin indent on | |
| " show existing tab with 2 spaces width | |
| set tabstop=2 | |
| " when indenting with '>', use 2 spaces width | |
| set shiftwidth=2 | |
| " On pressing tab, insert 2 spaces | |
| set expandtab | |
| " FILE BROWSING: | |
| " Tweaks for browsing | |
| let g:netrw_banner=0 " disable annoying banner | |
| let g:netrw_browse_split=4 " previous window | |
| let g:netrw_altv=1 " open splits to the right | |
| let g:netrw_liststyle=3 " tree view | |
| let g:netrw_list_hide=netrw_gitignore#Hide() | |
| let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+' | |
| let g:netrw_winsize=25 " 25% in split view | |
| " Vim-airline: | |
| let g:airline#extensions#tabline#enabled = 1 | |
| let g:airline#extensions#tabline#formatter = 'unique_tail_improved' | |
| let g:airline_powerline_fonts = 1 | |
| " CtrlP | |
| let g:ctrlp_custom_ignore = '\v[\/](node_modules|.git)$' | |
| let g:ctrlp_map = '<c-p>' | |
| let g:ctrlp_cmd = 'CtrlPMixed' | |
| let g:ctrlp_working_path_mode = 'r' | |
| " let g:gitgutter_git_executable = 'C:\Program Files\Git\bin\git.exe' | |
| " Syntastic "set guifont=Source_Code_Pro_for_Powerline:h12:cANSI:qDRAFT | |
| 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:syntastic_javascript_checkers = ['eslint'] | |
| let g:syntastic_javascript_eslint_args = ['--fix'] | |
| "set guifont=Source_Code_Pro_for_Powerline:h12:cANSI:qDRAFT | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'tpope/vim-sensible' | |
| Plug 'leafgarland/typescript-vim' | |
| Plug 'peitalin/vim-jsx-typescript' | |
| Plug 'joshdick/onedark.vim' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'ctrlpvim/ctrlp.vim' | |
| Plug 'airblade/vim-gitgutter' | |
| Plug 'tpope/vim-fugitive' | |
| Plug 'jreybert/vimagit' | |
| "Plug 'larsbs/vimtom' | |
| Plug 'pangloss/vim-javascript' | |
| Plug 'vim-syntastic/syntastic' | |
| Plug 'MaxMEllon/vim-jsx-pretty' | |
| Plug 'Quramy/tsuquyomi' | |
| call plug#end() | |
| " Color scheme | |
| "Use 24-bit (true-color) mode in Vim/Neovim. | |
| if (has("nvim")) | |
| "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 > | |
| let $NVIM_TUI_ENABLE_TRUE_COLOR=1 | |
| endif | |
| "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 > | |
| "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd > | |
| " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 > | |
| if (has("termguicolors")) | |
| let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" | |
| let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" | |
| set termguicolors | |
| endif | |
| let g:onedark_hide_endofbuffer = 1 | |
| let g:onedark_termcolors = 256 | |
| let g:onedark_terminal_italics = 1 | |
| colorscheme onedark | |
| "colorscheme vimtom | |
| " Extra | |
| " mkdir -p on save | |
| augroup Mkdir | |
| autocmd! | |
| autocmd BufWritePre * call mkdir(expand("<afile>:p:h"), "p") | |
| augroup END | |
| " Rulers | |
| highlight OverLength ctermbg=red ctermfg=white guibg=#592929 | |
| match OverLength /\%121v.\+/ | |
| set colorcolumn=80,120 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | curl -fLo %USERPROFILE%/_vimrc https://gist.githubusercontent.com/kebien6020/6aaa0c3cd8326025f50664281258cdf2/raw/.vimrc?cachebust=12 | |
| curl -fLo %USERPROFILE%/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| vim +PlugInstall +qall | |
| md %USERPROFILE%/.vim/tmp | |
| npm i -g typescript eslint | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | curl -fLo ~/.vimrc https://gist.githubusercontent.com/kebien6020/6aaa0c3cd8326025f50664281258cdf2/raw/.vimrc?cachebust=12 | |
| curl -fLo ~/.tmux.conf https://gist.githubusercontent.com/kebien6020/6aaa0c3cd8326025f50664281258cdf2/raw/.tmux.conf?cachebust=12 | |
| curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| vim +PlugInstall +qall | |
| mkdir -p ~/.vim/tmp | |
| sudo npm i -g typescript eslint | |
| # Install symbol font from https://github.com/powerline/fonts | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment