Skip to content

Instantly share code, notes, and snippets.

@singhsays
Created November 18, 2023 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save singhsays/2549218592723b926d4063e3cc33f1cb to your computer and use it in GitHub Desktop.
Save singhsays/2549218592723b926d4063e3cc33f1cb to your computer and use it in GitHub Desktop.
vimrc
" v1.0
"Misc
highlight LineTooLong cterm=bold ctermfg=white ctermbg=red guibg=LightYellow
match LineTooLong /\%>80v.\+/
"Keymaps
cmap w!! w !sudo tee % >/dev/null
nmap <silent> ,/ :nohlsearch<CR>
nnoremap <F2> :set invpaste paste?<CR>
imap <F2> <C-O><F2>
"Variables
let is_bash=1
let g:molokai_original=1
let g:rehash256=1
let g:airline_powerline_fonts=1
let g:airline_theme='luna'
let g:airline#extensions#tabline#enabled=1
let g:airline#extensions#tmuxline#enabled=0
"Options
set nocompatible
set background=dark
set softtabstop=2
set shiftwidth=2
set tabstop=2
set expandtab
set autoindent
set smartindent
set backspace=indent,eol,start
set wildmode=list:longest,full
set shortmess+=r
set showmode
set showcmd
set hlsearch
set incsearch
set ttyfast
set title
set visualbell
set noerrorbells
set number
set nowrap
set ruler
set list listchars=tab:».,trail:»
set ignorecase
set nobackup
set t_Co=256
set laststatus=2
set hidden
set pastetoggle=<F2>
set shell=/bin/bash
syntax on
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"Vundle Plugins
Plugin 'VundleVim/Vundle.vim'
Plugin 'dracula/vim',{'name':'dracula'}
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'edkolev/tmuxline.vim'
Plugin 'chrisbra/csv.vim'
Plugin 'groenewege/vim-less'
Plugin 'elzr/vim-json'
Plugin 'avakhov/vim-yaml'
" Setup vundle
call vundle#end()
filetype plugin indent on
"Colorscheme
colorscheme dracula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment