Skip to content

Instantly share code, notes, and snippets.

@kdisneur
Created July 13, 2012 13:37
Show Gist options
  • Save kdisneur/3104925 to your computer and use it in GitHub Desktop.
Save kdisneur/3104925 to your computer and use it in GitHub Desktop.
syntax on
filetype plugin indent on
set nowrap
set tabstop=2
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
set number " always show line numbers
set shiftwidth=2 " number of spaces to use for autoindenting
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set showmatch " set show matching parenthesis
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,
" case-sensitive otherwise
set smarttab " insert tabs on the start of a line according to
" shiftwidth, not tabstop
set hlsearch " highlight search terms
set incsearch " show search matches as you type
set history=1000 " remember more commands and search history
set undolevels=1000 " use many muchos levels of undo
set wildignore=*.swp,*.bak,*.pyc,*.class
set title " change the terminal's title
set visualbell " don't beep a
set noerrorbells
set nobackup
set noswapfile
set pastetoggle=<F2> " allow to paste test without 'smartness'
set mouse=a " enable mouse
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
let g:ctrlp_match_window_bottom = 0
let g:ctrlp_match_window_reversed = 0
autocmd BufEnter * lcd %:p:h
" open project list
nmap <silent> <c-l> :NERDTreeTabsToggle<CR>
map <C-n> :tabn<CR>
" switch bewtween tabs
map <C-1> 1gt
"imap <C-1> <C-O>1gt
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.hg$\|\.svn$',
\ 'file': '\.exe$\|\.so$\|\.dll$',
\ 'link': 'some_bad_symbolic_links',
\ }
let g:ctrlp_prompt_mappings = {
\ 'AcceptSelection("e")': [],
\ 'AcceptSelection("t")': ['<cr>', '<c-m>'],
\ }
set switchbuf=usetab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment