aboutsummaryrefslogtreecommitdiff
path: root/stow
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2022-08-25 17:24:10 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2022-08-25 17:24:10 +0200
commitbfe848cbe834d65cd8219efde88476a5f39937a8 (patch)
tree6c407480cdf9c50b94b3508daf17d8d809f66536 /stow
parent423b7174c428ae5f770de4cfb09388e3264194a8 (diff)
downloadconfigs-bfe848cbe834d65cd8219efde88476a5f39937a8.tar.gz
configs-bfe848cbe834d65cd8219efde88476a5f39937a8.zip
vim ftplugin: npm server start for typescript, floating sxiv and less vimwikis.
Diffstat (limited to 'stow')
-rw-r--r--stow/vim/.vim/ftplugin/sh/sh.vim4
-rw-r--r--stow/vim/.vim/ftplugin/typescript/typescript.vim3
-rw-r--r--stow/vim/.vim/rc/maps.vim2
-rw-r--r--stow/vim/.vim/rc/vimwiki.vim6
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 <buffer> <leader>C :sp ~/.vim/ftplugin/sh/sh.vim<CR>
-nnoremap <buffer> <leader>sh :read ~/.vim/ftplugin/sh/snippets/template.txt<CR>
+nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/sh/sh.vim<CR><CR>
+nnoremap <buffer> <leader>sh :read ~/.vim/ftplugin/sh/snippets/template.txt<CR><CR>
nnoremap <buffer> <leader>+x :!chmod 744 %<CR><CR>
nnoremap <buffer> <leader>x :w<CR>:!./%<Space>
nnoremap <buffer> <leader>X :w<CR>:!./%<CR><CR>
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 <buffer> <leader>C :sp ~/.vim/ftplugin/typescript/typescript.vim<CR>
+nnoremap <buffer> <leader>s :!tmux new-window -b -t 9 -n 'npm start' 'tmux set -w remain-on-exit on; npm start'<CR><CR>
+nnoremap <buffer> <leader>S :!tmux new-window -db -t 9 -n 'npm start' npm start<CR><CR>
+
nnoremap <buffer> gd :YcmCompleter GoTo<CR>
nnoremap <buffer> gr :YcmCompleter GoToReferences<CR>
nnoremap <buffer> gh :YcmCompleter GetType<CR>
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 <leader>sl :set spelllang=
nnoremap <leader>sL :setlocal spelllang=
" Open file under cursor
-nnoremap go :!rifle <cfile> &<CR><CR>
+nnoremap go :!export SXIV_FLOAT=y; o <cfile> &<CR><CR>
nnoremap <C-n> :tabnew<CR>
"nnoremap <Tab> gt "Can't be set without also remapping <C-i>
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'}]