Last active
December 18, 2015 02:09
-
-
Save cloud8421/5709054 to your computer and use it in GitHub Desktop.
Basic .vimrc file for efficient editing in any situation. No plugins, but it assumes a 256 color terminal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| set nobackup | |
| set nowritebackup | |
| set notimeout | |
| set ttimeout | |
| set ttimeoutlen=10 | |
| set noswapfile | |
| set history=50 | |
| set ruler | |
| set showcmd | |
| set incsearch | |
| set autochdir | |
| set laststatus=2 | |
| set t_Co=256 | |
| syntax on | |
| " Fix backspace | |
| set backspace=indent,eol,start | |
| fixdel | |
| " Send more characters for redraws | |
| set ttyfast | |
| " Use Bash as shell | |
| set shell=/usr/local/bin/bash | |
| " Enable mouse use in all modes | |
| set mouse=a | |
| set ttymouse=xterm2 | |
| filetype plugin indent on | |
| " Softtabs, 2 spaces | |
| set tabstop=2 | |
| set shiftwidth=2 | |
| set expandtab | |
| " Display extra whitespace | |
| set list listchars=tab:»·,trail:· | |
| " Clipboard fix for OsX | |
| set clipboard=unnamed | |
| " Numbers | |
| set number | |
| set numberwidth=2 | |
| "Folding | |
| set foldmethod=indent | |
| set foldlevelstart=99 | |
| " Autocompletion options | |
| set wildmode=list:longest,list:full | |
| set complete=.,w,b | |
| " Tags | |
| let Tlist_Ctags_Cmd = "/usr/local/bin/ctags -R --exclude=.git --exclude=log -f ./.tags *" | |
| set tags+=.tags | |
| " Set current path to working directory - useful to use :find | |
| autocmd BufEnter * silent! set path=$PWD/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment