From b83b516445c289011f8cafc2a7e7573f762b34cf Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 6 Nov 2017 10:00:07 +0100 Subject: [PATCH] Some movement commands --- vimrc | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index fe2fa3e..eff109c 100644 --- a/vimrc +++ b/vimrc @@ -14,6 +14,8 @@ endif set nocompatible """""""""""""""" +set linespace=0 +set scrolloff=6 set history=50 " keep 50 lines of command line history set nonumber set relativenumber @@ -72,7 +74,8 @@ au BufEnter,BufRead * set linebreak set breakat=\ .,{ set display+=lastline set showbreak=+->\ -set listchars=eol:¶,tab:»\ ,trail:. +set listchars=eol:¶,tab:»\ ,trail:.,nbsp:. +set cursorline " Highlight cursor line set modeline " Allows setting vim options in other files set statusline=(%n)\ %f\ [%M%R]\ [%Y]%=%l,%c%V\ %4.P @@ -158,14 +161,27 @@ command! QAddLine call QuickfixAddLine(expand("%"), line("."), getline(".")) command! LAddCursor call LocationAddLineCol(expand("%"), line("."), getline("."), col(".")) command! QAddCursor call QuickfixAddLineCol(expand("%"), line("."), getline("."), col(".")) -command! Fixme lex MatchingLines("\\c\\)) command! -nargs=1 QFind call setqflist(MatchingLinesDict()) " === GENERAL KEY MAPPINGS === let mapleader = "\\" + +" --- MOVEMENT --- +nnoremap j gj +nnoremap k gk + +" --- CLIPBOARD --- +nnoremap Y y$ + +" --- OTHER --- +" Don't exit visual mode when shifting +vnoremap < >gv + nnoremap :L noremap : noremap @: