Skip to content

Instantly share code, notes, and snippets.

@mikebobadilla
Last active July 26, 2019 17:28
Show Gist options
  • Save mikebobadilla/3d43f7f7d98512c0ff5bfa13b6f9f339 to your computer and use it in GitHub Desktop.
Save mikebobadilla/3d43f7f7d98512c0ff5bfa13b6f9f339 to your computer and use it in GitHub Desktop.
My vimrc
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'mattn/emmet-vim'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'prettier/vim-prettier', {
\ 'do': 'yarn install',
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] }
" Initialize plugin system
call plug#end()
map ; :Files<CR>
map <F7> :tabprev<CR>
map <F8> :tabnext<CR>
syntax on
set tabstop=2
set softtabstop=0 noexpandtab
set shiftwidth=2
set laststatus=2
" Set backspace to default behavior (actually delete stuff)
set backspace=2
" Remember last cursor location
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
endif
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment