Browse Source

vim: vim-fontsize; working colorcolumn toggle

exuberance
Brennen Bearnes 8 years ago
parent
commit
ec24c1fb45
2 changed files with 9 additions and 4 deletions
  1. +1
    -0
      home/.gvimrc
  2. +8
    -4
      home/.vimrc

+ 1
- 0
home/.gvimrc View File

@ -6,3 +6,4 @@ set t_vb=
" font stuffs
" set guifont=Ubuntu\ Mono\ 14
set guifont=Droid\ Sans\ Mono\ 13

+ 8
- 4
home/.vimrc View File

@ -131,6 +131,9 @@ set nocompatible
" nginx config file highlighting
Plugin 'nginx.vim'
" GUI font size - use <Leader><Leader>+ or - to adjust:
Plugin 'drmikehenry/vim-fontsize'
" snippets
" Plugin 'SirVer/ultisnips'
" Plugin 'honza/vim-snippets'
@ -471,17 +474,18 @@ set nocompatible
function! BPB_ColorSchemeOverrides()
endfunction
" add some display sugar that helps highlight cursor, line width, etc.
" add some display sugar that helps highlight cursor, searches, and
" textwidth. good for fiddling with alignment, reflowing text, etc.
function! BPB_Crosshairs()
set invhlsearch
set invcursorcolumn
set invcursorline
" TODO: this doesn't work:
if &colorcolumn > 0
" toggle a colorcolumn - will get weird if it's set outside this function
if &colorcolumn == "+1"
set colorcolumn=0
else
" i think this is relative to textwidth:
" i think this is relative to textwidth
set colorcolumn=+1
endif
endfunction


|||||||
x
 
000:0
Loading…
Cancel
Save