nvim autoclose with pure vimscript + TODOs

This commit is contained in:
Christoph J. Scherr 2023-02-10 09:51:10 +01:00
parent 8b69d95e80
commit f893dc559d
4 changed files with 33 additions and 1 deletions

View File

@ -13,3 +13,9 @@ target user, some stuff will need to run as root.
- curl - curl
- lsd (workstations) - lsd (workstations)
- nodejs (nvim language server) - nodejs (nvim language server)
# TODO
[ ] list nvim plugins and auto install
[ ] add options for help, only local installs, complete installs and so on
[ ] add vim shortcut to resize splits
[ ] take a look at autoclosing plugins for nvim

View File

@ -59,6 +59,15 @@ nnoremap <leader>yy "+yy
" open terminal with F12 " open terminal with F12
nnoremap <F12> :terminal<CR> nnoremap <F12> :terminal<CR>
" automatically set closed braces aswell when making opened ones.
" inoremap " ""<left>
inoremap ' ''<left>
inoremap ( ()<left>
inoremap [ []<left>
inoremap { {}<left>
inoremap {<CR> {<CR>}<ESC>O
inoremap {;<CR> {<CR>};<ESC>O
" vsplit with <Leader>, then " " vsplit with <Leader>, then "
map <Leader>" :vsplit<CR> map <Leader>" :vsplit<CR>

View File

@ -59,6 +59,15 @@ nnoremap <leader>yy "+yy
" open terminal with F12 " open terminal with F12
nnoremap <F12> :terminal<CR> nnoremap <F12> :terminal<CR>
" automatically set closed braces aswell when making opened ones.
" inoremap " ""<left>
inoremap ' ''<left>
inoremap ( ()<left>
inoremap [ []<left>
inoremap { {}<left>
inoremap {<CR> {<CR>}<ESC>O
inoremap {;<CR> {<CR>};<ESC>O
" vsplit with <Leader>, then " " vsplit with <Leader>, then "
map <Leader>" :vsplit<CR> map <Leader>" :vsplit<CR>

View File

@ -24,7 +24,6 @@ set timeout timeoutlen=400
" Avoid showing message extra message when using completion" " Avoid showing message extra message when using completion"
set shortmess+=c set shortmess+=c
" set timeout to wait for shortcuts with a prefix " set timeout to wait for shortcuts with a prefix
noremap oo o<ESC> noremap oo o<ESC>
noremap OO O<ESC> noremap OO O<ESC>
@ -52,6 +51,15 @@ nnoremap <leader>yy "+yy
" open terminal with F12 " open terminal with F12
nnoremap <F12> :terminal<CR> nnoremap <F12> :terminal<CR>
" automatically set closed braces aswell when making opened ones.
" inoremap " ""<left>
inoremap ' ''<left>
inoremap ( ()<left>
inoremap [ []<left>
inoremap { {}<left>
inoremap {<CR> {<CR>}<ESC>O
inoremap {;<CR> {<CR>};<ESC>O
" vsplit with <Leader>, then " " vsplit with <Leader>, then "
map <Leader>" :vsplit<CR> map <Leader>" :vsplit<CR>