Skip to content

Commit

Permalink
vim: Removed supertab and updated tab settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pakesson committed Feb 13, 2012
1 parent 4023792 commit ea0a7e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
1 change: 0 additions & 1 deletion .vim/bundle/supertab
Submodule supertab deleted from e228cf
23 changes: 5 additions & 18 deletions .vimrc
Expand Up @@ -2,15 +2,18 @@ set nocompatible " Use full features (Vim mode instead of Vi)

call pathogen#infect()

" configure expanding of tabs for various file types
au BufRead,BufNewFile Makefile* set noexpandtab
filetype plugin on

" tabs and indentation
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4

" configure tabs for various file types
autocmd BufRead,BufNewFile Makefile* setlocal noexpandtab
autocmd Filetype c setlocal tabstop=8 shiftwidth=4 noexpandtab

set autoindent " Indent same level as the previous line
set smartindent

Expand Down Expand Up @@ -52,22 +55,6 @@ set tags=./tags;/ " Look for tags in current dir and work up to / if not found

set mouse=a " Enable the use of the mouse.

" Autocomplete
filetype plugin on
set ofu=syntaxcomplete#Complete

" Supertab
let g:SuperTabDefaultCompletionType = 'context'

set completeopt=longest,menuone
"inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
"inoremap <expr> <C-n> pumvisible() ? '<C-n>' :
" \ '<C-n><C-r>=pumvisible() ? "\<lt>Down>" : ""<CR>'
"inoremap <expr> <M-,> pumvisible() ? '<C-n>' :
" \ '<C-x><C-o><C-n><C-p><C-r>=pumvisible() ? "\<lt>Down>" : ""<CR>'
"inoremap <expr> <C-p> pumvisible() ? '<C-p>' :
" \ '<C-p><C-r>=pumvisible() ? "\<lt>Up>" : ""<CR>'

" Remaps
let mapleader = ","
nnoremap <C-c> :BD<CR>
Expand Down

0 comments on commit ea0a7e2

Please sign in to comment.