Created
October 23, 2014 15:19
-
-
Save jillesme/a9d246d9eba29582a777 to your computer and use it in GitHub Desktop.
This file contains 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
source ~/.vundle | |
" -- DEFAULTS -- | |
" UTF-8 encoding | |
set encoding=utf-8 | |
" Default dir is sites | |
cd ~/Appsbroker | |
" Set leader key to , | |
let mapleader="," | |
" Don't close buffers, hide them | |
set hidden | |
" Show line numbers | |
set number | |
" Wrap the line | |
set wrap | |
" Don't wrap in the middle of a word / tag | |
" | |
set linebreak | |
" Don't wrap the line for us vim | |
set textwidth=0 | |
set wrapmargin=0 | |
" → for a linebreak | |
set showbreak=→ | |
" <tab> is equal to two spaces | |
set tabstop=2 | |
" Finetunes amount of whitespace to be inserted | |
set softtabstop=2 | |
" Spaces to use for indenting (with > and <) | |
set shiftwidth=2 | |
" Tabs are spaces | |
set expandtab | |
" Make backspace behave better | |
set backspace=indent,eol,start | |
" Copy indent from current line when starting a new line | |
set autoindent | |
" Copy the indent style of the whole file | |
set copyindent | |
" copy the previous indentation on autoindenting | |
set shiftround | |
" Highlight matching parenthesis | |
set showmatch | |
" Search case-insensitive | |
set ignorecase | |
" Unless first character is uppercase | |
set smartcase | |
" Insert shiftwidth amount of spaces before a line | |
set smarttab | |
" Start searching while typing | |
set incsearch | |
" Highlight searching words | |
set hlsearch | |
" Remember 1000 commands | |
set history=100 | |
" Undo 1000 moves | |
set undolevels=100 | |
" Show suggestions in the menu | |
set wildmenu | |
" Ignore these files when completing | |
set wildignore=*.swp,*.bak,*.pyc,*.exe | |
" Change terminal title to current file | |
set title | |
" Don't overwrite file permissions and systemlinks | |
set backupcopy=yes | |
" Refresh files if changed from the outside | |
set autoread | |
" No sounds, ever | |
set visualbell | |
set noerrorbells | |
" Display some characters | |
set list | |
set listchars=tab:⦊·,trail:·,extends:#,nbsp:· | |
" Don't backup files, or use swap files | |
set nobackup | |
" No .swp files | |
set noswapfile | |
" Foldings | |
set foldmethod=marker | |
set foldlevel=1 | |
" -- GUI -- | |
set background=dark | |
colorscheme base16-tomorrow | |
set guifont=Droid\ Sans\ Mono\ for\ Powerline:h16 | |
set t_Co=256 | |
set laststatus=2 | |
syntax on | |
" -- MAPPINGS -- | |
nnoremap <leader>f :CtrlP<CR> | |
nnoremap <leader>F :CtrlPMRU<CR> | |
nnoremap <leader>b :CtrlPBuffer<CR> | |
nnoremap <leader>a :Ack! ""<left> | |
nnoremap <leader>A :Ack! "<C-r><c-W>"<CR> | |
nnoremap <leader>q :bd!<CR> | |
nnoremap <leader>uf :set foldlevel=99<CR> | |
nnoremap <leader>uu :set foldlevel=1<CR> | |
nnoremap * * :set hlsearch<CR> | |
nnoremap <leader>h :set hlsearch!<CR> | |
nnoremap <right> :bn<CR> | |
nnoremap <left> :bp<CR> | |
nnoremap > >> | |
nnoremap < << | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k | |
nnoremap <C-l> <C-w>l | |
nnoremap <space> za | |
vnoremap <space> zf | |
nnoremap <silent> <F10> :call <SID>StripTrailingWhitespaces()<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment