Skip to content

Instantly share code, notes, and snippets.

@muktadirmaashif
Last active April 26, 2024 18:38
Show Gist options
  • Save muktadirmaashif/7056adde3dcc3d29b24c353c49dad3e7 to your computer and use it in GitHub Desktop.
Save muktadirmaashif/7056adde3dcc3d29b24c353c49dad3e7 to your computer and use it in GitHub Desktop.
My vimrc with all the configs and shortcuts
" PLACE IT IN /home/$USER/.
set nocompatible
if has('filetype')
filetype indent plugin on
endif
if has('syntax')
syntax on
endif
let mapleader = "\<space>"
nnoremap <C-L> :nohl<CR><C-L>
inoremap jk <esc>
vnoremap jk <esc>
nnoremap <Leader>w :w<cr>
nnoremap <Leader>q :q<cr>
nnoremap <Leader>wq :wq<cr>
"------------------------------------------------------------
set hidden
set wildmenu
set showcmd
set hlsearch
set ignorecase
set smartcase
set backspace=indent,eol,start
set autoindent
set nostartofline
set ruler
set laststatus=2
set confirm
set visualbell
set t_vb=
if has('mouse')
set mouse=a
endif
set cmdheight=2
set number
set notimeout ttimeout ttimeoutlen=200
set pastetoggle=<F11>
set shiftwidth=2
set softtabstop=2
set expandtab
colorscheme elflord
map Y y$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment