vim: Fully switch to nvim directory structure
This commit is contained in:
parent
f0a299a6de
commit
6ae528f649
1
home/.config/nvim/autoload/plug.vim
Symbolic link
1
home/.config/nvim/autoload/plug.vim
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../../vim-plug/plug.vim
|
|
@ -1,3 +1,83 @@
|
||||||
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
" Basic display
|
||||||
let &packpath = &runtimepath
|
set number
|
||||||
source ~/.vimrc
|
set colorcolumn=80
|
||||||
|
|
||||||
|
" Persistent undo
|
||||||
|
set undofile
|
||||||
|
set undolevels=4096
|
||||||
|
set undoreload=16384
|
||||||
|
|
||||||
|
" Search
|
||||||
|
set ignorecase
|
||||||
|
|
||||||
|
" Autoload settings from file
|
||||||
|
set modeline
|
||||||
|
|
||||||
|
" Use system clipboard
|
||||||
|
set clipboard=unnamedplus
|
||||||
|
|
||||||
|
" Jump to the last position
|
||||||
|
if has("autocmd")
|
||||||
|
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
|
||||||
|
\| exe "normal! g`\"" | endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
call plug#begin('~/.local/share/nvim/plugged')
|
||||||
|
|
||||||
|
" Per-project vim settings
|
||||||
|
Plug 'MarcWeber/vim-addon-local-vimrc'
|
||||||
|
|
||||||
|
" Tagbar
|
||||||
|
Plug 'majutsushi/tagbar'
|
||||||
|
nmap <F8> :TagbarToggle<CR>
|
||||||
|
|
||||||
|
" Snippets
|
||||||
|
Plug 'SirVer/ultisnips'
|
||||||
|
let g:UltiSnipsExpandTrigger = '<tab>'
|
||||||
|
let g:UltiSnipsJumpForwardTrigger = '<tab>'
|
||||||
|
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
|
||||||
|
Plug 'honza/vim-snippets'
|
||||||
|
|
||||||
|
" Airline
|
||||||
|
Plug 'vim-airline/vim-airline'
|
||||||
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
|
let g:airline_powerline_fonts = 1
|
||||||
|
let g:airline_solarized_bg='dark'
|
||||||
|
let g:airline_theme='solarized'
|
||||||
|
|
||||||
|
" Trailing whitespace highlighting
|
||||||
|
Plug 'ntpeters/vim-better-whitespace'
|
||||||
|
|
||||||
|
" Markdown live preview
|
||||||
|
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
|
||||||
|
|
||||||
|
" Syntax highlighting/Language support
|
||||||
|
Plug 'ElmCast/elm-vim', { 'for': 'elm' }
|
||||||
|
Plug 'Glench/Vim-Jinja2-Syntax', { 'for': 'jinja' }
|
||||||
|
Plug 'cespare/vim-toml', { 'for': 'toml' }
|
||||||
|
Plug 'fatih/vim-go', { 'for': 'go', 'do': ':GoUpdateBinaries' }
|
||||||
|
Plug 'mechatroner/rainbow_csv'
|
||||||
|
Plug 'posva/vim-vue', { 'for': 'vue' }
|
||||||
|
Plug 'sirtaj/vim-openscad', { 'for': 'openscad' }
|
||||||
|
|
||||||
|
" LaTeX helpers
|
||||||
|
Plug 'lervag/vimtex'
|
||||||
|
let g:tex_flavor='latex'
|
||||||
|
let g:vimtex_view_method='zathura'
|
||||||
|
set conceallevel=1
|
||||||
|
let g:tex_conceal='abdmg'
|
||||||
|
" this disables some helful warnings that often have a reason why I ignore them
|
||||||
|
let g:vimtex_quickfix_ignore_filters = [
|
||||||
|
\'Underfull \\hbox (badness [0-9]*) in paragraph at lines',
|
||||||
|
\'Overfull \\hbox ([0-9]*.[0-9]*pt too wide) in paragraph at lines',
|
||||||
|
\'Package hyperref Warning: Token not allowed in a PDF string',
|
||||||
|
\'Package typearea Warning: Bad type area settings!',
|
||||||
|
\]
|
||||||
|
command Vtc VimtexCompile
|
||||||
|
|
||||||
|
" Color schemes
|
||||||
|
Plug 'altercation/vim-colors-solarized'
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
silent! colorscheme solarized
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../../../vim-plug/plug.vim
|
|
84
home/.vimrc
84
home/.vimrc
|
@ -1,84 +0,0 @@
|
||||||
" Basic display
|
|
||||||
set number
|
|
||||||
set colorcolumn=80
|
|
||||||
|
|
||||||
" Persistent undo
|
|
||||||
set undofile
|
|
||||||
set undodir=$HOME/.vim/undo
|
|
||||||
set undolevels=4096
|
|
||||||
set undoreload=16384
|
|
||||||
|
|
||||||
" Search
|
|
||||||
set ignorecase
|
|
||||||
|
|
||||||
" Autoload settings from file
|
|
||||||
set modeline
|
|
||||||
|
|
||||||
" Use system clipboard
|
|
||||||
set clipboard=unnamedplus
|
|
||||||
|
|
||||||
" Jump to the last position
|
|
||||||
if has("autocmd")
|
|
||||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
|
|
||||||
\| exe "normal! g`\"" | endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
call plug#begin('~/.vim/plugged')
|
|
||||||
|
|
||||||
" Per-project vim settings
|
|
||||||
Plug 'MarcWeber/vim-addon-local-vimrc'
|
|
||||||
|
|
||||||
" Tagbar
|
|
||||||
Plug 'majutsushi/tagbar'
|
|
||||||
nmap <F8> :TagbarToggle<CR>
|
|
||||||
|
|
||||||
" Snippets
|
|
||||||
Plug 'SirVer/ultisnips'
|
|
||||||
let g:UltiSnipsExpandTrigger = '<tab>'
|
|
||||||
let g:UltiSnipsJumpForwardTrigger = '<tab>'
|
|
||||||
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
|
|
||||||
Plug 'honza/vim-snippets'
|
|
||||||
|
|
||||||
" Airline
|
|
||||||
Plug 'vim-airline/vim-airline'
|
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
|
||||||
let g:airline_powerline_fonts = 1
|
|
||||||
let g:airline_solarized_bg='dark'
|
|
||||||
let g:airline_theme='solarized'
|
|
||||||
|
|
||||||
" Trailing whitespace highlighting
|
|
||||||
Plug 'ntpeters/vim-better-whitespace'
|
|
||||||
|
|
||||||
" Markdown live preview
|
|
||||||
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
|
|
||||||
|
|
||||||
" Syntax highlighting/Language support
|
|
||||||
Plug 'ElmCast/elm-vim', { 'for': 'elm' }
|
|
||||||
Plug 'Glench/Vim-Jinja2-Syntax', { 'for': 'jinja' }
|
|
||||||
Plug 'cespare/vim-toml', { 'for': 'toml' }
|
|
||||||
Plug 'fatih/vim-go', { 'for': 'go', 'do': ':GoUpdateBinaries' }
|
|
||||||
Plug 'mechatroner/rainbow_csv'
|
|
||||||
Plug 'posva/vim-vue', { 'for': 'vue' }
|
|
||||||
Plug 'sirtaj/vim-openscad', { 'for': 'openscad' }
|
|
||||||
|
|
||||||
" LaTeX helpers
|
|
||||||
Plug 'lervag/vimtex'
|
|
||||||
let g:tex_flavor='latex'
|
|
||||||
let g:vimtex_view_method='zathura'
|
|
||||||
set conceallevel=1
|
|
||||||
let g:tex_conceal='abdmg'
|
|
||||||
" this disables some helful warnings that often have a reason why I ignore them
|
|
||||||
let g:vimtex_quickfix_ignore_filters = [
|
|
||||||
\'Underfull \\hbox (badness [0-9]*) in paragraph at lines',
|
|
||||||
\'Overfull \\hbox ([0-9]*.[0-9]*pt too wide) in paragraph at lines',
|
|
||||||
\'Package hyperref Warning: Token not allowed in a PDF string',
|
|
||||||
\'Package typearea Warning: Bad type area settings!',
|
|
||||||
\]
|
|
||||||
command Vtc VimtexCompile
|
|
||||||
|
|
||||||
" Color schemes
|
|
||||||
Plug 'altercation/vim-colors-solarized'
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
set background=dark
|
|
||||||
silent! colorscheme solarized
|
|
Reference in a new issue