Skip to content

Instantly share code, notes, and snippets.

@J3698
Last active November 16, 2019 02:27
Show Gist options
  • Save J3698/c0c812d83f438bb472bb1ed9cd79e3d6 to your computer and use it in GitHub Desktop.
Save J3698/c0c812d83f438bb472bb1ed9cd79e3d6 to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" Plugin 'valloric/youcompleteme'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'valloric/youcompleteme'
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
set nocompatible "Kill vi-compatibility
set t_Co=256 "256 color
set encoding=utf-8 "UTF-8 character encoding
" Indent 4 spaces
set tabstop=4 "4 space tabs
set shiftwidth=4 "4 space shift
set softtabstop=4 "Tab spaces in no hard tab mode
set expandtab " Expand tabs into spaces
set autoindent "autoindent on new lines
set showmatch "Highlight matching braces
set ruler "Show bottom ruler
set equalalways "Split windows equal size
set formatoptions=croq "Enable comment line auto formatting
set title "Set window title to file
set hlsearch "Highlight on search
set ignorecase "Search ignoring case
set smartcase "Search using smartcase
set incsearch "Start searching immediately
set scrolloff=5 "Never scroll off
set wildmode=longest,list "Better unix-like tab completion
set clipboard=unnamed "Copy and paste from system clipboard
set lazyredraw "Don't redraw while running macros (faster)
set wrap "Visually wrap lines
set linebreak "Only wrap on 'good' characters for wrapping
set backspace=indent,eol,start "Better backspacing
set linebreak "Intelligently wrap long files
set ttyfast "Speed up vim
set nostartofline "Vertical movement preserves horizontal position
" My trash
set autoindent
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
set nu
" Strip whitespace from end of lines when writing file
autocmd BufWritePre * :%s/\s\+$//e
" Syntax highlighting and stuff
syntax on
filetype plugin indent on
set colorcolumn=80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment