Created
June 11, 2017 16:34
-
-
Save carlosipe/22ee1d1ca4b5558305f2463136a9cd6d 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
" Basic stuff, leader to space, remap esc, saving files | |
:let mapleader = " " | |
:nnoremap <leader>ev :vsplit $MYVIMRC<cr> | |
:imap jk <Esc>l | |
:nnoremap <Leader>s :update<CR> | |
:nnoremap <Leader>x :x<CR> | |
:nnoremap <Leader>q :bd<CR> | |
:nnoremap <Leader><Leader> :FZF<CR> | |
:nnoremap <Leader>p :FZF<CR> | |
:nnoremap <Up> <nop> | |
:nnoremap <Down> <nop> | |
:nnoremap <Left> <nop> | |
:nnoremap <Right> <nop> | |
" Text indentantion | |
:set expandtab | |
:set shiftwidth=2 | |
:set autoindent | |
:filetype indent plugin on | |
" Don't use swp files (not sure yet if it's a good idea or not) | |
:set noswapfile | |
"Finding files | |
set wildmode=list:longest | |
" Colorscheme | |
" :colorscheme molokai | |
: colorscheme railscasts | |
" :set foldcolumn=2 "padding on left | |
" :set exrc (enable .vimrc per project, disabled by default for security | |
" reasons) /if enabled it's a good idea to also :set secure | |
:set nowrap | |
:set cursorline | |
:set number | |
"hide buffers when not displayed | This allow to switch between buffers | |
"without saving | |
:set hidden | |
" | |
"" utf-8 default encoding | |
:set enc=utf-8 | |
:map <Leader><Tab> :bn<CR> | |
" " " | |
" Plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'https://github.com/jiangmiao/auto-pairs' | |
Plug 'elixir-lang/vim-elixir' | |
Plug 'https://github.com/mattn/gist-vim' | |
Plug 'https://github.com/mattn/webapi-vim' | |
call plug#end() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment