- Place in
~
- Uses "vim-plug" as plugin manager. You must install this as described here: https://github.com/junegunn/vim-plug#installation
- Add new plugins between
plug#begin
andplug#end
- To install plugins call
:PlugInstall
- Add new plugins between
Last active
May 15, 2018 12:50
-
-
Save baflo/f07d1ae00999e41f81472fde4c911818 to your computer and use it in GitHub Desktop.
VIM default .vimrc
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
" Add command Rdate inserting the current date in format YYYY-MM-DD | |
:command Rdate exec 'normal i'.substitute(" ".system("date +%Y-%m-%d"),"[\n]*$","","") | |
map <F2> :Rdate<CR> | |
" Specify a directory for plugins | |
" - For Neovim: ~/.local/share/nvim/plugged | |
" - Avoid using standard Vim directory names like 'plugin' | |
call plug#begin('~/.vim/plugged') | |
" Make sure you use single quotes | |
Plug 'crusoexia/vim-monokai' | |
Plug 'scrooloose/nerdcommenter' | |
Plug 'tpope/vim-speeddating' | |
" Initialize plugin system | |
call plug#end() | |
filetype plugin on | |
colorscheme monokai |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment