Skip to content

Instantly share code, notes, and snippets.

@wiedehopf
Created May 24, 2022 05:58
Show Gist options
  • Select an option

  • Save wiedehopf/95ff43ad199648e5534d880127742672 to your computer and use it in GitHub Desktop.

Select an option

Save wiedehopf/95ff43ad199648e5534d880127742672 to your computer and use it in GitHub Desktop.

Revisions

  1. wiedehopf created this gist May 24, 2022.
    49 changes: 49 additions & 0 deletions vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    set cmdheight=2
    set number
    "set t_Co=256
    colorscheme default
    set bg=dark
    set undofile
    set undodir=$HOME/.vim/undo
    set undolevels=1000
    set undoreload=10000

    "setl tw=128

    command S2 set tabstop=2 softtabstop=0 expandtab shiftwidth=2 smarttab
    command S4 set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
    command S8 set tabstop=8 softtabstop=0 expandtab shiftwidth=8 smarttab
    command T4 set tabstop=4 softtabstop=0 noexpandtab shiftwidth=4 smarttab
    command T8 set tabstop=8 softtabstop=0 noexpandtab shiftwidth=8 smarttab

    S4

    filetype indent plugin on
    syntax on
    set hlsearch
    set showcmd
    set wildmenu
    set ignorecase
    set smartcase
    set cindent
    set ruler
    set confirm
    set hidden
    set laststatus=2
    set cmdheight=2
    set pastetoggle=<F11>
    map <C-h> <Esc>:tabprev<CR>
    map <C-l> <Esc>:tabnext<CR>
    set tabpagemax=30
    set cursorline
    hi cursorline cterm=none
    hi CursorLineNr cterm=none ctermbg=darkblue
    hi ColorColumn ctermbg=lightblue ctermfg=black
    "call matchadd('ColorColumn', '\%81v', 100)
    set list
    set listchars=tab:\ \ ,trail:·,nbsp:~
    nnoremap ; :
    "buffer switch
    nnoremap <tab> :bnext<CR>
    nnoremap <S-tab> :bprevious<CR>