Skip to content

Instantly share code, notes, and snippets.

@tomekc
Last active July 9, 2020 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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>
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