Merge branch 'master' of ssh://maggioni.xyz:2222/maggicl/nvim-config

This commit is contained in:
Claudio Maggioni 2018-12-30 20:33:22 +01:00
commit d721ff72a1
5 changed files with 50 additions and 5 deletions

3
.gitmodules vendored
View File

@ -19,3 +19,6 @@
[submodule "pack/plugins/start/vim-editorconfig"]
path = pack/plugins/start/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
View 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
View 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.

View File

@ -39,15 +39,32 @@ tnoremap <C-Esc> <Esc>
" clear search with F2
nnoremap <F2> noh
" clear trailing spaces with F3
nnoremap <F3> :%s/\s *$//g<CR>
" Use "," as leader
let mapleader = ","
" show Vim's true competitor with F4
nnoremap <F4> :!open https://youtu.be/jn40Ugz0vuk<CR><CR>
" Switch between Windows with: Leader w
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
" set colorscheme to onedark.vim for nvim and airline
" set colorscheme to onedark.im for nvim and airline
packadd! onedark.vim
colorscheme onedark
let g:airline_theme='onedark'

@ -0,0 +1 @@
Subproject commit 9136f03680db82c552f4a84e3b461f83c6e232d5