Improving highlight of lines which are too long in vim.
This commit is contained in:
parent
a772e7f1f9
commit
9be7edaead
14
vimrc
14
vimrc
@ -76,7 +76,19 @@ au FileType python :imap <F10> <Esc><F10>
|
||||
au FileType tex :map <F9> :! if [ -f Makefile ]; then; make; else; pdflatex %:t; rm *.aux; rm *.log; fi<cr>
|
||||
|
||||
"Highlight chars after column 80
|
||||
match ErrorMsg '\%>80v.\+'
|
||||
let s:activatedh=0
|
||||
highlight OverLength ctermbg=darkred guibg=#ffd9d9
|
||||
function! ToggleH()
|
||||
if s:activatedh == 0
|
||||
let s:activatedh = 1
|
||||
match OverLength '\%>80v.\+'
|
||||
else
|
||||
let s:activatedh = 0
|
||||
match none
|
||||
endif
|
||||
endfunction
|
||||
nnoremap <F4> :call ToggleH()<CR>
|
||||
call ToggleH()
|
||||
|
||||
"Map ctrl+f to ClangFormat
|
||||
:nnoremap <C-f> :ClangFormat<CR>
|
||||
|
15
zshrc
15
zshrc
@ -48,12 +48,13 @@ alias m='make'
|
||||
alias cmake='cmake -G Ninja'
|
||||
alias wlan='sudo netctl-auto list'
|
||||
alias adb-connect='adb connect 192.168.1.138:5555'
|
||||
if test -f "$(which nvim)"
|
||||
then
|
||||
alias v='nvim'
|
||||
else
|
||||
alias v='vim'
|
||||
fi
|
||||
#if test -f "$(which nvim)"
|
||||
#then
|
||||
# alias v='nvim'
|
||||
#else
|
||||
# alias v='vim'
|
||||
#fi
|
||||
alias v='vim'
|
||||
if [ -f .zsh_environment ]
|
||||
then
|
||||
source ~/.zsh_environment
|
||||
@ -76,7 +77,7 @@ alias rbtv='livestreamer twitch.tv/rocketbeanstv &'
|
||||
alias taketv='livestreamer twitch.tv/taketv &'
|
||||
alias ls='ls --color=auto'
|
||||
export ASPROOT=~/.asp
|
||||
export PATH=$PATH:/home/fab/bin:/home/fab/.gem/ruby/2.3.0/bin
|
||||
export PATH=$PATH:/home/fab/bin:/home/fab/.gem/ruby/2.3.0/bin:~/.local/bin
|
||||
export LFS=/mnt/lfs
|
||||
|
||||
#vi mode
|
||||
|
Loading…
Reference in New Issue
Block a user