rebuild config for neovim in particular

master
BraydonKains 3 years ago
parent 0df48a43c3
commit bd625d8e66

@ -0,0 +1 @@
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

@ -0,0 +1,84 @@
"**************************
"Defaults
set exrc
set nohlsearch
set incsearch
set relativenumber
set number
set encoding=utf-8
set colorcolumn=80
highlight ColorColumn ctermbg=lightgrey guibg=lightgrey
set noswapfile
set nobackup
set undodir=~/.vim/undodir
set undofile
"Tabbing
set autoindent tabstop=4 shiftwidth=4
"**************************
"Commands
command JsonFormat :%!python3 -m json.tool
"**************************
"Key Remaps
let mapleader = " "
"Window management
nnoremap <Leader>w <C-w>
nnoremap <Leader>ws :vsp<cr>
nnoremap <Leader>wi :sp<cr>
nnoremap <Leader>wt :tabnew<cr>
"Vim stuff
nnoremap <Leader>fs :w<cr>
nnoremap <Leader>fer :source ~/.config/nvim/init.vim<cr>
nnoremap <Leader>r :<C-u>registers<CR>:normal! "p<Left>
nnoremap <Leader>p :set paste!<cr>
nnoremap <Leader>c "+
vnoremap <Leader>c "+
"Plugins
"Telescope
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
"**************************
" Bracket completion
inoremap {<cr> {<cr>}<c-o>O
inoremap [<space> []<left>
inoremap {<space> {}<left>
inoremap {{<space> {{<space><space>}}<left><left><left>
inoremap ({<cr> ({<cr>})<c-o>O<tab>
inoremap (<space> ()<left>
inoremap {)<cr> {<cr>});<c-o>O
"**************************
" Plugins
call plug#begin(expand('~/.vim/plugged'))
Plug 'editorconfig/editorconfig-vim'
Plug 'alvan/vim-closetag'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
Plug 'jonsmithers/vim-html-template-literals', { 'branch': 'dev' }
Plug 'godlygeek/tabular'
"Plug 'neoclide/coc.nvim', { 'branch': 'release' }
Plug 'plasticboy/vim-markdown'
Plug 'yuezk/vim-js'
Plug 'fatih/vim-go'
" Plug 'ctrlpvim/ctrlp.vim'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
call plug#end()
Loading…
Cancel
Save