From 0c715d79f02b15a7cc46a414bb5f6c00a2c94b50 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Fri, 1 Sep 2017 13:19:15 +0200 Subject: [PATCH 1/2] Made some improvements to .vimrc --- vimrc | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/vimrc b/vimrc index 290a01f..f5a083b 100644 --- a/vimrc +++ b/vimrc @@ -110,6 +110,12 @@ endif " CUSTOM STUFF +noremap : +noremap @: +noremap :w +noremap :bdelete +noremap :bnext +noremap :bprevious set bg=dark set number " Filetype stuff @@ -121,19 +127,22 @@ set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab set t_Co=256 " Remapping some things vmap :fold -" nmap :bprevious -nnoremap : -nnoremap :w -nnoremap :bdelete -nnoremap :bnext -nnoremap :bprevious " Retab mappings nnoremap :retab! -nnoremap :setl expandtab! :set expandtab? -" Unprintable Characters +nnoremap :setl expandtab!:set expandtab? +noremap :setl number! +noremap :setl relativenumber! +noremap :setl autowriteall!:setl autowriteall? noremap :setl list! -noremap :setl number! set listchars=eol:¶,tab:»\ ,trail:. +set showbreak=+->\ " Commands com! Setwd :cd %:p:h com! Removetrailingspaces :%s/\ \+$//ge +set statusline=(%n)\ %f\ [%M%R]\ [%Y]%=%l,%c%V\ %4.P +set laststatus=2 +set cmdheight=1 +set winheight=10 +set winminheight=4 +set winheight=9999 +set timeoutlen=300 From 621eebbe99c4cf7a82a1ee8875b122be5b59cff4 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 6 Sep 2017 08:50:34 +0200 Subject: [PATCH 2/2] Added leader character and one shortcut --- vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vimrc b/vimrc index f5a083b..ed4d5cb 100644 --- a/vimrc +++ b/vimrc @@ -139,6 +139,7 @@ set showbreak=+->\ " Commands com! Setwd :cd %:p:h com! Removetrailingspaces :%s/\ \+$//ge +nmap t :Removetrailingspaces set statusline=(%n)\ %f\ [%M%R]\ [%Y]%=%l,%c%V\ %4.P set laststatus=2 set cmdheight=1 @@ -146,3 +147,4 @@ set winheight=10 set winminheight=4 set winheight=9999 set timeoutlen=300 +let mapleader = "\\"