Skip to content

Instantly share code, notes, and snippets.

@zero-pytagoras
Last active March 2, 2024 19:48
Show Gist options
  • Save zero-pytagoras/29b156158be7536534e17d4f8d2eef4a to your computer and use it in GitHub Desktop.
Save zero-pytagoras/29b156158be7536534e17d4f8d2eef4a to your computer and use it in GitHub Desktop.
vimrc
set nocompatible
if has("syntax")
" enable syntax highlighting
syntax enable
" show line numbers
set number
" set tabs to have 4 spaces
set ts=4
" indent when moving to the next line while writing code
set autoindent
" expand tabs into spaces
set expandtab
" when using the >> or << commands, shift lines by 4 spaces
set shiftwidth=4
" show the matching part of the pair for [] {} and ()
set showmatch
" enable all Python syntax highlighting features
let python_highlight_all = 1
endif
call plug#begin()
Plug 'tyru/open-browser.vim' " opens url in browser
Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw)
Plug 'https://github.com/preservim/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'https://github.com/ap/vim-css-color' " CSS Color Preview
Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'sickill/vim-monokai'
Plug 'ryanoasis/vim-devicons'
Plug 'davidhalter/jedi-vim'
Plug 'chase/vim-ansible-yaml'
call plug#end()
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
set encoding=UTF-8
colorscheme monokai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment