Other articles


  1. Highlighting and Deleting Extra Whitespace in Vim

    Here is a very helpful but difficult-to-remember portion of configuration taken from my .vimrc file:

    highlight ExtraWhitespace ctermbg=lightred guibg=lightred
    autocmd VimEnter,InsertEnter * syn match ExtraWhitespace /\s\+$/ containedin=ALL
    
    highlight Tabs ctermbg=lightgreen guibg=lightgreen
    autocmd VimEnter,InsertEnter * syn match Tabs /\t/ containedin=ALL
    

    The Rationale

    The above lines …

    read more
  2. My .vimrc File

    Behold, my .vimrc file!

    set nojoinspaces
    set bg=dark
    set sw=2
    set ts=2
    set sts=2
    set ruler
    set ffs=unix
    map Q q
    map q: :
    map Y y$
    
    let g:leave_my_textwidth_alone=1
    let g:python_recommended_style=0
    set expandtab
    set nojoinspaces
    set hlsearch …
    read more

links

social