From 2c6b686107d2650f18c13095347a5cf541679ff0 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 15 Mar 2018 16:30:57 +0100 Subject: [PATCH] did stuff --- vimrc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index 22b2185..6c9ee24 100644 --- a/vimrc +++ b/vimrc @@ -259,6 +259,12 @@ function! s:autobd() endfun " === GENERAL COMMANDS === + +" General Purpose +command! Closeall bufdo bdelete +command! Context bufdo bdelete | e . +command! Kontext Context + command! L lopen | set number | set norelativenumber command! LAddLine call LocationAddLine(expand("%"), line("."), getline(".")) command! QAddLine call QuickfixAddLine(expand("%"), line("."), getline(".")) @@ -382,6 +388,9 @@ map :exec "normal ".g:jmp_dist."k" " Yes, not 'noremap', do whatever is mapped to J and K assuming " it is some sort of custom up-down motion, but g:jmp_dist times +" --- Windows, Tabs and More -- +nnoremap :e %:p:h + " --- modes --- nnoremap @@ -470,8 +479,7 @@ nnoremap ge nnoremap gE com! SetWD :cd %:p:h com! SetLWD :lcd %:p:h -com! Removetrailingspaces let _s=@/ | %s/\v(\\@t :Removetrailingspaces +com! Trailing let _s=@/ | %s/\v(\\@ :copy . nnoremap dx 0"_d$ nnoremap dcx 0d$ @@ -773,7 +781,7 @@ function! s:init_html_file() setl number command! -buffer -nargs=1 Tag normal \ i<><m'/>`' - nnoremap t ""ciw<""p>m'""p>`'l + nnoremap T ""ciw<""p>m'""p>`'l nnoremap T ""diw"_cc<""p>o""p>O function! s:insert_tag(tag, newline)