SHARE
TWEET
bwayne .vimrc
a guest
Jun 10th, 2012
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- " Don't use Ex mode, use Q for formatting
- map Q gq
- " CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo,
- " so that you can undo CTRL-U after inserting a line break.
- inoremap <C-U> <C-G>u<C-U>
- set nobackup
- set nowritebackup
- set nocompatible
- set backspace=indent,eol,start
- set history=50 " keep 50 lines of command line history
- set ruler " show the cursor position all the time
- set showcmd " display incomplete commands
- set incsearch " do incremental searching
- set cursorline
- set number
- set numberwidth=4
- set ignorecase
- syntax on
- nohlsearch
- filetype plugin on
- colorschem delek
- " automatically chmod +x shell and python scripts
- au BufWritePost *.sh !chmod +x %
- au BufWritePost *.csh !chmod +x %
- au BufWritePost *.py !chmod +x %
- " automatic indents, shifts are 4 space soft tabs.
- set tabstop=4
- set shiftwidth=4
- set expandtab
- set textwidth=79
- " MinBufWinExplorer
- let g:miniBufExplMapWindowNavVim = 1
- let g:miniBufExplMapWindowNavArrows = 1
- let g:miniBufExplMapCTabSwitchBufs = 1
- let g:miniBufExplModSelTarget = 1
- " Omnicompletion
- set ofu=syntaxcompelete#Complete
- set completeopt=menuone
- autocmd FileType python set omnifunc=pythoncomplete#Complete
- "NerdTree
- map <F5> :NERDTreeToggle<CR>
- "Taglist/Ctags
- let Tlist_Ctags_Cmd='~/usr/bin/ctags'
- let Tlist_GainFocus_On_ToggleOpen = 1
- let Tlist_Close_On_Select = 1
- let Tlist_Use_Right_Window = 1
- let Tlist_File_Fold_Auto_Close = 1
- map <F7> :TlistToggle<CR>
- "Viewport Controls"
- " ie moving between split panes
- map <silent>,h <C-w>h
- map <silent>,j <C-w>j
- map <silent>,k <C-w>k
- map <silent>,l <C-w>l
RAW Paste Data

