Skip to content

Instantly share code, notes, and snippets.

@jfabry-noc
Last active April 11, 2024 20:01
Show Gist options
  • Save jfabry-noc/1530acfb2aa70a7e8d7be839a0b44876 to your computer and use it in GitHub Desktop.
Save jfabry-noc/1530acfb2aa70a7e8d7be839a0b44876 to your computer and use it in GitHub Desktop.
My .vimrc
call plug#begin()
Plug 'catppuccin/vim', { 'as': 'catppuccin' }
Plug 'https://github.com/vim-airline/vim-airline'
Plug 'https://github.com/tpope/vim-fugitive'
Plug 'https://github.com/wakatime/vim-wakatime'
Plug 'https://github.com/preservim/nerdtree'
Plug 'https://github.com/sheerun/vim-polyglot'
Plug 'https://github.com/rodjek/vim-puppet'
Plug 'https://github.com/ryanoasis/vim-devicons'
call plug#end()
set hlsearch ignorecase smartcase incsearch number relativenumber
set tabstop=4 shiftwidth=4 expandtab notitle ruler laststatus=2
set autoindent smartindent re=0 scrolloff=8 nocompatible colorcolumn=80
if has('termguicolors')
set termguicolors
endif
syntax on
colorscheme catppuccin_macchiato
filetype plugin indent on
map gn :bnext<cr>
map gp :bpreviou<cr>
map gd :bdelete<cr>
let g:airline#extensions#tabline#enabled = 1 " Enable the list of buffers
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
let g:airline#extensions#tabline#left_sep = ' '
let g:airline#extensions#tabline#left_alt_sep = '|'
let g:airline_theme = 'catppuccin_macchiato'
let NERDTreeQuitOnOpen=1
let g:NERDTreeDirArrowExpandable="+"
let g:NERDTreeDirArrowCollapsible="~"
nnoremap <C-t> :NERDTreeToggle<CR>
inoremap kj <esc>
vnoremap kj <esc>
cnoremap kj <C-C>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment