Last active
October 7, 2023 09:51
-
-
Save minamaged113/0e3af8d7737cd784aacfb9bf70aa0b03 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
" = VIM configuration example | |
" ============================================================================= | |
" == Information | |
" Author: Mina Ghobrial | https://github.com/minamaged113 | |
" Should be stored in ~/.vimrc | |
" To download vim, check https://www.vim.org/download.php | |
" On ubuntu: apt-get install vim | |
" ============================================================================= | |
" == Plugins | |
" === Plugin Manager | |
" To download a vim plugin manager (vim-plug) | |
" - check here: https://github.com/junegunn/vim-plug | |
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' | |
if empty(glob(data_dir . '/autoload/plug.vim')) | |
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
" === PLUGINS | |
" NGINX Syntax highlight plugin | |
Plug 'chr4/nginx.vim' | |
" ============================================================================= | |
" == Configuration | |
set number | |
syntax on | |
set ruler | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set expandtab | |
set cursorline | |
colorscheme industry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment