Last active
May 23, 2019 15:19
-
-
Save jaderfeijo/1202b5fcd9a503c65374 to your computer and use it in GitHub Desktop.
.vimrc
This file contains hidden or 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
let g:python_host_prog = '/Users/jaderfeijo/.pyenv/versions/neovim2/bin/python' | |
let g:python3_host_prog = '/Users/jaderfeijo/.pyenv/versions/neovim3/bin/python' | |
call plug#begin('~/.vim/plugged') | |
Plug 'https://github.com/keith/swift.vim.git' | |
Plug 'https://github.com/scrooloose/syntastic.git' | |
Plug 'https://github.com/mitsuse/autocomplete-swift.git' | |
Plug 'https://github.com/wincent/command-t.git' | |
Plug 'https://github.com/shime/vim-livedown.git' | |
Plug 'Valloric/YouCompleteMe' | |
Plug 'vim-ruby/vim-ruby' | |
Plug 'scrooloose/nerdtree' | |
call plug#end() | |
filetype plugin indent on | |
syntax enable | |
syntax on | |
set nowrap | |
set nu | |
set shiftwidth=2 | |
set tabstop=2 | |
set smartindent | |
set mouse=a | |
colorscheme zellner | |
cabbrev E Explore | |
set backspace=indent,eol,start | |
au BufNewFile,BufRead * if &syntax == '' | set syntax=ruby | endif | |
" set special tab settings on a file type basis | |
autocmd Filetype html setlocal ts=2 sw=2 expandtab | |
autocmd Filetype ruby,eruby setlocal ts=2 sw=2 sts=2 expandtab | |
autocmd Filetype python setlocal ts=2 sts=2 sw=2 | |
autocmd BufNewFile,BufRead *.swift set filetype=swift | |
" Swift file template | |
autocmd BufNewFile *.swift 0r ~/.vim/swift-template.txt | |
map <C-f> :CommandT<CR> | |
map <C-n> :NERDTreeToggle<CR> | |
set listchars=eol:¶,tab:>»,trail:»,space:•,extends:>,precedes:< |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment