Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "=============================================
- " Initialization
- "=============================================
- " Load plug
- call plug#begin('~/.config/nvim/bundle')
- Plug 'duff/vim-scratch'
- Plug 'elmcast/elm-vim'
- Plug 'fatih/vim-go'
- Plug 'godlygeek/tabular'
- Plug 'jelera/vim-javascript-syntax'
- Plug 'jremmen/vim-ripgrep'
- Plug 'junegunn/vim-easy-align'
- Plug 'morhetz/gruvbox'
- Plug 'pearofducks/ansible-vim'
- Plug 'rodjek/vim-puppet'
- Plug 'tpope/vim-endwise'
- Plug 'tpope/vim-fugitive'
- Plug 'tpope/vim-git'
- Plug 'tpope/vim-haml'
- Plug 'tpope/vim-markdown'
- Plug 'tpope/vim-ragtag'
- Plug 'tpope/vim-rails'
- Plug 'tpope/vim-repeat'
- Plug 'tpope/vim-surround'
- Plug 'vim-ruby/vim-ruby'
- Plug 'vim-scripts/matchit.zip'
- call plug#end()
- " Load plugins
- filetype plugin indent on
- "=============================================
- " Options
- "=============================================
- " Color
- set termguicolors
- let g:gruvbox_italic=1
- set background=dark
- colorscheme gruvbox
- syntax on
- " Search
- set ignorecase
- set smartcase
- " Tab completion
- set wildmode=list:longest,full
- set wildignore=*.swp,*.o,*.so,*.exe,*.dll
- " Scroll
- set scrolloff=3
- " Tab settings
- set ts=2
- set sw=2
- set expandtab
- " Hud
- set ruler
- set number
- set nowrap
- set fillchars=vert:\│
- set colorcolumn=80
- " Buffers
- set hidden
- " Backup Directories
- set backupdir=~/.config/nvim/backups,.
- set directory=~/.config/nvim/swaps,.
- if exists('&undodir')
- set undodir=~/.config/nvim/undo,.
- endif
- "=============================================
- " Remaps
- "=============================================
- let mapleader=','
- let maplocalleader=','
- " No arrow keys
- map <Left> :echo "ಠ_ಠ"<cr>
- map <Right> :echo "ಠ_ಠ"<cr>
- map <Up> :echo "ಠ_ಠ"<cr>
- map <Down> :echo "ಠ_ಠ"<cr>
- " Jump key
- nnoremap ` '
- nnoremap ' `
- " Change pane
- nnoremap <C-h> <C-w>h
- nnoremap <C-j> <C-w>j
- nnoremap <C-k> <C-w>k
- nnoremap <C-l> <C-w>l
- " Turn off search highlight
- nnoremap <localleader>/ :nohlsearch<CR>
- " Trim trailing whitespace
- nnoremap <localleader>tw m`:%s/\s\+$//e<CR>``
- "=============================================
- " Other Settings
- "=============================================
- "=============================================
- " Package Settings
- "=============================================
- " elmcast/elm-vim
- let g:elm_format_autosave = 1
- " fatih/vim-go
- let g:go_fmt_command = "goimports"
- let g:go_list_type = "quickfix"
- " junegunn/vim-easy-align
- xmap ga <Plug>(EasyAlign)
- nmap ga <Plug>(EasyAlign)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement