Last active
April 8, 2024 12:10
-
-
Save kramfs/33dc3203db67bd6af4dd6801ced9ddd1 to your computer and use it in GitHub Desktop.
base vimrc config
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
" Use double-quotes for comments | |
" Enable syntax highlighting | |
syntax on | |
" Uncomment below to enable line numbers | |
"set number | |
" Install vim-plug if not found | |
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 | |
endif | |
" PLUGIN MANAGER: START | |
" Plugins will be downloaded under the specified directory. | |
call plug#begin('~/.vim/plugged') | |
" The default plugin directory will be as follows: | |
" - Vim (Linux/macOS): '~/.vim/plugged' | |
" - Vim (Windows): '~/vimfiles/plugged' | |
" - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged' | |
" You can specify a custom plugin directory by passing it as the argument | |
" - e.g. `call plug#begin('~/.vim/plugged')` | |
" - Avoid using standard Vim directory names like 'plugin' | |
" Make sure you use single quotes | |
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align | |
Plug 'junegunn/vim-easy-align' | |
" Any valid git URL is allowed | |
Plug 'https://github.com/junegunn/vim-github-dashboard.git' | |
" Multiple Plug commands can be written in a single line using | separators | |
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' | |
Plug 'vim-airline/vim-airline' | Plug 'vim-airline/vim-airline-themes' | |
" On-demand loading | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'tpope/vim-fireplace', { 'for': 'clojure' } | |
Plug 'airblade/vim-gitgutter' | |
" Initialize plugin system | |
call plug#end() | |
" PLUGIN MANAGER: END | |
"let g:airline_theme='simple' | |
let g:airline_powerline_fonts=1 | |
let g:airline#extensions#tabline#enabled=1 | |
map <F5> :NERDTreeToggle<CR> | |
" INSTRUCTION: Save the file as .vimrc, run vim and do a :PlugInstall to install plugins. | |
" TURN ON display line number: set number. | |
" TURN OFF line number: set nonumber |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment