1
0
Fork 0

some cursorline / listchars fixes

This commit is contained in:
Von Random 2015-06-19 13:23:02 +03:00
parent 642b1f0e51
commit 5c570306dc

5
vimrc
View file

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