Last active
November 26, 2020 04:03
-
-
Save thanhnguyen2187/a8d398d075a0ae27124582b1bc8b7fbd 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
| """""""""""" | |
| " Vim Plug " | |
| """""""""""" | |
| call plug#begin('~/.vim/bundle') | |
| """"""""""""""""""" | |
| " Auto Completion " | |
| """"""""""""""""""" | |
| " Plug 'Valloric/YouCompleteMe' | |
| " nnoremap <leader>gg :YcmCompleter GoTo<CR> | |
| " nnoremap <leader>gr :YcmCompleter GoToReferences<CR> | |
| " nnoremap <leader>rr :YcmCompleter RefactorRename | |
| " nnoremap <leader>rf :YcmCompleter Format<CR> | |
| " let g:ycm_autoclose_preview_window_after_completion=1 | |
| " let g:ycm_python_binary_path='python3' | |
| " Plug 'vim-syntastic/syntastic' | |
| Plug 'Shougo/deoplete.nvim' | |
| let g:deoplete#enable_at_startup=1 | |
| let g:python3_host_prog="/usr/bin/python3" | |
| if !has('nvim') | |
| Plug 'roxma/nvim-yarp' | |
| Plug 'roxma/vim-hug-neovim-rpc' | |
| endif | |
| Plug 'dense-analysis/ale' | |
| let g:ale_linter={ | |
| \ 'rust': ['analyzer'] | |
| \} | |
| " Plug 'sheerun/vim-polyglot' | |
| " Plug 'xolox/vim-session' | |
| " Plug 'kevinhwang91/vim-ibus-sw' | |
| """"""""""""""""""" | |
| " File Navigation " | |
| """"""""""""""""""" | |
| Plug 'vim-airline/vim-airline' | |
| let g:airline#extensions#tabline#enabled = 1 | |
| let g:airline#extensions#tabline#left_sep = ' ' | |
| let g:airline#extensions#tabline#left_alt_sep = '|' | |
| Plug 'vim-airline/vim-airline-themes' | |
| let g:airline_theme='distinguished' | |
| Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
| Plug 'junegunn/fzf.vim' | |
| Plug 'mkitt/tabline.vim' | |
| Plug 'mhinz/vim-startify' | |
| " Plug 'tpope/vim-vinegar' | |
| " let g:netrw_bufsettings="noma nomod nu nobl nowrap ro rnu" | |
| " let g:netrw_liststyle=3 | |
| Plug 'tpope/vim-obsession' | |
| Plug 'tpope/vim-fugitive' | |
| " Plug 'preservim/nerdtree' | |
| " let NERDTreeShowLineNumbers=1 | |
| " autocmd FileType nerdtree setlocal relativenumber | |
| " autocmd vimenter * NERDTree | |
| " Plug 'scrooloose/nerdtree-project-plugin' | |
| " Plug 'ms-jpq/chadtree', {'branch': 'chad', 'do': ':UpdateRemotePlugins'} | |
| " autocmd vimenter * CHADopen --nofocus | |
| " autocmd FileType CHADtree setlocal number relativenumber scrolloff=999 sidescrolloff=999 | |
| " let g:chadtree_settings={'width': 28} | |
| Plug 'ryanoasis/vim-devicons' | |
| """"""""""""""""" | |
| " Code Editting " | |
| """"""""""""""""" | |
| Plug 'AndrewRadev/splitjoin.vim' | |
| Plug 'Chiel92/vim-autoformat' | |
| Plug 'FooSoft/vim-argwrap' | |
| Plug 'jiangmiao/auto-pairs' | |
| Plug 'junegunn/vim-easy-align' | |
| xmap ga <Plug>(EasyAlign) | |
| nmap ga <Plug>(EasyAlign) | |
| Plug 'tpope/vim-commentary' | |
| Plug 'tpope/vim-repeat' | |
| Plug 'tpope/vim-surround' | |
| " Python | |
| Plug 'deoplete-plugins/deoplete-jedi' | |
| Plug 'davidhalter/jedi-vim' | |
| let g:jedi#completions_enabled = 0 | |
| Plug 'vim-scripts/indentpython.vim' | |
| Plug 'vim-python/python-syntax' | |
| let python_highlight_all=1 | |
| " Plug 'numirias/semshi', { 'do': { -> fzf#install() } } | |
| " Plug 'nvie/vim-flake8' | |
| Plug 'tommcdo/vim-exchange' | |
| " Javascript | |
| Plug 'pangloss/vim-javascript' | |
| " HTML, CSS | |
| Plug 'mattn/emmet-vim' | |
| " JSON, YML, TOML | |
| Plug 'cespare/vim-toml' | |
| " Rust | |
| Plug 'rust-lang/rust.vim' | |
| " Markdown | |
| Plug 'godlygeek/tabular' | |
| " Plug 'plasticboy/vim-markdown' | |
| " let g:vim_markdown_frontmatter = 1 | |
| " let g:vim_markdown_toml_frontmatter = 1 | |
| " let g:vim_markdown_json_frontmatter = 1 | |
| " let g:vim_markdown_strikethrough = 1 | |
| Plug 'SidOfc/mkdx' | |
| " Other fixes | |
| " Plug 'dkarter/bullets.vim' | |
| " Plug 'unblevable/quick-scope' | |
| Plug 'rlue/vim-barbaric' | |
| let g:barbaric_ime = 'ibus' | |
| " Plug 'vimwiki/vimwiki' | |
| " Plug 'vimoutliner/vimoutliner' | |
| Plug 'johngrib/vim-game-code-break' | |
| call plug#end() | |
| """""""""""" | |
| " Personal " | |
| """""""""""" | |
| " Essentials | |
| set number " nu | |
| set relativenumber " rnu | |
| set scrolloff=999 " so | |
| set sidescrolloff=999 " siso | |
| set nowrap | |
| set nohlsearch " nohl | |
| set textwidth=80 " tw | |
| set colorcolumn=80 " cc | |
| highlight ColorColumn ctermbg=238 | |
| nmap <Enter> o<Esc>k | |
| " Indentation | |
| set autoindent " ai | |
| set smartindent " si | |
| set expandtab " et | |
| set tabstop=4 " ts | |
| set softtabstop=4 " sts | |
| set shiftwidth=4 " sw | |
| " Tabs | |
| " set showtabline=2 | |
| " Windows | |
| set splitbelow " sb | |
| set splitright " spr | |
| " Syntax highlighting | |
| syntax on | |
| filetype plugin on | |
| filetype plugin indent on | |
| " Options to fix tmux | |
| " set background=dark | |
| " set t_Co=256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment