From 0cb716e65095ef81906b2054eeb40955ff806e4d Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 26 Oct 2017 13:24:02 +0200 Subject: [PATCH] 2 new commands (Todo & Fixme) + mapping fixes --- vimrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index 44cad4a..71d4318 100644 --- a/vimrc +++ b/vimrc @@ -90,6 +90,9 @@ noremap x x " === GENERAL COMMANDS === command! L lopen | set number | set norelativenumber +command! Fixme cex MatchingLines("\\cfixme.*") +command! Todo cex MatchingLines("\\ctodo.*") + " === GENERAL KEY MAPPINGS === let mapleader = "\\" nnoremap :L @@ -104,8 +107,8 @@ nnoremap :bnext nnoremap :bprevious nnoremap n :lnext nnoremap p :lNext -nnoremap cn :cnext -nnoremap cp :cNext +nnoremap n :cnext +nnoremap p :cNext nnoremap Bi i nnoremap Ea a " This one does nothing, but I'm adding it to remember not to remap the tab key @@ -127,7 +130,7 @@ nnoremap : :let @* = @: " Tabs vs. Spaces nnoremap :setl expandtab!:set expandtab? -" todo: custom function to retab only indentation +" TODO: custom function to retab only indentation " Empty Lines nnoremap :call Enter(0)