Merge branch 'master' of ssh://maggioni.xyz:2222/maggicl/nvim-config
This commit is contained in:
commit
d721ff72a1
5 changed files with 50 additions and 5 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -19,3 +19,6 @@
|
||||||
[submodule "pack/plugins/start/vim-editorconfig"]
|
[submodule "pack/plugins/start/vim-editorconfig"]
|
||||||
path = pack/plugins/start/vim-editorconfig
|
path = pack/plugins/start/vim-editorconfig
|
||||||
url = https://github.com/sgur/vim-editorconfig
|
url = https://github.com/sgur/vim-editorconfig
|
||||||
|
[submodule "pack/plugins/start/vimproc.vim"]
|
||||||
|
path = pack/plugins/start/vimproc.vim
|
||||||
|
url = https://github.com/Shougo/vimproc.vim.git
|
||||||
|
|
14
LICENSE
Normal file
14
LICENSE
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
Version 2, December 2004
|
||||||
|
|
||||||
|
Copyright (C) 2018 Claudio Maggioni
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim or modified
|
||||||
|
copies of this license document, and changing it is allowed as long
|
||||||
|
as the name is changed.
|
||||||
|
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||||
|
|
10
README.md
Normal file
10
README.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<!--- vim: set et ts=2 sw=2 tw=80 : -->
|
||||||
|
|
||||||
|
# nvim-config
|
||||||
|
|
||||||
|
My current neovim configuration. This is my attempt to build a vim/neovim
|
||||||
|
configuration from scratch, without using any "framework" like *SpaceVim*
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Everything in this repo is licensed under WTFPL.
|
27
init.vim
27
init.vim
|
@ -39,15 +39,32 @@ tnoremap <C-Esc> <Esc>
|
||||||
" clear search with F2
|
" clear search with F2
|
||||||
nnoremap <F2> noh
|
nnoremap <F2> noh
|
||||||
|
|
||||||
" clear trailing spaces with F3
|
" Use "," as leader
|
||||||
nnoremap <F3> :%s/\s *$//g<CR>
|
let mapleader = ","
|
||||||
|
|
||||||
" show Vim's true competitor with F4
|
" Switch between Windows with: Leader w
|
||||||
nnoremap <F4> :!open https://youtu.be/jn40Ugz0vuk<CR><CR>
|
nnoremap <Leader>w <C-w><C-w>
|
||||||
|
|
||||||
|
" Show next buffer with: Leader n
|
||||||
|
nnoremap <Leader>n :bn<cr>
|
||||||
|
|
||||||
|
" Delete buffer with: Leader d
|
||||||
|
nnoremap <Leader>d :bd<cr>
|
||||||
|
|
||||||
|
" clear trailing spaces with: Leader t s
|
||||||
|
nnoremap <Leader>ts :%s/\s *$//g<CR>
|
||||||
|
|
||||||
|
" Reload config with: Leader R
|
||||||
|
nnoremap <Leader>R :source ~/.config/nvim/init.vim<cr>
|
||||||
|
|
||||||
|
" show Vim's true competitor with: Leader r c m
|
||||||
|
nnoremap <Leader>rcm :!open https://youtu.be/jn40Ugz0vuk<CR><CR>
|
||||||
|
|
||||||
|
autocmd FileType typescript imap <tab> <C-x><C-o>
|
||||||
|
|
||||||
" COLORSCHEME
|
" COLORSCHEME
|
||||||
|
|
||||||
" set colorscheme to onedark.vim for nvim and airline
|
" set colorscheme to onedark.im for nvim and airline
|
||||||
packadd! onedark.vim
|
packadd! onedark.vim
|
||||||
colorscheme onedark
|
colorscheme onedark
|
||||||
let g:airline_theme='onedark'
|
let g:airline_theme='onedark'
|
||||||
|
|
1
pack/plugins/start/vimproc.vim
Submodule
1
pack/plugins/start/vimproc.vim
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 9136f03680db82c552f4a84e3b461f83c6e232d5
|
Reference in a new issue