Skip to content

Instantly share code, notes, and snippets.

@pce
Last active October 13, 2015 17:38
Show Gist options
  • Save pce/4231909 to your computer and use it in GitHub Desktop.
Save pce/4231909 to your computer and use it in GitHub Desktop.
vimrc
syntax on
filetype plugin indent on
set paste
set ruler
set expandtab "Convert tabs to spaces - Expand Tab"
set tabstop=4 "Length of tab"
"Optional: "
set visualbell " don't beep
set noerrorbells " don't beep
set fileencoding=utf-8
set encoding=utf-8
set nocompatible
" PlugIns {
" solarized (https://github.com/altercation/vim-colors-solarized/),
" NerdTree
" }
":colorscheme darkblue
:colorscheme solarized
" set diffexpr=MyDiff()
set nobackup
set noswapfile
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 nowrap " don't wrap lines
set backspace=indent,eol,start
" allow backspacing over everything in insert mode
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
" via spf13 :
" NerdTree {
map <C-e> :NERDTreeToggle<CR>:NERDTreeMirror<CR>
map <leader>e :NERDTreeFind<CR>
nmap <leader>nt :NERDTreeFind<CR>
let NERDTreeShowBookmarks=1
let NERDTreeIgnore=['\.pyc', '\~$', '\.swo$', '\.swp$', '\.git', '\.hg', '\.svn', '\.bzr']
let NERDTreeChDirMode=0
let NERDTreeQuitOnOpen=1
let NERDTreeMouseMode=2
let NERDTreeShowHidden=1
let NERDTreeKeepTreeInNewTab=1
let g:nerdtree_tabs_open_on_gui_startup=0
" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment