Skip to content

Instantly share code, notes, and snippets.

@LordShedy
Last active July 14, 2019 22:06
Show Gist options
  • Save LordShedy/2d8a0f1c78c18420367d7121ccc17eec to your computer and use it in GitHub Desktop.
Save LordShedy/2d8a0f1c78c18420367d7121ccc17eec to your computer and use it in GitHub Desktop.
Vim configuration
syn on " start using syntax highlighting
set termguicolors " using true colors in the reminal
colorscheme monokai " set custom colorscheme
set encoding=utf-8 " Encoding
set hidden " Allow hidden buffers
set ttyfast " Rendering
set cursorline " highlight current line
set cursorcolumn " highlight current collumn
syn sync fromstart " force the highlighting engine to start parsing from the top of the file
set number " enabling row numbers
set showcmd " show command in bottom bar
set showmode
nnoremap <leader><space> :nohlsearch<CR>
filetype indent on " load filetype-specific indent files
set wildmenu " visual autocomplete for command menu
set lazyredraw " redraw only when we need to.
set showmatch " highlight matching [{()}]
set list " show invisible characters
set incsearch " search as characters are entered
set visualbell " Blink cursor on error instead of beeping (grr)
set hlsearch " highlight matches
set autoindent " enabling autoindedntation
set tabstop=8 softtabstop=0 expandtab shiftwidth=2 smarttab " indents consisting of 2 spaces with tab key
set clipboard^=unnamed,unnamedplus " allowing Vim to use clipboard (unnamed is for Linux compatibility)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment