Skip to content

Instantly share code, notes, and snippets.

@abuturabofficial
Last active December 16, 2021 13:15
Show Gist options
  • Save abuturabofficial/e557b9f318266c3cf32c51c6b3898738 to your computer and use it in GitHub Desktop.
Save abuturabofficial/e557b9f318266c3cf32c51c6b3898738 to your computer and use it in GitHub Desktop.
Location: $HOME/.vimrc
" Set commands for vim ---------------------------------------------------------------- {{{
" Set command code goes here.
syntax on
set wrap
set number
set autoindent
set shiftwidth=4
set nocompatible
filetype on
filetype indent on
filetype plugin on
set tabstop=4
set hlsearch
set expandtab
set ignorecase
set incsearch
set laststatus=2
set wildmenu
set cursorline
set title
set mouse=a
set autoread
set confirm
set history=1000
set foldmethod=indent
set foldnestmax=3
set showcmd
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
" }}}
" PLUGINS ---------------------------------------------------------------- {{{
" Plugin code goes here.
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'preservim/nerdtree'
call plug#end()
" }}}
" MAPPINGS --------------------------------------------------------------- {{{
" Mappings code goes here.
" }}}
" VIMSCRIPT -------------------------------------------------------------- {{{
" This will enable code folding.
" Use the marker method of folding.
augroup filetype_vim
autocmd!
autocmd FileType vim setlocal foldmethod=marker
augroup END
" More Vimscripts code goes here.
" }}}
" STATUS LINE ------------------------------------------------------------ {{{
" Status bar code goes here.
" }}}
" Colors ------------------------------------------------------------ {{{
" Vim colors go here.
set background=dark
set termguicolors
" }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment