From bfe848cbe834d65cd8219efde88476a5f39937a8 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Thu, 25 Aug 2022 17:24:10 +0200 Subject: vim ftplugin: npm server start for typescript, floating sxiv and less vimwikis. --- stow/vim/.vim/ftplugin/sh/sh.vim | 4 ++-- stow/vim/.vim/ftplugin/typescript/typescript.vim | 3 +++ stow/vim/.vim/rc/maps.vim | 2 +- stow/vim/.vim/rc/vimwiki.vim | 6 ++---- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/stow/vim/.vim/ftplugin/sh/sh.vim b/stow/vim/.vim/ftplugin/sh/sh.vim index 2aec1f2..cc52e08 100644 --- a/stow/vim/.vim/ftplugin/sh/sh.vim +++ b/stow/vim/.vim/ftplugin/sh/sh.vim @@ -10,8 +10,8 @@ setlocal textwidth=110 let mapleader = " " -nnoremap C :sp ~/.vim/ftplugin/sh/sh.vim -nnoremap sh :read ~/.vim/ftplugin/sh/snippets/template.txt +nnoremap C :sp ~/.vim/ftplugin/sh/sh.vim +nnoremap sh :read ~/.vim/ftplugin/sh/snippets/template.txt nnoremap +x :!chmod 744 % nnoremap x :w:!./% nnoremap X :w:!./% diff --git a/stow/vim/.vim/ftplugin/typescript/typescript.vim b/stow/vim/.vim/ftplugin/typescript/typescript.vim index 7c91032..40fe518 100644 --- a/stow/vim/.vim/ftplugin/typescript/typescript.vim +++ b/stow/vim/.vim/ftplugin/typescript/typescript.vim @@ -19,6 +19,9 @@ let mapleader = " " nnoremap C :sp ~/.vim/ftplugin/typescript/typescript.vim +nnoremap s :!tmux new-window -b -t 9 -n 'npm start' 'tmux set -w remain-on-exit on; npm start' +nnoremap S :!tmux new-window -db -t 9 -n 'npm start' npm start + nnoremap gd :YcmCompleter GoTo nnoremap gr :YcmCompleter GoToReferences nnoremap gh :YcmCompleter GetType diff --git a/stow/vim/.vim/rc/maps.vim b/stow/vim/.vim/rc/maps.vim index 716e8d5..2163f0d 100644 --- a/stow/vim/.vim/rc/maps.vim +++ b/stow/vim/.vim/rc/maps.vim @@ -51,7 +51,7 @@ nnoremap sl :set spelllang= nnoremap sL :setlocal spelllang= " Open file under cursor -nnoremap go :!rifle & +nnoremap go :!export SXIV_FLOAT=y; o & nnoremap :tabnew "nnoremap gt "Can't be set without also remapping diff --git a/stow/vim/.vim/rc/vimwiki.vim b/stow/vim/.vim/rc/vimwiki.vim index 53432b4..e31d2da 100644 --- a/stow/vim/.vim/rc/vimwiki.vim +++ b/stow/vim/.vim/rc/vimwiki.vim @@ -3,7 +3,5 @@ Plug 'vimwiki/vimwiki' " For vimwiki " filetype plugin on let g:vimwiki_ext2syntax = {'.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'} -let g:vimwiki_list = [{'path': '~/docs/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}, - \ {'path': '~/docs/notas/', 'syntax': 'markdown', 'ext': '.md'}, - \ {'path': '~/games/dungeonesYDragones/tarkba/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}, - \ {'path': '~/games/dungeonesYDragones/creaciones/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}] +let g:vimwiki_list = [{'path': '~/docs/notas/', 'syntax': 'markdown', 'ext': '.md'}, + \ {'path': '~/docs/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}] -- cgit v1.2.1