Skip to content

Instantly share code, notes, and snippets.

@carlosipe
Created June 11, 2017 16:34
Show Gist options
  • Save carlosipe/22ee1d1ca4b5558305f2463136a9cd6d to your computer and use it in GitHub Desktop.
Save carlosipe/22ee1d1ca4b5558305f2463136a9cd6d to your computer and use it in GitHub Desktop.
" 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