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.

Revisions

  1. mikebobadilla revised this gist Jul 26, 2019. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -3,10 +3,9 @@ Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
    Plug 'junegunn/fzf.vim'
    Plug 'mattn/emmet-vim'
    Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
    " post install (yarn install | npm install) then load plugin only for editing supported files
    Plug 'prettier/vim-prettier', {
    \ 'do': 'yarn install',
    \ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue'] }
    \ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] }

    " Initialize plugin system
    call plug#end()
  2. mikebobadilla revised this gist Jul 26, 2019. 1 changed file with 18 additions and 20 deletions.
    38 changes: 18 additions & 20 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,20 @@
    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' }
    " post install (yarn install | npm install) then load plugin only for editing supported files
    Plug 'prettier/vim-prettier', {
    \ 'do': 'yarn install',
    \ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue'] }

    " 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
    @@ -16,23 +33,4 @@ 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

    call plug#begin()

    " Emmet for ViM
    Plug 'mattn/emmet-vim'

    " On-demand loading
    Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }

    " Plugin outside ~/.vim/plugged with post-update hook
    Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }

    " post install (yarn install | npm install) then load plugin only for editing supported files
    Plug 'prettier/vim-prettier', {
    \ 'do': 'yarn install',
    \ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue'] }

    " Initialize plugin system
    call plug#end()
    endif
  3. mikebobadilla revised this gist Mar 10, 2018. 1 changed file with 15 additions and 1 deletion.
    16 changes: 15 additions & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,14 @@ 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
    @@ -12,9 +20,15 @@ endif

    call plug#begin()

    " add this line to your .vimrc file
    " Emmet for ViM
    Plug 'mattn/emmet-vim'

    " On-demand loading
    Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }

    " Plugin outside ~/.vim/plugged with post-update hook
    Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }

    " post install (yarn install | npm install) then load plugin only for editing supported files
    Plug 'prettier/vim-prettier', {
    \ 'do': 'yarn install',
  4. mikebobadilla revised this gist Mar 9, 2018. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,10 @@ call plug#begin()
    " add this line to your .vimrc file
    Plug 'mattn/emmet-vim'


    " post install (yarn install | npm install) then load plugin only for editing supported files
    Plug 'prettier/vim-prettier', {
    \ 'do': 'yarn install',
    \ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue'] }

    " Initialize plugin system
    call plug#end()
  5. mikebobadilla created this gist Mar 9, 2018.
    21 changes: 21 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    syntax on
    set tabstop=2
    set softtabstop=0 noexpandtab
    set shiftwidth=2
    set laststatus=2

    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

    call plug#begin()

    " add this line to your .vimrc file
    Plug 'mattn/emmet-vim'



    " Initialize plugin system
    call plug#end()