diff --git a/vimrc b/vimrc index 589d806..b6d8aa5 100644 --- a/vimrc +++ b/vimrc @@ -2,7 +2,6 @@ set nocompatible set background=dark set backspace=indent,eol,start set clipboard=exclude:.* -set cursorline set foldmethod=marker set history=50 set hlsearch @@ -54,6 +53,8 @@ autocmd BufNewFile *.pl 0put =\"#!/usr/bin/env perl\\use strict;\\use wa let mapleader = "," nmap noremap +"enable cursorline on demand +nnoremap c :set cursorline! "clear search highlight nnoremap / :nohls "disable auto indent @@ -74,7 +75,7 @@ if v:version >= 700 set number set list - set listchars=tab:\|.,nbsp:x + set listchars=tab:\|_,nbsp:x nnoremap n :setlocal number! nnoremap l :setlocal list!