···4455set nocompatible
6677-" Reset Vim shell to get rid of strange errors
88-set shell=/bin/sh
99-107" Enable per-directory .vimrc files
118set exrc
129" Disable unsafe commands in local .vimrc
1310set secure
14111512"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1616-" => General
1717-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1818-" Sets how many lines of history VIM has to remember
1919-set history=700
2020-2121-" Enable filetype plugins
2222-filetype plugin on
2323-filetype indent on
2424-2525-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2613" => VIM user interface
2714"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2815" Set 7 lines to the cursor - when moving vertically using j/k
2916set so=7
30173131-" Always show statusline
3232-set laststatus=2
3333-3434-" Turn on the Wild menu
3535-set wildmenu
3636-3718" Ignore all automatic files and folders
3819set wildignore=*.o,*~,*.pyc,.git,*/tmp/*
39204040-" Always show current position
4141-set ruler
4242-4321" Height of the command bar
4422set cmdheight=1
45234646-" Set to auto read when a file is changed from the outside
4747-set autoread
4848-4924" Ignore case when searching
5025set ignorecase
5126···5530" Highlight search results
5631set hlsearch
57325858-" Makes search act like search in modern browsers
5959-set incsearch
6060-6133" Don't redraw while executing macros (good performance config)
6234set lazyredraw
6335···6739" Line numbers are good
6840set number
69417070-" Shorter timeout when exiting insert mode
7171-set ttimeoutlen=50
7272-7342" Allow backspace in insert mode
7474-set backspace=eol,start,indent
7543set whichwrap+=<,>,h,l
7676-7777-" Show incomplete cmds down the bottom
7878-set showcmd
79448045" Show current mode down the bottom
8146set showmode
···12085" Set utf8 as standard encoding and en_US as the standard language
12186set encoding=utf8
12287123123-" Use Unix as the standard file type
124124-set ffs=unix,dos,mac
125125-12688" This makes vim act like all other editors, buffers can
12789" exist in the background without being in a window.
12890" http://items.sjbach.com/319/configuring-vim-right
···145107"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
146108" => Identation
147109"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
148148-set autoindent
149110set smartindent
150150-set smarttab
151111set shiftwidth=2
152112set softtabstop=2
153113set tabstop=2
···170130let mapleader = ','
171131172132" FuzzySearch
173173-nnoremap <silent> <C-p> :Unite -start-insert -buffer-name=files buffer file_rec/async<CR>
133133+nnoremap <silent> <C-p> :Unite -start-insert -buffer-name=files file_rec/async<CR>
174134nnoremap <silent> <space>/ :Ag<CR>
175135176136" Tabs
···184144noremap <F6> :bnext<CR>
185145noremap <leader>b :Unite -buffer-name=buffers -immediately -no-split buffer<CR>
186146187187-" Search
188188-noremap <silent> <leader><space> :nohlsearch<CR>
189189-nnoremap <C-M> :nohlsearch<CR>
190190-191147" Formatting and cleaning
192148noremap <leader>ff mzgg=G`z<CR>
193149noremap <leader>fc :Clean<CR>
···224180inoremap <C-R><C-R> <C-R>*
225181226182" Some useful toggles for plugins
227227-noremap <F2> :GundoToggle<CR>
183183+noremap <F2> :UndotreeToggle<CR>
228184noremap <F3> :NumbersToggle<CR>
229185noremap <F4> :IndentGuidesToggle<CR>
230186