Last active
October 8, 2020 07:58
-
-
Save dienhoa/b22faedb1bfce0674f4171feb2ae730d to your computer and use it in GitHub Desktop.
This file contains 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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'pangloss/vim-javascript' " JavaScript support | |
Plugin 'leafgarland/typescript-vim' " TypeScript syntax | |
Plugin 'maxmellon/vim-jsx-pretty' " JS and JSX syntax | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'flazz/vim-colorschemes' | |
Plugin 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plugin 'jremmen/vim-ripgrep' | |
Plugin 'neoclide/coc.nvim' , { 'branch' : 'release' } | |
Plugin 'jiangmiao/auto-pairs' | |
Plugin 'christoomey/vim-tmux-navigator' | |
call vundle#end() " required | |
filetype plugin indent on " required | |
let g:coc_global_extensions = [ 'coc-tsserver' ] | |
let g:ctrlp_custom_ignore = '\v[\/](node_modules|target|dist)|(\.(swp|ico|git|svn))$' | |
colorscheme solarized8_dark_low | |
set number | |
set rtp+=~/.fzf | |
filetype plugin indent on | |
" On pressing tab, insert 2 spaces | |
set expandtab | |
" show existing tab with 2 spaces width | |
set tabstop=2 | |
set softtabstop=2 | |
" when indenting with '>', use 2 spaces width | |
set shiftwidth=2 | |
let mapleader="\<space>" | |
" ignore modules for ctrlp | |
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git' | |
" remove banner in tree | |
let g:netrw_banner = 0 | |
let g:netrw_winsize = 18 | |
set pastetoggle=<F2> | |
noremap <C-h> <C-w>h | |
noremap <C-j> <C-w>j | |
noremap <C-k> <C-w>k | |
noremap <C-l> <C-w>l | |
autocmd VimResized * :wincmd = | |
" zoom a vim pane, <C-w>= to re-balance | |
nnoremap <leader>- :wincmd _<cr>:wincmd \|<cr> | |
nnoremap <leader>= :wincmd =<cr> | |
set pastetoggle=<F2> | |
set autochdir | |
"-- FOLDING -- | |
set foldmethod=syntax "syntax highlighting items specify folds | |
set foldcolumn=1 "defines 1 col at window left, to indicate folding | |
let javaScript_fold=1 "activate folding by JS syntax | |
set foldlevelstart=0 "start file with all folds opened | |
set hlsearch | |
set relativenumber |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment