Skip to content

Vim Configuration using vim-plug, dracula, nercommenter and others.

Notifications You must be signed in to change notification settings

jnfran92/my-vim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

my-vim-config

Vim Configuration using vim-plug, dracula, nercommenter and others.

Init

  • Install: https://github.com/junegunn/vim-plug

      curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
      https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    
  • Create file: .vimrc

      vim .vimrc 
    
  • Copy content below in .vimrc

  • Run vim command: :PlugInstall

File .vimrc

call plug#begin('~/.vim/plugged')

Plug 'junegunn/vim-easy-align'
Plug 'chiel92/vim-autoformat'
Plug 'tpope/vim-fugitive'
Plug 'scrooloose/nerdcommenter'
Plug 'scrooloose/nerdtree'
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'itchyny/lightline.vim'
Plug 'whatyouhide/vim-gotham'
call plug#end()

xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)
noremap <F3> :Autoformat<CR>

filetype plugin on

syntax on
color dracula
set number

map <C-o> :NERDTreeToggle<CR> 
set laststatus=2
set noshowmode

Notes:

  • Nerd Commenter: [\] + [c] +[space]
  • Numbers in vim: :set nu, :set nonu, :set number, :set nonumber

Install Oh-My-ZSH

Here an easy guide

TL;DR run this:

Linux:

sudo apt install zsh

Mac:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

About

Vim Configuration using vim-plug, dracula, nercommenter and others.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published