aboutsummaryrefslogtreecommitdiff
path: root/stow/vim/.vim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'stow/vim/.vim/ftplugin')
-rw-r--r--stow/vim/.vim/ftplugin/sh/sh.vim4
-rw-r--r--stow/vim/.vim/ftplugin/typescript/typescript.vim3
2 files changed, 5 insertions, 2 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>