Skip to content

Instantly share code, notes, and snippets.

@tomekc
Last active September 17, 2024 22:13
Show Gist options
  • Save tomekc/09fbd21dbd80c221cbf8d11c7285a0ef to your computer and use it in GitHub Desktop.
Save tomekc/09fbd21dbd80c221cbf8d11c7285a0ef to your computer and use it in GitHub Desktop.
Vim awesome plugins
execute pathogen#infect()
syntax on
filetype plugin indent on
set t_Co=256
set background=dark
colorscheme lost-shrine
set cul
hi CursorLine term=none cterm=none ctermbg=234
set number
set showmatch " Show matching brackets.
set ruler " show the line number on the bar
set showmode
set showcmd
set smarttab " tab and backspace are smart
set tabstop=2 " 6 spaces
set laststatus=2
if !has('gui_running')
set t_Co=256
endif
map <C-o> :NERDTreeToggle<CR>
" Add 'stty -ixon' to .profile
inoremap <C-x> <esc>:wq!<cr> " save and exit
nnoremap <C-x> :wq!<cr>
inoremap <C-q> <esc>:qa!<cr> " quit discarding changes
nnoremap <C-q> :qa!<cr>
" FZF
set rtp+=/opt/homebrew/opt/fzf
start " Starts vim in insert mode
# Install Pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# Add this to
echo "execute pathogen#infect()" >> ~/.vimrc
# Install plugins
cd ~/.vim/bundle
# Color scheme
git clone https://github.com/gmoe/vim-espresso.git
# Git gutter
git clone https://github.com/airblade/vim-gitgutter
# Solid language highlight pack
git clone https://github.com/sheerun/vim-polyglot
git clone https://github.com/itchyny/lightline.vim
git clone https://github.com/scrooloose/nerdtree.git
mkdir -p ~/.vim/colors
cd ~/.vim/colors
# This seems to be gone
# wget https://github.com/sainnhe/vim-color-lost-shrine/raw/master/colors/lost-shrine.vim
wget https://github.com/KurtPreston/vimcolors/raw/master/colors/lost-shrine.vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment