Skip to content

Instantly share code, notes, and snippets.

@bucketsize
Last active August 29, 2015 14:03
Show Gist options
  • Save bucketsize/fec01bca7b30fb7b30c5 to your computer and use it in GitHub Desktop.
Save bucketsize/fec01bca7b30fb7b30c5 to your computer and use it in GitHub Desktop.
vimrc
call pathogen#infect()
set nocompatible
syntax on
filetype plugin indent on
set history=100
set showmatch
set ruler
set showcmd
set number
set scrolloff=7 " Keep more lines of context
set sidescroll=1
set sidescrolloff=7
set title " Set xterm title
set columns=110
set autoindent
set fileformats=unix,dos
set encoding=utf-8
set hlsearch " highlight search
set incsearch " incremental search
set nobackup
set noswapfile
set nowrap " don't wrap lines
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all
autocmd FileType * set tabstop=2
autocmd FileType * set shiftwidth=2
autocmd FileType * set expandtab
autocmd FileType * set smartindent
colorscheme desert " gui mode colorscheme
" Map ctrl-movement keys to window switching
map <C-Up> <C-w><Up>
map <C-Down> <C-w><Down>
map <C-Right> <C-w><Right>
map <C-Left> <C-w><Left>
" Switch to alternate file
map <C-Tab> :bnext<cr>
map <C-S-Tab> :bprevious<cr>
" commands
" ctrl-w-v vertical split
" ctrl-w-s horizontal split
" ctrl-w-w cycle split buffers
""""""""""""""""""""""""""
" Custom plugins configs "
""""""""""""""""""""""""""
" UltiSnippet --- Track the engine.
" Plugin 'SirVer/ultisnips'
" Snippets are separated from the engine. Add this if you want them:
" Plugin 'honza/vim-snippets'
" Trigger configuration. Do not use <tab> if you use
" https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment