Skip to content

Instantly share code, notes, and snippets.

@charlie-wasp
Created February 21, 2016 12:34
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 charlie-wasp/b70175594c365c52ea2f to your computer and use it in GitHub Desktop.
Save charlie-wasp/b70175594c365c52ea2f to your computer and use it in GitHub Desktop.
My main .vimrc file
set nocompatible
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'tpope/vim-surround'
Plugin 'kchmck/vim-coffee-script'
Plugin 'slim-template/vim-slim'
Plugin 'mattn/emmet-vim'
Plugin 'ntpeters/vim-better-whitespace'
Plugin 'airblade/vim-gitgutter'
Plugin 'tpope/vim-fugitive'
Plugin 'ctrlpvim/ctrlp.vim'
call vundle#end()
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_working_path_mode = 'ra'
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
syntax enable
set encoding=utf-8
set showcmd
filetype plugin indent on
autocmd FileType markdown setlocal colorcolumn= wrap tw=120
autocmd FileType slim setlocal colorcolumn=120
autocmd BufEnter * lcd %:p:h
autocmd InsertLeave *.markdown,*.md :silent !xkbswitch -se US
autocmd InsertEnter *.markdown,*.md :silent !xkbswitch -se RussianWin
set nowrap
set tabstop=4 shiftwidth=4
set expandtab
set backspace=indent,eol,start
set hlsearch
set incsearch
set ignorecase
set smartcase
set number
vnoremap <C-X> <Esc>`.``gvP``P
colorscheme wombat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment