Hacker Public Radio

HPR3966: Vim Hints: 006


Listen Later

My .vimrc config.
" General
set confirm " Display confirmation dialog when closing unsaved files
set number " Show line numbers
set number relativenumber " Show line numbers relative to curser
set cursorline " Highlight the current line
set guicursor=
set scrolloff=23 " Number of screen lines above and below the cursor
set colorcolumn=80 " Line 76 and 80 are colored
:hi ColorColumn ctermbg=Magenta " Column colors
set nowrap " Do not wrap lines
set list
set listchars=eol:
,tab:⭾⭾,trail:~,extends:>,precedes:<,space:⎵
set showmatch " Highlight matching brace
set visualbell " Use visual bell (no beeping)
set showcmd " Show partial commands in the last line
set hlsearch " Highlight all search results
set smartcase " Enable smart-case search
set ignorecase " Always case-insensitive
set incsearch " Searches for strings incrementally
set wildmenu " Display tab complete options menu
set encoding=utf-8 " Use an encoding that supports unicode
"set autoindent " Auto-indent new lines
"set smartindent " Enable smart-indent
"set smarttab " Enable smart-tabs
set shiftwidth=4 " Number of auto-indent spaces
set softtabstop=4 " Number of spaces per Tab
set tabstop=4 " Indent using four spaces
set expandtab " Convert tabs to spaces.
" Advanced
set ruler " Show row and column ruler information
"set showtabline=2 " Show tab bar
set cmdheight=2 " Command line height
set undolevels=1000 " Number of undo levels
set backspace=indent,eol,start " Backspacing over indention, line breaks and insertion start
set dir=~/.cache/vim " Directory to store swap files
set backupdir=~/.cache/vim " Directory to store backup files
set undodir=~/.cache/vim/undo " Directory to store undo cache
nnoremap <silent> <C-l> :nohl<CR>
nnoremap <silent> <C-s> :term<CR>
nnoremap <silent> <leader>[ :bp<CR>
nnoremap <silent> <leader>] :bn<CR>
nnoremap <leader>so :so ~/.config/vim/sessions/
nnoremap <silent> <F3> :set list!<CR>
nnoremap <silent> <leader>cc :set cc-=5<CR>:set cc-=76<CR>
nnoremap <silent> <leader>cc1 :set cc+=5<CR>:set cc-=76<CR>
nnoremap <silent> <le
...more
View all episodesView all episodes
Download on the App Store

Hacker Public RadioBy Hacker Public Radio

  • 4.2
  • 4.2
  • 4.2
  • 4.2
  • 4.2

4.2

34 ratings


More shows like Hacker Public Radio

View all
The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

289 Listeners

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec by Jerry Bell and Andrew Kalat

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec

373 Listeners

LINUX Unplugged by Jupiter Broadcasting

LINUX Unplugged

268 Listeners

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast) by Johannes B. Ullrich

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast)

653 Listeners

Curious Cases by BBC Radio 4

Curious Cases

826 Listeners

The Strong Towns Podcast by Strong Towns

The Strong Towns Podcast

422 Listeners

Late Night Linux by The Late Night Linux Family

Late Night Linux

164 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,035 Listeners

Cybersecurity Today by Jim Love

Cybersecurity Today

181 Listeners

CISO Series Podcast by David Spark, Mike Johnson, and Andy Ellis

CISO Series Podcast

189 Listeners

TechCrunch Daily Crunch by TechCrunch

TechCrunch Daily Crunch

42 Listeners

Strict Scrutiny by Crooked Media

Strict Scrutiny

5,799 Listeners

2.5 Admins by The Late Night Linux Family

2.5 Admins

98 Listeners

Cyber Security Headlines by CISO Series

Cyber Security Headlines

139 Listeners

What the Hack? by DeleteMe

What the Hack?

221 Listeners